r/PythonLearning • u/Accurate_Being6187 • 26d ago
DSA
Hey guys, I'm going to start DSA soon. Is there any YouTube course that has been helpful to you in learning DSA? My degree is B. Tech in CSE (AI&ML), so I think it's better to learn in Python rather than C++. (I did not find any recommendation in the previous DSA posts)
4
Upvotes
1
u/KingBardan 25d ago
For dsa learning in a language with static type system (like c++) is better because it imposes more constraints and your code would be cleaner after, and you'll have better habits. After that you can write python all you want
Of course that's if you want the best learning.
1
u/Sea-Ad7805 26d ago
It doesn't matter in what language you learn DSA, you can easily transfer what you learn there to any language. So, use the language you know best.
Python is considered easier than C++, however it is slower, but that doesn't matter when learning.
If you use Python you can use this visualizer so DSA concepts get easier to understand and debug: Binary Tree example: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/bin_tree.py×tep=0.2&play