摘要:
222. Count Complete Tree Nodes 最后一句递归。。。 226. Invert Binary Tree 二叉树的翻转 阅读全文
摘要:
220. Contains Duplicate III //这里需要两个指针i和j,刚开始i和j都指向0,然后i开始向右走遍历数组,如果i和j之差大于k,且m中有nums[j],则删除并j加一。这样保证了m中所有的数的下标之差都不大于k,然后我们用map数据结构的lower_bound()函数来找一 阅读全文
摘要:
215. Kth Largest Element in an Array 4 C++ Solutions using Partition, Max-Heap, priority_queue and multiset respectively Well, this problem has a naiv 阅读全文