摘要: Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on... 阅读全文
posted @ 2014-12-02 14:03 Phoebe815 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-12-02 12:43 Phoebe815 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ... 阅读全文
posted @ 2014-12-02 12:06 Phoebe815 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ... 阅读全文
posted @ 2014-12-02 07:18 Phoebe815 阅读(172) 评论(0) 推荐(0) 编辑