
之字形
文章平均质量分 74
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 6. ZigZag Conversion(之字形)
原题网址:https://leetcode.com/problems/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原创 2016-05-19 03:47:47 · 466 阅读 · 0 评论 -
LeetCode 103. Binary Tree Zigzag Level Order Traversal(二叉树之字形遍历)
原题网址:https://leetcode.com/problems/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原创 2016-05-23 03:58:09 · 1402 阅读 · 0 评论