Tuesday, April 26, 2016

Leetcode - 300 algorithms - Learning by Reading Code First

April 26, 2016


Plan to spend next 2 weeks to go over the solution provided by Temple university Ph.D.  Dawei Li


Some leetcode questions to work on first:

1. reverse half linked list
2. priority queue
3. number of island
4. flying ticket
5. unsorted slots with numbers
6. Sum query 2nd mutable
7. word search in matrix
8. course schedule
9. reverse linked list
10. Leetcode 138: deep copy linked list with random number
11. Leetcode 169 Majorith Element I
12. Leetcode 229 Majority Element II
13. Leetcode 218 Skyline


Work on those two algorithms:
insert a node into a sorted linked list
shortest job first.

Leetcode 138:
http://fisherlei.blogspot.ca/2013/11/leetcode-copy-list-with-random-pointer.html

Leetcode 229 
http://www.cnblogs.com/EdwardLiu/p/4179345.html

Boyer-Moore Voting algorithm
https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_majority_vote_algorithm


3 solutions:
http://yuanhsh.iteye.com/blog/2185974

Code Test:
http://www.cnblogs.com/EdwardLiu/category/614910.html

No comments:

Post a Comment