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.
No comments:
Post a Comment