摘要: 标题:Rotate Image通过率:31.7%难度:中等You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this... 阅读全文
posted @ 2015-03-07 16:13 pku_smile 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 标题:Spiral Matrix通过率:20.8%难度:中等Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the f... 阅读全文
posted @ 2015-03-07 16:03 pku_smile 阅读(127) 评论(0) 推荐(0) 编辑