
范围
文章平均质量分 74
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 272. Closest Binary Search Tree Value II(二叉搜索树查找)
原题网址:https://leetcode.com/problems/closest-binary-search-tree-value-ii/ Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Note:原创 2016-04-13 06:15:51 · 2063 阅读 · 0 评论 -
LeetCode 201. Bitwise AND of Numbers Range(范围内所有数值的比特与)
原题网址:https://leetcode.com/problems/bitwise-and-of-numbers-range/ Given a range [m, n] where 0 For example, given the range [5, 7], you should return 4. 思路:总体思路就是求出m和n的高位比特的公共前缀。 方法一:变动前缀本身。原创 2016-05-04 05:21:07 · 444 阅读 · 0 评论