Same for me when I first had this problem. My reviewer pointed it out as something to think about, which had me go "OH".
Being self-taught, learning after work, etc, it's easy to get caught up on passing a test or challenge and not thinking deeper about what is happening and how to improve on it.
Edidiong Asikpo (Didi)
Senior Developer Advocate at Ambassador Labs
Amazing explanation Shannon Crabill. Prior to some months ago, I hated algorithms because I used to ignore trying to understand the problem first before jumping into solving the problem immediately.
Your article is definitely an indication that I am on the right track now. Thanks for sharing this.