DEV Community

Mbonu Blessing
Mbonu Blessing

Posted on

When is it necessary to bother about the performance of your algorithm?

I just started the Leetcode array data structure exploration and I see that there is a chart showing where I stand based on how long my solution took to run. I sometimes feel this is discouraging as I just spent hours just trying to come up with a solution but still got the bad news that it is not good enough? Should I be bothered by it or just ignore those charts for now?

Top comments (1)

Collapse
 
mxldevs profile image
MxL Devs • Edited

When it becomes an actual bottleneck.

You can spend all that time coming up with a solution but if you never hit those scales, was it worth the time investment?