AI vs. DSA: Is Learning DSA Still Worth It?

I got this question from a reader of my newsletter Faangshui:

"I would like your honest view on learning Data Structures and Algorithms to become a developer. Is it still worth it considering how fast AI is growing? Will it be worth the investment?"

What do you guys think?

My take is below. But first, let me introduce myself:

I'm an ex-FAANG Senior Software Engineer who has conducted hundreds of coding interviews, currently on sabbatical. You can get free daily coding interview tips from me straight to your inbox by subscribing to my newsletter called Faangshui here: blog.faangshui.com. Let's also connect on Linkedin! Now let's get back to the response...

My Response:

The short answer is: Yes, absolutely! Now more than ever.

First, knowledge of Data Structures and Algorithms (DSA) is an invaluable asset for any software engineer because it enhances your problem-solving abilities and enables you to write efficient, optimized code. Mastering DSA concepts helps you understand how and why certain approaches work, which is crucial in software development. So, you won't waste your time learning it.

Second, while AI is getting better at solving DSA problems, it's not directly replacing humans just yet. Employers are hiring humans, not AI agents. AI tools can assist developers, but they can't replace the creativity, critical thinking, and problem-solving skills that humans bring to software engineering. Moreover, AI lacks the ability to understand context, handle ambiguous requirements, or make judgment calls—all essential in real-world development. Remember, computers have been better than humans at chess for decades now, yet chess is more popular than ever.

Third, companies are still using DSA problems for interviews, and that's not going to change in the foreseeable future. These challenges are standard ways for employers to assess a candidate's problem-solving skills and understanding of fundamental concepts. If you want a job at a company that uses DSA challenges in interviews, you need to get good at them, regardless of what's happening in the AI world. There's no way around it.

Lastly, AI might surpass humans in coding when we achieve Artificial General Intelligence (AGI), but at that point, it won't just impact software engineers—it will affect all professions. And it's not certain that we'll achieve AGI anytime soon.

Btw, if you want to receive daily insights about coding, interviews, and tech jobs, consider subscribing to my newsletter.