摘要: You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?解法1:新开辟一个矩阵,空间复杂度O(... 阅读全文
posted @ 2015-10-15 17:25 AprilCheny 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to... 阅读全文
posted @ 2015-10-15 15:51 AprilCheny 阅读(176) 评论(0) 推荐(0) 编辑