Problem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another ....
分类:
其他好文 时间:
2015-01-22 17:16:21
阅读次数:
179
android 5.0 的新特性
Material Design: Gives you and unexpanded UI toolkit for integrating the new degin patterns easily in your apps
New 3D views let you ser a z-level to raise elements off of the view ...
分类:
移动开发 时间:
2015-01-22 15:30:17
阅读次数:
154
题目链接:https://oj.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 follo...
分类:
其他好文 时间:
2015-01-22 09:32:41
阅读次数:
186
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:
其他好文 时间:
2015-01-22 00:10:30
阅读次数:
188
顺时针打印矩阵
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 matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9...
分类:
其他好文 时间:
2015-01-21 20:04:46
阅读次数:
165
spark内核揭秘-10-RDD源码分析
**
* A Resilient Distributed Dataset (RDD), the basic abstraction in Spark. Represents an immutable,
* partitioned collection of elements that can be operated on in parallel. This class contains the
* basic operations available on a...
分类:
其他好文 时间:
2015-01-21 16:37:59
阅读次数:
196
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.思路:递归的思路。思路与重建二叉树类似。时间复杂度O(n), 空间复杂度O(logN) 1 /** 2 ....
分类:
其他好文 时间:
2015-01-20 22:00:43
阅读次数:
170
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2015-01-19 23:32:53
阅读次数:
234
题目:
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 return the following matrix:
[
[ 1, 2, 3 ],
[ 8, 9, ...
分类:
编程语言 时间:
2015-01-19 19:13:19
阅读次数:
189
题目:
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 matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]...
分类:
编程语言 时间:
2015-01-19 17:19:36
阅读次数:
219