[LeetCode] Rotate List 解题报告

摘要: Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->... 阅读全文
posted @ 2013-01-02 08:22 小刀初试 阅读(129) 评论(0) 推荐(0) 编辑

[LeetCode] Rotate Image 解题报告

摘要: You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?» Solve this pr... 阅读全文
posted @ 2013-01-02 07:49 小刀初试 阅读(91) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示