摘要: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ... 阅读全文
posted @ 2015-02-10 18:53 穆穆兔兔 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Note:All numbers (including target) will be positive integers.Elements in a combination (a1,a2, … ,ak) must be in non-descending order. (ie,a1≤a2≤ … ≤... 阅读全文
posted @ 2015-02-10 18:34 穆穆兔兔 阅读(276) 评论(0) 推荐(0) 编辑
摘要: The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw... 阅读全文
posted @ 2015-02-10 14:57 穆穆兔兔 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or... 阅读全文
posted @ 2015-02-10 10:54 穆穆兔兔 阅读(157) 评论(0) 推荐(0) 编辑