Count and Say
来源:互联网 发布:淘宝达人个人和自媒体 编辑:程序博客网 时间:2024/04/28 05:54
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 "one 2", then "one 1" or 1211.
Given an integer n, generate the nth sequence.
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 "one 2", then "one 1" or 1211.
Given an integer n, generate the nth sequence.
Note: The sequence of integers will be represented as a string.
0 0
- LeetCode: Count and Say
- [LeetCode]Count and Say
- LeetCode Count and Say
- [Leetcode] Count and Say
- Count and Say
- Leetcode: Count and Say
- [LeetCode] Count and Say
- LeetCode Count and Say
- Count and Say
- [38]Count and Say
- Count and Say
- Count and Say
- Count and Say
- [LeetCode]Count and Say
- Count and Say
- Count and Say
- [LeetCode] Count and Say
- LeetCode-Count and Say
- Ubuntu12.04 64bit搭建Hadoop-2.2.0
- 1.1 让CPU占用率曲线听你指挥
- 更新solrcloud+zookeeper的配置文件,要reload collection
- 调用微信api时出现的问题
- FTP,HTTP各种端口号
- Count and Say
- 最明白的Unity3D手机平台分辨率自动匹配教程-适合新手
- UVALive3523-Knights of the Round Table(BCC+二分图判定)
- bzoj3299 [USACO2011 Open]Corn Maze玉米迷宫
- 安卓简单的JNI调用
- 通过js事件触发<a>标签点击事件
- 华为机试
- hadoop1.1.2环境搭建所需要修改的文件
- ;function($,undefined) 前面的分号是什么用处