码迷,mamicode.com
首页 >  
搜索关键字:zigzag    ( 480个结果
leetcode 刷题之路 63 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). zigzag层序遍历树 For example: Given binary...
分类:其他好文   时间:2014-08-09 23:19:59    阅读次数:363
[leetcode]Binary Tree Zigzag Level Order Traversal
Binary Tree Zigzag Level Order TraversalGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then...
分类:其他好文   时间:2014-08-08 23:48:36    阅读次数:307
LeetCode第六题,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...
分类:其他好文   时间:2014-08-06 14:59:41    阅读次数:307
Binary Tree ZigZag Level Order Traversal leetcode java
题目: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 ....
分类:编程语言   时间:2014-08-05 05:17:38    阅读次数:311
[LeetCode] Binary Tree Zigzag Level Order Traversal(bfs)
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 ...
分类:其他好文   时间:2014-08-05 00:18:28    阅读次数:225
ZigZag Conversion leetcode java
题目: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-08-04 10:47:57    阅读次数:222
Leetcode--ZigZag Conversion
Problem Description: 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)...
分类:其他好文   时间:2014-08-01 00:11:50    阅读次数:285
Binary Tree Zigzag Level Order Traversal
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:其他好文   时间:2014-07-27 22:03:49    阅读次数:214
[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-07-24 09:51:13    阅读次数:244
LeetCode "ZigZag Conversion"
Nothing to hard to think. Just take care of boundary conditions.class Solution {public: string convert(string s, int nRows) { if(s.empty() |...
分类:其他好文   时间:2014-07-23 15:04:36    阅读次数:227
480条   上一页 1 ... 43 44 45 46 47 48 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!