Problem Description:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1...
分类:
其他好文 时间:
2014-07-07 15:54:24
阅读次数:
193
Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ],...
分类:
其他好文 时间:
2014-07-07 14:22:37
阅读次数:
210
Two elements of a binary search tree (BST) are swapped by mistake.
分类:
其他好文 时间:
2014-07-03 19:44:18
阅读次数:
161
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-07-03 19:24:36
阅读次数:
142
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
分类:
其他好文 时间:
2014-07-03 19:10:40
阅读次数:
201
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
分类:
其他好文 时间:
2014-07-03 18:55:48
阅读次数:
236
Problem E: Jolly Jumpers
A sequence of n > 0 integers is called a jolly
jumper if the absolute values of the difference between successive elements take on all the values 1 through n-1.
For ins...
分类:
其他好文 时间:
2014-07-03 17:40:42
阅读次数:
257
MatrixTime Limit:3000MSMemory Limit:65536KDescriptionGiven an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in the i-th row...
分类:
其他好文 时间:
2014-07-01 21:17:23
阅读次数:
190
《EffectiveC#》这本书讲了一些关于C#语言的使用技巧和经验. 该系列文章是备忘录和自己的一些见解.程序猿们最喜欢这类问题了,欢迎讨论~菜单Item 1 使用属性取代公共成员变量Item 2 优先考虑readonly而不是constItem 3 使用is/as取代转换操作符来进行对象类型转换...
分类:
其他好文 时间:
2014-06-30 14:57:30
阅读次数:
319
题目
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100, 4, 200, 1, 3, 2],
The longest consecutive elements sequence...
分类:
其他好文 时间:
2014-06-29 22:16:48
阅读次数:
239