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
Write a function: def solution(A) that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in ...
分类:
编程语言 时间:
2019-07-08 10:41:54
阅读次数:
338
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The l ...
分类:
其他好文 时间:
2019-06-15 15:43:20
阅读次数:
104
题目如下: Return the lexicographically smallest subsequence of text that contains all the distinct characters of text exactly once. Example 1: Example 2: ...
分类:
其他好文 时间:
2019-06-15 10:09:22
阅读次数:
108
找到一个跟我的思路比较接近的参考解决方案: 参考:https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/discuss/308222/show-my-thinking-process ...
分类:
其他好文 时间:
2019-06-09 22:25:27
阅读次数:
136
二分查找 区间长度为[mn, mx] 然后O(n) 求出 & v, int k) { int len = v.size(); if(k = k) ans = m, r = m 1; else l = m+1; } return ans; } int count(vector & v, int m) ...
分类:
其他好文 时间:
2019-06-08 15:06:03
阅读次数:
102
902. Kth Smallest Element in a BST https://www.lintcode.com/problem/kth-smallest-element-in-a-bst/description?_from=ladder&&fromId=1 578. Lowest Commo ...
分类:
其他好文 时间:
2019-05-25 09:20:14
阅读次数:
139
Alice has a magic array. She suggests that the value of a interval is equal to the sum of the values in the interval, multiplied by the smallest value ...
分类:
其他好文 时间:
2019-04-21 20:18:05
阅读次数:
152