原题: 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 rea ...
分类:
其他好文 时间:
2016-07-04 01:00:26
阅读次数:
150
题目链接
https://leetcode.com/problems/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"...
分类:
编程语言 时间:
2016-06-21 07:47:43
阅读次数:
204
题目链接:https://leetcode.com/problems/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 ...
分类:
其他好文 时间:
2016-06-02 13:51:25
阅读次数:
165
很有意思的一道题,不好想啊。 string getNext(string &s) { char start = s[0]; int count = 0; stringstream ss; for (int i = 0; i < s.size(); i++) { if (start == s[i]) ...
分类:
其他好文 时间:
2016-05-25 20:21:10
阅读次数:
155
38. 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”...
分类:
其他好文 时间:
2016-05-07 08:29:36
阅读次数:
143
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 of ...
分类:
其他好文 时间:
2016-04-21 21:44:29
阅读次数:
166
题目: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 ...
分类:
其他好文 时间:
2016-04-20 19:58:50
阅读次数:
156
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
分类:
其他好文 时间:
2016-03-17 01:47:53
阅读次数:
106
没什么要说的,就是要好好看题= =…………我看错了两遍,蠢cry 1 public String countAndSay(int n) { 2 if(n == 0) { 3 return ""; 4 } 5 if(n == 1) { 6 return "1"; 7 } 8 String nth =
分类:
其他好文 时间:
2016-02-27 06:22:23
阅读次数:
135