Hey everyone! I'm currently in my second year of engineering and I'm a bit confused about which programming language I should be using for Data Structures and Algorithms (DSA). My university is teaching DSA in C, which is fine, but I'm also learning C# for Unity game development since I'm really into that. However, I keep hearing that C++ is the best for DSA because of its Standard Template Library (STL) and all the free resources available. So now I'm stuck wondering: Should I stick with C since that's what my college is teaching? Should I make the switch to C++ for DSA, or can I just continue with C# and learn DSA concepts there while working on Unity? I want to make sure I'm not spreading myself too thin, but I also don't want to make the wrong choice early on. My ultimate goal is to work in game development, but I do want a solid foundation in DSA for future placements and problem-solving. Any advice would be appreciated!
2 Answers
If you're learning C#, you could also apply DSA concepts in Unity. It might be beneficial to learn C for your coursework while also experimenting with C# on the side. Learning both could enhance your understanding. Just make sure you're keeping up with your class requirements first!
Don't stress too much about the language you choose; what matters most is understanding the DSA concepts. Once you've grasped the fundamentals in C, you can always apply that knowledge in C++ or even C#. Just remember that the core ideas are what you need to focus on regardless of the language.
Totally agree! It's all about adapting the concepts. Each language will have its quirks, but once you've got the DSA down pat, you'll find it easier to translate those concepts into any language.
Yeah, balancing both could definitely work! C for the structured learning and C# for your game dev projects sounds like a win-win.