Julia started her first day to look into stack exchange: code review, and then, she joined one of discussion - quicksort, she was amazed how she learned quickly in the place.
Her first reading starts from here:
http://codereview.stackexchange.com/questions/5648/any-way-to-make-this-recursive-function-better-faster/5661?newreg=7b2fea2453a54c15bc466355fea0891d
Learn from expert on code review:
http://codereview.stackexchange.com/questions/142808/quick-sort-algorithm/142853#142853
http://codereview.stackexchange.com/a/142853/123986
Julia also wrote a blog about quick sort in 2016:
http://juliachencoding.blogspot.ca/2016/02/quick-sort-practice-makes-difference.html
Julia's favorite reading:
http://codereview.stackexchange.com/questions/77782/quick-sort-implementation?rq=1
Study stackoverflow profile:
http://codereview.stackexchange.com/users/507/loki-astari
Actionable Items:
Read more live discussion on stackoverflow code review sections, at least find 5 top talents in C++, and find 10 advises from them in a week.
1. First one: Loki astari
Study stackoverflow profile:
http://codereview.stackexchange.com/users/507/loki-astari
Julia's favorite learning on Nov. 25, 2016:
-- start learning:
http://codereview.stackexchange.com/a/77821/123986
-
Compilers Job
Don't do work the compiler can do for you:int arr[8] = {110, 5, 10,3 ,22, 100, 1, 23};
The compiler is better than you at it anyway and it will prevent
errors. Here you have said the number of elements is 8. As a human I
can't see that at a glance I could count them to verify but as a human I
am lazy and going to assume you got it correct. If you did not get it
correct then we will have problems.So let the compiler work it out.
int arr[] = {110, 5, 10,3 ,22, 100, 1, 23};
Now if the array changes size you only have to change one thing (the data). Rather than two things (data and size).-- end of learning --
Coding Style - Great advice on coding/ design, a hackerRank question:
http://codereview.stackexchange.com/questions/140825/keeping-track-of-the-tennis-score/140827#140827
No comments:
Post a Comment