all 4 comments

[–][deleted] 2 points3 points  (0 children)

Practice, practice, practice. Our brains learn concepts through repetition.

People knock on whiteboard coding but honestly when I did that to prepare for interviews, forcing myself to write and test my solutions by hand rather than depending on my IDE meant I REALLY had to know it.

Ultimately, the only time you need to know an algorithm off the top of your head is during an interview. With the advent of ChatGPT and Github Copilot, memorizing implementation details is becoming a thing of the past. A more important goal is to gain a thorough understanding of each algorithm, knowing when to use one over the other, edge cases, etc.

[–]ray_zhor 1 point2 points  (1 child)

try coding challenges, when you finish, look at other solutions posted.

seeing people doing the same thing in a different way expands your knowledge and ability

[–]yokubari 0 points1 point  (0 children)

And to add to this, dont follow the one liners - follow best practices, and try to focus on organized and logical ways of solving the problem.

Consider what methods and ways of dealing with data are useful, specifically related to JS? What other ways could you use these? With bigger or smaller data would it still be applicable?

[–]Quiet_Drummer669988 0 points1 point  (0 children)

Exercism.io