2015年12月4日

摘要: Search a 2D MatrixWrite an efficient algorithm that searches for a value in an m x n matrix.This matrix has the following properties:Integers in each ... 阅读全文
posted @ 2015-12-04 05:35 一心一念 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Sqrt(x)Implement int sqrt(int x).Compute and return the square root of x.Examplesqrt(3) = 1sqrt(4) = 2sqrt(5) = 2sqrt(10) = 3ChallengeO(log(x))直接的做法是注... 阅读全文
posted @ 2015-12-04 05:06 一心一念 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Valid SudokuDetermine whether a Sudoku is valid.The Sudoku board could be partially filled, where empty cells are filled with the character ..ExampleT... 阅读全文
posted @ 2015-12-04 03:31 一心一念 阅读(156) 评论(0) 推荐(0) 编辑

导航