11 2017 档案

摘要:Merge Two Sorted List Des: merge two sorted list into one sorted list (splicing the node of the first two lists) 我的思路: 每一个循环都复制一个新的new list node, 不破坏原 阅读全文
posted @ 2017-11-08 04:56 AugusKong 阅读(112) 评论(0) 推荐(0)
摘要:Nov. 5th Number of islands Des: 2D matrix Solution: 1. iterate through all the elements of the 2D matrix 2.if v == 1 bfs through the one hop neighbors 阅读全文
posted @ 2017-11-06 06:46 AugusKong 阅读(133) 评论(0) 推荐(0)