Dec. 28, 2016
Min Heap using Array
Learn something through 10 minutes video.
Watch the video:
Data Structures: Solve 'Find the Running Median' Using Heaps
Data structures: Heaps
Julia, write down the code in the above lecture video, and then use it for my own copy of C# PriorityQueue class.
Min Heap:
The lecture is very good, and make the explanation to mine; learn how to design those APIs:
ensureCapacity
add
heapifyDown
heapifyUp
Watch the lecture notes twice.
Actionable Items:
Read code review on stackexchange.com
search keyword: min heap using array
http://codereview.stackexchange.com/search?q=min+heap+using+array
From January 2015, she started to practice leetcode questions; she trains herself to stay focus, develops "muscle" memory when she practices those questions one by one. 2015年初, Julia开始参与做Leetcode, 开通自己第一个博客. 刷Leet code的题目, 她看了很多的代码, 每个人那学一点, 也开通Github, 发表自己的代码, 尝试写自己的一些体会. She learns from her favorite sports – tennis, 10,000 serves practice builds up good memory for a great serve. Just keep going. Hard work beats talent when talent fails to work hard.
No comments:
Post a Comment