LeetCode Problem6 ZigZag Conversion
2015-10-24 16:16
465 查看
The string
of rows like this: (you may want to display this pattern in a fixed font for better legibility)
And then read line by line:
Write the code that will take a string and make this conversion given a number of rows:
return
思路:本题就是一个找规律的题目,没有什么意思。规律详见 http://blog.csdn.net/zhouworld16/article/details/14121477
没什么意思。
"PAYPALISHIRING"is written in a zigzag pattern on a given number
of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N A P L S I I G Y I R
And then read line by line:
"PAHNAPLSIIGYIR"
Write the code that will take a string and make this conversion given a number of rows:
string convert(string text, int nRows);
convert("PAYPALISHIRING", 3)should
return
"PAHNAPLSIIGYIR".
思路:本题就是一个找规律的题目,没有什么意思。规律详见 http://blog.csdn.net/zhouworld16/article/details/14121477
没什么意思。
相关文章推荐
- iOS多线程2 Opertaion补充
- 软件工程(七)——软件维护
- Spark学习视频整合
- Shell - 特殊变量
- github常见操作和常见错误!错误提示:fatal: remote origin already exists.
- 自信的来源
- Android面试题及答案3
- 线段树专题资料
- printf带进制前缀
- 神经网络
- 分享一款好看的城市选择器
- 线段树专题资料
- EasyUI - Combo组件
- JDOM方式生成xml文件
- Linux学习01:ubuntu14.04 安装搜狗拼音
- 第八周项目5计数的匹配模式
- UNIX诞生的几个主要机器
- 51nod 巨大的斐波那契数列(矩阵快速幂),递推式优化的好模板!!!!!!!
- TypeScript学习-TypeScript数据类型简介
- Action访问Servlet API的几种方式,其中方式三比较常用,下来是方式一,最后是方式二(实现接口的方式)