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.
Every programmer goes through this stage. You can start by first building the logic for the problem. By logic, I don't mean that you directly start writing the code. Just think of how a particular problem can be solved, the inputs and outputs along with the edge cases. If needed, use a paper and pen and write in simple language your logic. Once you are satisfied, start coding the same.
Also, do not spend more than an hour on building the logic if you have just started competitve programming. If after 1 hour you are unable to build a logic, see the solutions posted by others and go through atleast the top 3 solutions.Understand them and then proceed with your solution again. If required, search on Google too! Google search, GFG, and StackOverflow are going to be your best friends forever if you are a programmer. Hope this helps !!! :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Finding the percentage
You are viewing a single comment's thread. Return to all comments →
Every programmer goes through this stage. You can start by first building the logic for the problem. By logic, I don't mean that you directly start writing the code. Just think of how a particular problem can be solved, the inputs and outputs along with the edge cases. If needed, use a paper and pen and write in simple language your logic. Once you are satisfied, start coding the same. Also, do not spend more than an hour on building the logic if you have just started competitve programming. If after 1 hour you are unable to build a logic, see the solutions posted by others and go through atleast the top 3 solutions.Understand them and then proceed with your solution again. If required, search on Google too! Google search, GFG, and StackOverflow are going to be your best friends forever if you are a programmer. Hope this helps !!! :)