摘要:
Quick Sort Way: We can use quick sort technique to solve this. We represent nuts and bolts in character array for understanding the logic. Nuts repres 阅读全文
posted @ 2017-03-17 06:12
neverlandly
阅读(747)
评论(0)
推荐(0)
摘要:
跟Merge K sorted lists不同在于,从PQ里poll出来以后不知道下一个需要被加入PQ的是哪一个 所以需要写一个wrapper class 阅读全文
posted @ 2017-03-17 04:45
neverlandly
阅读(690)
评论(0)
推荐(0)
摘要:
方法可以是记录每次新的岛屿搜索的路径,left,right,up,down, 作为标志是否相同的key,存hashset 阅读全文
posted @ 2017-03-17 02:46
neverlandly
阅读(645)
评论(0)
推荐(0)
浙公网安备 33010602011771号