问题描述:
Clone an undirected graph. Each node in the graph contains a label and a list
of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as a separat...
分类:
其他好文 时间:
2015-01-17 19:34:16
阅读次数:
186
http://www.androidren.com/index.php?qa=162&qa_1=gradle-location-is-unknow
老外的一种方案:
The gradle plugin (which contains a bundled version of gradle) should be already installed inwhere/you/instal...
分类:
其他好文 时间:
2015-01-17 12:42:43
阅读次数:
124
Description Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits...
分类:
其他好文 时间:
2015-01-16 23:32:56
阅读次数:
146
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's ke...
分类:
编程语言 时间:
2015-01-16 10:12:49
阅读次数:
163
function contains(parentNode, childNode) { if (parentNode.contains) { return parentNode != childNode && parentNode.contains(childNod...
分类:
其他好文 时间:
2015-01-15 10:50:01
阅读次数:
208
问题描述:
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys
less than the node'...
分类:
其他好文 时间:
2015-01-14 22:53:40
阅读次数:
179
PermutationSequence https://oj.leetcode.com/problems/permutation-sequence/The set [1,2,3,…,n] contains a total of n! unique permutations.By listing a....
分类:
其他好文 时间:
2015-01-14 19:50:23
阅读次数:
136
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:
其他好文 时间:
2015-01-14 09:52:48
阅读次数:
161
问题描述:
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 if the array contains less than 2 ele...
分类:
其他好文 时间:
2015-01-13 23:17:46
阅读次数:
330
The problem:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are ...
分类:
其他好文 时间:
2015-01-13 00:04:10
阅读次数:
135