摘要: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. 阅读全文
posted @ 2014-06-26 19:54 jdflyfly 阅读(428) 评论(0) 推荐(0)
摘要: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. 阅读全文
posted @ 2014-06-26 19:53 jdflyfly 阅读(274) 评论(0) 推荐(0)
摘要: The count-and-say sequence is the sequence of integers beginning as follows: 阅读全文
posted @ 2014-06-26 19:52 jdflyfly 阅读(178) 评论(0) 推荐(0)
摘要: Write a program to solve a Sudoku puzzle by filling the empty cells. 阅读全文
posted @ 2014-06-26 19:49 jdflyfly 阅读(314) 评论(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 order. 阅读全文
posted @ 2014-06-26 19:46 jdflyfly 阅读(165) 评论(0) 推荐(0)
摘要: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. 阅读全文
posted @ 2014-06-26 19:45 jdflyfly 阅读(223) 评论(1) 推荐(0)
摘要: Suppose a sorted array is rotated at some pivot unknown to you beforehand. 阅读全文
posted @ 2014-06-26 19:44 jdflyfly 阅读(199) 评论(0) 推荐(0)
摘要: Given a sorted array of integers, find the starting and ending position of a given target value. 阅读全文
posted @ 2014-06-26 19:43 jdflyfly 阅读(209) 评论(1) 推荐(0)
摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. 阅读全文
posted @ 2014-06-26 19:42 jdflyfly 阅读(156) 评论(1) 推荐(0)
摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. 阅读全文
posted @ 2014-06-26 19:41 jdflyfly 阅读(206) 评论(0) 推荐(0)