算法
文章平均质量分 80
奢望留念
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
将帅问题解读
即将毕业,现在温习一下数据结构和算法,方便出去找工作,几种典型的排序算法现在不温习先,现在先从经典算法题目开始。 原问题来自《编程之美》,书上提供几种算法不一一解读,只写看到问题想到的解法 原问题: 下过中国象棋的朋友都知道,双方的“将”和“帅"相隔遥远,并且不能照面,在象棋残局中,学多高手能利用这一规则走出精妙的杀招。假设棋盘上只有“将”和“帅”二子,且只能在相对应的3*3原创 2015-09-27 20:50:27 · 723 阅读 · 0 评论 -
Two Sum
原题来自https://leetcode.com/problemset/algorithms/ Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the原创 2015-10-13 00:04:53 · 407 阅读 · 0 评论
分享