摘要:
Merge Two Sorted List Des: merge two sorted list into one sorted list (splicing the node of the first two lists) 我的思路: 每一个循环都复制一个新的new list node, 不破坏原 阅读全文
摘要:
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 阅读全文
摘要:
Oct 14th Tree 结构是否会比其它结构更难建立? no!! 创建的时间都是一样的,每个元素都添加一遍 一定是O(n) 的时间复杂度 Before the Start Basic Knowledge: mycodeschool "video" __Height of the tree__: 阅读全文
摘要:
Lint: Search a 2D Matrix: typo start_end should be start_column while loop 中忘记update the state of counter typo : matrix mid typo: return true + return 阅读全文
摘要:
Lesson1 The World of Objects __variable type__: primitive variables : int object variables :Pokemon _object variables are made up of those primitive t 阅读全文
摘要:
九章算法 Chapter7 两个指针 __Remove Duplicate Numbers in Array__ 思路:删除 相向双指针 __Window Sum__: given an array _nums_ and a value _k_ and a window, the window's 阅读全文
摘要:
Sample code one pump gas station events: arrival + departure arrival departure simulation time: unprocesed events are stored in pending list simulatio 阅读全文