Start to work on this 3 hours course on pluralsight.com.
Start from beginner level, enjoy the course. Take some notes.
Related course:
http://juliachencoding.blogspot.ca/2016/08/become-full-stack-net-developer.html
Leetcode workout:
1. Leetcode 278 - binary search algorithm and discussion
1. http://blog.csdn.net/ebowtang/article/details/50735869
A. Good discussion on the deadloop prevention - make sure that +1 or -1 somewhere
B. discussion of
Good discussion of tips:
1. base case
2. overflow issue
http://www.cnblogs.com/airwindow/p/4791234.html
Leetcode 125
1. study the code:
http://blog.csdn.net/DERRANTCM/article/details/47651267
Leetcode 125 - write code based on this version
short function name - isalnum - very good name
http://blog.csdn.net/nomasp/article/details/50623165
5 practices - interest journey !
1st practice: failed static analysis - miss a bug - easy to spot --, not++
https://gist.github.com/jianminchen/ed12d3004dbe85815f41fef047d48823
there is a bug in first writing, line 62, shoud be right--; not right++.
static analysis did not catch the bug - be careful next time.
2nd practice:
https://gist.github.com/jianminchen/1e1724c79805d2f40195f08135ec4d02
highlights of practice 2:
1. Fail to pass the online judge
2. line 24 - 27, logic and reasoning has flaws
both are ok
both are failed
A is failed
B is failed
Those are 4 cases - in the specific order as well.
3rd practice:
https://gist.github.com/jianminchen/8f9ae3839499718790180aa58965d3de
highlights of 3rd practice:
1. Fix the bug first, add these line 59 -67 two "else if", one "else", pass online judge
2. But code "else if" from line 59 -67 can be shortened, avoidable.
4th practice:
https://gist.github.com/jianminchen/c6a4318a06aa271de834e1e9c1afa7e4
break else if statement, make it more flat - line 60 - 65, only two if, avoid " else if" in 3rd practice.
5th practice:
https://gist.github.com/jianminchen/8f9ae3839499718790180aa58965d3de
6th practice:
follow the flow of real processing - skip left/right if need, comparison failed, or continue to compare
https://gist.github.com/jianminchen/71421f776948086fd653e441725b3732
http://blog.csdn.net/DERRANTCM/article/category/6247554
http://blog.csdn.net/derrantcm/article/details/51512284
4. Review palindrom blog
No comments:
Post a Comment