码迷,mamicode.com
首页 >  
搜索关键字:elements    ( 4737个结果
Leetcode:Recover Binary Search Tree
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-02 21:07:27    阅读次数:155
Leetcode:Recover Binary Search Tree
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-02 21:01:15    阅读次数:184
java数据结构系列之——数组(1)
import javax.management.RuntimeErrorException;public class MyArray { private long array[]; private int elements;//用于记录数组中实际数据的个数 public MyArray(){ a.....
分类:编程语言   时间:2015-01-01 21:07:10    阅读次数:216
UML的基本关联
??First, a dependency is a semantic relationship between two model elements in which a change to one element (the independent one) may affect the sema...
分类:其他好文   时间:2015-01-01 19:44:28    阅读次数:186
【leetcode】Subsets II (middle) ☆
Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descending order....
分类:其他好文   时间:2014-12-31 17:49:15    阅读次数:205
【LeetCode】Missing Ranges
Missing RangesGiven a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges.For example, given [0, ...
分类:其他好文   时间:2014-12-31 17:39:21    阅读次数:110
Leetcode:Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.分析:对于BST,左右子树的高度差小于等于1,则在由sorted array构建BST时把数组中间元素作为...
分类:其他好文   时间:2014-12-31 16:04:01    阅读次数:198
[C++]LeetCode: 64 Subsets II
题目: Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contai...
分类:编程语言   时间:2014-12-31 14:41:10    阅读次数:277
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 matrix:[ [ ...
分类:其他好文   时间:2014-12-31 14:20:38    阅读次数:159
leetcode 163: Missing Ranges
Missing Ranges Total Accepted: 510 Total Submissions: 2300 Given a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges. For example, giv...
分类:其他好文   时间:2014-12-31 10:06:44    阅读次数:368
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!