DEV Community

loading...

Discussion on: I failed an interview because of an algorithm

Collapse
renatodinhani profile image
Renato Dinhani

After every coding challenge I feel like a failure, but I just accept that is not my thing to code with a clock ticking. Sometimes the correct thing to do is take 15 minutes to think, to understand the problem, throw away everything you did and restart with a clear view, but that is impossible in timed tests.

I just finished a HackerRank test minutes ago and I was stuck in an edge case for 20 minutes or more and could not understand why the test was expecting a different output. It did not take 30 seconds after I submitted for my mind to understand what really was the problem with the edge case.