摘要:
跟字典序那道题一样 找出下一个 大于MAX_VALUE或者相同就return-1 阅读全文
摘要:
这个比较简单 https://leetcode.com/problems/trim-a-binary-search-tree/discuss/107000/Java-solution-6-liner 阅读全文
摘要:
common sense 直接sort 然后找citations > len-i 可以直接用一个bucket记录 然后大于N的全部记录在N上 因为hindex不可能大于N https://leetcode.com/problems/h-index/discuss/70768/Java-bucket- 阅读全文
摘要:
把一行能达到的都遍历 visited为true 跟树的那个连接表一样 阅读全文