码迷,mamicode.com
首页 >  
搜索关键字:zigzag    ( 480个结果
Binary Tree Zigzag Level Order Traversal
Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al...
分类:其他好文   时间:2014-12-30 20:33:53    阅读次数:146
LeetCode[Tree]: Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). For example: Given binary tr...
分类:其他好文   时间:2014-12-26 16:46:08    阅读次数:159
【LeetCode】ZigZag Conversion
ZigZag ConversionThe string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern i...
分类:其他好文   时间:2014-12-23 00:08:42    阅读次数:133
ZigZag Conversion
题目描述:The string "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 ...
分类:其他好文   时间:2014-12-19 20:38:53    阅读次数:151
ZigZag Conversion
题目:The string "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 f....
分类:其他好文   时间:2014-12-18 20:25:04    阅读次数:179
LeetCode--ZigZag Conversion
本来想按照时间先后顺序来做LeetCode的题,由于非科班出身,好多东西都不太懂,今天调整思路,先做难度为easy的题。 题目: 我的java解决方案: public class Solution { public String convert(String s, int nRows) { char [] cArray=s.toCharArray(); Str...
分类:其他好文   时间:2014-12-18 15:13:27    阅读次数:175
LeetCode ZigZag Conversion 解题报告
LeetCode ZigZag Conversion 解题报告 对输入字符串,做蛇形变化,然后按行输出。...
分类:其他好文   时间:2014-12-14 22:48:28    阅读次数:228
ZigZag Conversion
The string "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 ...
分类:其他好文   时间:2014-12-12 14:59:41    阅读次数:121
[LeetCode]Binary Tree Zigzag Level Order Traversal
【题目】 Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). For example: Giv...
分类:其他好文   时间:2014-12-09 12:14:27    阅读次数:164
ZigZag Conversion
The string "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 ...
分类:其他好文   时间:2014-12-06 21:31:41    阅读次数:168
480条   上一页 1 ... 38 39 40 41 42 ... 48 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!