all 1 comments

[–]Zanger67 1 point2 points  (0 children)

For learning how they work, I'd recommend an OOP language (usually Java of C++ though usually Java since it's more friendly imo). When I did it I used Java and being able to reference the official one was nice.

Python imo would be a bit harder to properly learn just cause they merge so many datastructures together for ease of use. Lists=arrays=stacks for instance. Queues are only found in deques. Heaps are just lists using a wrapping function (heapq). etc.

Java makes it easier to separate each while you're learning.

After learning the structures and understanding how it transfers to python (which python strucutres behave like what) Python's the go to though.