Struggling with Data structures & Algorithms

Posted by ManFromEarth_666@reddit | learnprogramming | View on Reddit | 6 comments

Hello everyone, I'm a self-taught developer and have been working professionally for years now, but to be honest, I was always bad at DSA and LeetCode and I mostly ignored it.

This hasn't caused any issues in my real job. I've even had senior and lead roles in small teams. I'm not that bad at what I do, as far as I know.

But LeetCode and algorithms are different beasts. It is sometimes very hard for me to wrap my head around a new concept. Even if I get the hang of it today, it's like I forget what I learned three days later and end up coding a broken version of it when I try again.

The latest thing I'm getting stuck on is sorting algorithms, merge sort and insertion sort. I understand the idea, but if someone asked me to code one from scratch three days later, I'd 90% be staring at the screen for a while and then come up with a broken version.

Soon I'm moving to a country where interviewers mostly use LeetCode-style questions, so I'm kind of freaking out.

Does anyone have any tips, or is this just a lost cause? Do some of us not have the mental capacity for abstract concepts?

Any tips would be really welcome.