摘要:
Bucket Sort + HashMap HashMap+ Heap+Wrapper Class 阅读全文
摘要:
recursively find the node that needs to be deleted Once the node is found, have to handle the below 4 cases node doesn't have left nor right - return 阅读全文
摘要:
The key of this problem is to think of using Stack 阅读全文
摘要:
DP use HashMap: 根据string的长度sort,然后维护每个string的longest chain,default为1,如果删除某个char生成的string能提供更长的chain,则更新 阅读全文
摘要:
DFS & BFS: 关键在于构造graph 如果想把String[] array转化为2d char array, code如下,写的时候这里出了点小问题。friends是String[] Union Find 阅读全文