
姿势
文章平均质量分 69
jmspan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 281. Zigzag Iterator(之字形迭代器)
原题网址:https://leetcode.com/problems/zigzag-iterator/ Given two 1d vectors, implement an iterator to return their elements alternately. For example, given two 1d vectors: v1 = [1, 2] v2 = [3, 4原创 2016-04-14 07:40:12 · 1034 阅读 · 0 评论 -
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 · 493 阅读 · 0 评论 -
LeetCode 48. Rotate Image(旋转)
原题网址:https://leetcode.com/problems/rotate-image/ You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place?原创 2016-05-21 05:34:52 · 436 阅读 · 0 评论 -
LeetCode 54. Spiral Matrix(螺旋矩阵)
原题网址:https://leetcode.com/problems/spiral-matrix/ Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following mat原创 2016-05-21 06:56:42 · 743 阅读 · 0 评论 -
LeetCode 59. Spiral Matrix II(螺旋矩阵)
原题网址:https://leetcode.com/problems/spiral-matrix-ii/ Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should retu原创 2016-05-21 07:50:26 · 439 阅读 · 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 · 1419 阅读 · 0 评论