I'm planning to take Abdul Bari's Data Structures and Algorithms course, but it's taught in C and C++. I've primarily used Python and haven't really worked with C or C++. Given that the instructor emphasizes visualizing concepts on the whiteboard before coding, I'm wondering if I should focus on applying what I learn in Python. Is it necessary for me to learn C or C++ first, or can I get by with just implementing the concepts in Python for now? I do intend to learn C/C++ in the future after I complete the DSA course.
4 Answers
I'd say just dive into the course and do your best with the material presented. You'll probably be surprised at how much you can grasp without knowing C or C++, especially if you focus on the DSA concepts. After you get the hang of it, translating exercises to Python is a solid plan. Just be ready to tackle the languages later when you feel more comfortable.
It might be a good idea to familiarize yourself with some basic C/C++ concepts as you go along. Learning the syntax can help you understand data structures better, especially since they operate quite differently compared to Python. Just spend a little time on the basics, and you should be fine.
One thing to keep in mind is that C and C++ are quite different languages despite their similarities. Sometimes, what works in C doesn’t directly translate to C++ and vice versa. If you're unsure about coding in C/C++, it’d be wise to check with your instructor about their expectations. They might even be okay with you submitting Python code if you explain your situation.
Honestly, you can get by with a basic understanding of C/C++. You don’t need to master it, but having a grasp of how arrays and pointers work will definitely help when you study DSA. You can learn the minimum you need to implement those structures while still using Python.

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