IP属地:宾夕法尼亚州
538. Convert BST to Greater Tree Given a Binary Search Tree (BST), conve...
排序用priorityqueue有奇效,求第k个大的数,前K个大的数,mergeK个链表,用一个minheap 遍历HashMap: 巧妙 需要...
expression expand挺多点需要注意的,题很有意思,想递归觉得应该由简单到复杂去想,如何处理a,再一步步想,a -> 2[a] ->...
283. Move Zeros Given an array nums, write a function to move all 0's to...
Hash 720. Longest Word in Dictionary Given a list of strings words repre...
你是怎么想到的+复杂度 多重循环 定义DP数组,一般自顶向下,从起点到该位置的int,boolean 初始化DP数组 多重循环填充数组 568....
二分Index 287. Find the Duplicate Number Given an array nums containing n ...
hashmap<count,index> map.containsKey()时更新最值不put,没有时put 根据后面找前面,不用初始化pref...