r/leetcode • • 6d ago

Question Better language for dsa

What language to choose for dsa to learn about the higher concepts like DP, Greedy.

As of now I am currently using Java for the medium level questions but I keep hearing that python is easier than java for those concepts

What do u think?? Should I switch to python or continue java???

8 Upvotes

4 comments sorted by

3

u/LeadingNo2345 6d ago

Based on ur interest. Java is a strong language.

When I started my dsa, I used both java and python in parallel.

Because in OA, python gives advantage to write in less time.

1

u/kogitatr 5d ago

Ive used go and typescript, but kinda jealous to see python folks has heapq

1

u/lorsecco88 5d ago

Use the language you are going to use in the Interview, the one you are the most proficient

1

u/Crazy_Concern2615 4d ago

Proceed with Java. It will support your future prospects, as organizations widely use it for backend development roles.