We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
And think that people forget is, you can write a clever solution but I will have to debug it or upgraded it. If you write everything in one line, and in C and Java you could, they don' relay on indentation.
There will be none who will want to work on that.
Sometimes i write separate function just to keep the code out of the way, make it cleaner.
There will be cases where program has a few lines of code and 2 or 3 times as much comments.
Algorithms are about elegant solutions, not clever one.
KISS
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
As everyone else steaded, practice, a lot of it.
And think that people forget is, you can write a clever solution but I will have to debug it or upgraded it. If you write everything in one line, and in C and Java you could, they don' relay on indentation.
There will be none who will want to work on that. Sometimes i write separate function just to keep the code out of the way, make it cleaner. There will be cases where program has a few lines of code and 2 or 3 times as much comments.
Algorithms are about elegant solutions, not clever one. KISS