Given an array of integers, for each integer we need to choose?either or , and add to . After this process, we have some array . Return the smallest p ...
分类:
其他好文 时间:
2019-08-16 01:04:06
阅读次数:
106
返回排序二叉树第K小的数 还是用先序遍历,记录index和K进行比较 程序运行动态演示 http://simpledsp.com/FS/Html/lc230.html ...
分类:
其他好文 时间:
2019-08-13 09:13:09
阅读次数:
76
The Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply find the k-th smallest num ...
分类:
编程语言 时间:
2019-08-09 01:38:56
阅读次数:
157
1144 The Missing Number (20 分) 1144 The Missing Number (20 分) 1144 The Missing Number (20 分) Given N integers, you are supposed to find the smallest p ...
分类:
其他好文 时间:
2019-07-31 14:48:26
阅读次数:
78
https://leetcode.com/problems/kth-smallest-element-in-a-bst/ Medium https://leetcode.com/problems/kth-smallest-element-in-a-bst/ Medium https://leetco ...
分类:
其他好文 时间:
2019-07-29 20:15:18
阅读次数:
104
An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to large ...
分类:
编程语言 时间:
2019-07-28 22:44:35
阅读次数:
140
-->Smallest Difference 直接写中文了 Descriptions: 给定若干位十进制数,你可以通过选择一个非空子集并以某种顺序构建一个数。剩余元素可以用相同规则构建第二个数。除非构造的数恰好为0,否则不能以0打头。 举例来说,给定数字0,1,2,4,6与7,你可以写出10和246 ...
分类:
其他好文 时间:
2019-07-15 21:14:58
阅读次数:
126
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c ...
分类:
其他好文 时间:
2019-07-10 20:07:01
阅读次数:
102
1038 Recover the Smallest Number (30 分) 1038 Recover the Smallest Number (30 分) 1038 Recover the Smallest Number (30 分) Given a collection of number s ...
分类:
其他好文 时间:
2019-07-08 16:31:43
阅读次数:
73
原题链接在这里:https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/ 题目: Given a binary tree rooted at root, the depth of each node is t ...
分类:
其他好文 时间:
2019-07-08 13:58:55
阅读次数:
127