LeetCode----count-and-say
来源:互联网 发布:js 0 false true 编辑:程序博客网 时间:2024/06/15 05:10
题目描述
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1is read off as"one 1"or11.
11is read off as"two 1s"or21.
21is read off as"one 2, thenone 1"or1211.
Given an integer n, generate the nth sequence.
Note: The sequence of integers will be represented as a string.
---------------------------------------
注意题目是求整个序列的第N项,而每一项是其前一项的解释!!!
您的代码已保存
0 0
- LeetCode: Count and Say
- [LeetCode]Count and Say
- LeetCode Count and Say
- [Leetcode] Count and Say
- Leetcode: Count and Say
- [LeetCode] Count and Say
- LeetCode Count and Say
- [LeetCode]Count and Say
- [LeetCode] Count and Say
- LeetCode-Count and Say
- LeetCode: Count and Say
- LeetCode - Count and Say
- [LeetCode] Count and Say
- Count and Say 【leetcode】
- [LeetCode] Count and Say
- Leetcode Count and Say
- LeetCode Count and Say
- LeetCode | Count and Say
- 【bzoj 1854】[Scoi2010]游戏 二分图匹配
- 教你搭建你自己的Git服务器
- android studio 小技巧
- cunit软件应用介绍
- 堆排序原理及其实现(C++)
- LeetCode----count-and-say
- Matlab中两个矩阵相乘报错:MTIMES is not fully supported for integer classes. At least one input must be scalar
- ECharts
- POJ2352Stars(树状数组)
- python爬虫之获取豆瓣电影信息
- JavaScript函数表达式
- 阿里云基础
- ise Xilinx 仿真报错 错误代码861
- 编程小白的学习之路(三)