LeetCode: validate sudoku, search insert position