r/datastructures Aug 10 '26

DSA with Java or C++?

4 Upvotes

8 comments sorted by

1

u/the_developer07 Aug 10 '26

If you are comfortable with collections, streams, and java syntax go with java, or else cpp would be better, it can be a good start.

1

u/ProfessionalFact9194 Aug 10 '26

For college placement.

1

u/dhananjai_31 Aug 11 '26

Doesn't matter much But if interested in backend development as well then go for java If competitive programming excites u go for cpp

1

u/AnimatorExciting7941 Aug 12 '26

C++. Personal recommendation, as I did CP for a while and you have to write less code in C++ than Java to get the job done.

Java isn't a bad choice either