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.
Just begin with the (basic) reasoning that initially comes to your mind. As you proceed and visualize the relations between things, you will be amazed to see that you can actually figure out optimized solutions.
Don't get carried away with fancy one-liners. Time-optimization is more important. Once the habit of analyzing numbers in programs gets you, you too can rock!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
Just begin with the (basic) reasoning that initially comes to your mind. As you proceed and visualize the relations between things, you will be amazed to see that you can actually figure out optimized solutions. Don't get carried away with fancy one-liners. Time-optimization is more important. Once the habit of analyzing numbers in programs gets you, you too can rock!