April 18, 2016
Rotate array - HackerRank
problem statement:
https://www.hackerrank.com/challenges/matrix-rotation-algo
Study other's code:
https://gist.github.com/jianminchen/9005cbbbbbd60e307759747856e3a35a
Write a solution using the same idea. Try to practice 20 - 30 minutes.
Just be simple; Read other people's code, like it; and then, write exactly same idea, and see if you can make it work as well.
Write same algorithm again and again, use various ideas; same idea, write again and again, see if you can improve the performance, more concentration - write the program from hours to 30 minutes, less than 10 minutes. Practice makes perfect.
To be continued:
Action item:
Will write my own version of implementation.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment