摘要:
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 ... 阅读全文
摘要:
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))直接的做法是注... 阅读全文
摘要:
Valid SudokuDetermine whether a Sudoku is valid.The Sudoku board could be partially filled, where empty cells are filled with the character ..ExampleT... 阅读全文