I've been learning about data structures in Python from various free sources online, but I've found a lot of mistakes in the material, such as diagrams that don't match the code. I want to find a course that dives deep into data structures, like arrays, stacks, queues, linked lists (both singly and doubly), graphs, trees, and hashing. Ideally, I'd love a course that uses diagrams and maybe some animations to explain the concepts clearly. I've looked at a few on Udemy, but they haven't met my expectations. Any recommendations for up-to-date courses?
3 Answers
I get it, but my focus isn’t on reinventing the wheel. I prefer to use the existing data structures in Python and perform operations on them. I don’t think that’s too different from working in C, and it should still help solidify the concepts you’re learning.
Honestly, I don't think Python is the best language for learning data structures. The built-in types like dictionaries, lists, and sets already serve as primitive data structures. For example, building your custom list in Python doesn't really make sense since it would just be made of lists. If you're serious about mastering data structures, I'd suggest learning C. It’s much simpler and you get to work with truly primitive data types, allowing you to implement real data structures like linked lists and hash tables effectively.
I see where you're coming from, but I think you can implement data structures in Python if you want to. Here’s a quick example of a linked list implementation in Python without using built-in lists. Sure, it’s not as efficient or practical for production, but it’s completely doable and can be a great way to learn.
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically