摘要: You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?分析:先沿对角线进行对折,然后沿水平中... 阅读全文
posted @ 2015-05-13 23:23 amazingzoe 阅读(138) 评论(0) 推荐(0)
摘要: Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ... 阅读全文
posted @ 2015-05-13 17:02 amazingzoe 阅读(171) 评论(0) 推荐(0)
摘要: The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie... 阅读全文
posted @ 2015-05-13 16:26 amazingzoe 阅读(116) 评论(0) 推荐(0)