How Can I Get Better at Solving Algorithms?

0
8
Asked By CleverPineapple42 On

I've been trying to master algorithms but after solving around 500 questions, I still find it hard to tackle new ones on my own. I want to know what others do to really understand and solve these problems confidently. Any tips would be appreciated!

3 Answers

Answered By CuriousCoder88 On

One thing I’ve learned is that repetition is key. Go through those questions again and again to reinforce your understanding. It might sound tedious, but it does help!

AnalyticalOtter99 -

I totally get that! I’ve seen programmers come up with their own algorithms and it’s impressive. It makes me wonder how they do that when I struggle with problems I've already seen.

Answered By KnowledgeSeeker22 On

Before jumping into the coding challenges, it's essential to have a solid foundation in the basics. Make sure you're comfortable with data structures like arrays, linked lists, trees, and graphs. Understanding Big O notation for time and space complexity is also crucial. For algorithms, familiarize yourself with sorting and searching techniques. I recommend checking out the book 'Introduction to Algorithms' by Cormen and looking up free tutorials on sites like GeeksforGeeks.

Answered By DebuggingDolphin77 On

Wait, I’m a bit confused. How did you manage to solve the first 500? Did you have a specific strategy?

CleverPineapple42 -

I mainly used Leetcode for practice. I attempt the problems first, but when I get stuck, I turn to ChatGPT for help. I try to understand the solutions, but honestly, I rarely solve problems in one go.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.