Toptal How to solve the Problem.
So your editor is ready with 3 js file with solution function. and you hit the button. The end goal is to cross the 120 points.
If you solve one question properly and other correctly it will bump it up to the 120. Your goal is to get 120+.
First is to spend 5 mins. to take a look at all three question, and see if you already know the solution of any. It can be done in 2-3 mins, just getting the sense of it.
Then hopefully you identify the easy one, It should be the first one, generally speaking.
Step 1 - Get the question clear.
Step 2 - Draw the answer on paper.
Step 3 - Implement. test every step. and make sure it is clean, to avoid waste in debugging.
Step 4 - Test with some more data, especially boundaries.
Step 5 - Submit and move to the next.
Some of things about the codility is that you can quickly solve it for the boundary condition. That way you can atleast get points for that.
Some of things that I Should not be doing is, getting lost in the implementation, because I didn’t tested the code. giving up or moving to other problem prematurely. Even if the negative talking start, keep intense focus on the question.
Don’t rush to complete all three, two are enough to cross the boundary. After solving the first one properly see if you can just get the others correct.