码迷,mamicode.com
首页 >  
搜索关键字:zigzag    ( 480个结果
*Zigzag Iterator
Given two 1d vectors, implement an iterator to return their elements alternately. For example, given two 1d vectors: By calling next repeatedly until  ...
分类:其他好文   时间:2016-08-10 12:38:52    阅读次数:139
leetCode 6. ZigZag Conversion 字符串 (上传费劲)
6.ZigZagConversion题目:https://leetcode.com/problems/zigzag-conversion/stringconvert2(strings,intnumRows){ if(s.length()<2||numRows<2) returns; intcycle=2*numRows-2; stringtmp; stringresult; for(inti=0;i<numRows;i++) { if(i==0||i==numRow..
分类:Web程序   时间:2016-08-09 00:48:51    阅读次数:196
leetCode 6. ZigZag Conversion 字符串
6.ZigZagConversion
分类:其他好文   时间:2016-08-08 19:42:26    阅读次数:119
Zigzag Iterator
Given two 1d vectors, implement an iterator to return their elements alternately. For example, given two 1d vectors: By calling next repeatedly until ...
分类:其他好文   时间:2016-08-06 07:01:09    阅读次数:121
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 ...
分类:其他好文   时间:2016-08-05 13:43:57    阅读次数:174
No.006 ZigZag Conversion
6. ZigZag Conversion 6. ZigZag Conversion Total Accepted: 98584 Total Submissions: 398018 Difficulty: Easy The string "PAYPALISHIRING" is written in a ...
分类:其他好文   时间:2016-07-25 18:02:03    阅读次数:230
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 ...
分类:其他好文   时间:2016-07-08 21:48:25    阅读次数:153
【一天一道LeetCode】#103. Binary Tree Zigzag Level Order Traversal
一天一道LeetCode 本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github 欢迎大家关注我的新浪微博,我的新浪微博 欢迎转载,转载请注明出处 (一)题目来源: https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ Given a binary tree, re...
分类:其他好文   时间:2016-06-29 11:24:46    阅读次数:244
281. Zigzag Iterator
...
分类:其他好文   时间:2016-06-28 10:50:04    阅读次数:154
103. 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 ...
分类:其他好文   时间:2016-06-26 22:23:48    阅读次数:172
480条   上一页 1 ... 15 16 17 18 19 ... 48 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!