r/JavaProgramming • • 16d ago

What common mistakes do beginners make while solving DSA problems in Java ?

Many beginners start learning Data Structures and Algorithms but struggle to solve problems independently. I'm curious to know what challenges Java beginners face while practicing DSA.

9 Upvotes

10 comments sorted by

View all comments

4

u/ChaoticHippo 16d ago

Lots of them. Generally a fundamental misunderstanding of how the data structure or algorithm works, and then a lack of ability to choose the correct one for the problem at hand. Are you learning DSA? I think you're going to learn more by just trying to solve DSA problems than asking a question like this on Reddit.

1

u/AttemptOwn5533 16d ago

What your take on tackling DSA by pattern wise?

2

u/ChaoticHippo 16d ago

I think it's a good way to identify what data structure / algorithm you need to use, but you need to have the underlying DSA knowledge to be able to do that.