摘要: 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 阅读(416) 评论(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 阅读(265) 评论(0) 推荐(0) 编辑
摘要: The count-and-say sequence is the sequence of integers beginning as follows: 阅读全文
posted @ 2014-06-26 19:52 jdflyfly 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Write a program to solve a Sudoku puzzle by filling the empty cells. 阅读全文
posted @ 2014-06-26 19:49 jdflyfly 阅读(306) 评论(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 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. 阅读全文
posted @ 2014-06-26 19:45 jdflyfly 阅读(212) 评论(1) 推荐(0) 编辑
摘要: Suppose a sorted array is rotated at some pivot unknown to you beforehand. 阅读全文
posted @ 2014-06-26 19:44 jdflyfly 阅读(191) 评论(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 阅读(203) 评论(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 阅读(151) 评论(1) 推荐(0) 编辑
摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. 阅读全文
posted @ 2014-06-26 19:41 jdflyfly 阅读(201) 评论(0) 推荐(0) 编辑