
Leetcode
文章平均质量分 81
LiuYuping
中南大学软件学院
展开
-
[Leetcode]Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 is read off as原创 2014-03-22 17:23:35 · 951 阅读 · 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?利用异或(XOR),实现不需要temp变量,实现交换。class Solution {p原创 2014-03-22 11:16:24 · 982 阅读 · 0 评论