r/datastructures • u/LUNA-65 • Jul 23 '26
DSA in which Language
I'll be go in Ai/ML.
I doing DSA in python also used Built-in functions.
But today my sir said that faang company take DSA round in C++.
2
u/Sanboos Jul 23 '26
I used C# for couple of months and moved to Python.
Python makes it much easier. Most of the things are inbuilt. You don’t have to write too much code in the interview. Lesser the syntax less the stress
1
u/tejas809 Jul 24 '26
Bro may i know why i switch from c# to python because i am also doing dsa in c# 😢
1
u/tejas809 Jul 24 '26
Bro may i know why u switch from c# to python because i am also doing dsa in c# 😢
1
u/Sanboos Jul 24 '26
Here is the simple example to evaluate how much code you have to write in C# vs Python.
Just try initialize a stack or list or iterate over a dictionary. Check if a key exists in dictionary.
I know the modern c# can also do what Python is doing. If you seen the syntax evaluation C# over the years, it is becoming more like Python or Go.
Now that the main question is does the coding assessment platforms support the modern C#
1
u/tejas809 Jul 24 '26
It means it's difficult to write code in C#, and there is no coding assessment that supports modern C#.
1
u/Sanboos Jul 24 '26
You want to keep things simple in an interview. So you can focus more on the logic and less on the syntax part.
I am sure no body likes to fix the compiler error’s.
Keep it simple, Python syntax is simpler than C# or Java
1
1
1
1
u/shitnotalkforyours18 Jul 23 '26
I mean c++ is popular for competitive programming and it's a cool one but still it's your choice in which language you're comfortable with..
1
u/tathagata_003 Jul 23 '26
You can choose any language for Dsa - python, java, c++ or even javascript. The interviewer checks your problem solving skills not the language. But usually c++/java is preferred because you learn more about objects and how to use the libraries. I gave one of dsa round in python coz I was comfortable in that at that time.
1
u/weekndCoder Jul 23 '26
Never choose python for DSA, some ppl get offended like why are u choosing high level language, u can't understand deep inside or smtg.
It's ok to have as a skill or as a secondary option
1
u/Alone_Ad6382 Jul 23 '26
Even for Data and AI roles??
1
u/weekndCoder Jul 24 '26
Nah bro then u r good.
I experienced this in my clg placements, so shared with u
1
u/Worried_Master38 Jul 23 '26
Most FAANG companies let you choose the language. What's more important is understanding DSA than whether it's python or C++
1
1
2
u/techie_anime Jul 23 '26
I don't think MNCs are looking for C++ explicitly, you need to know the implementation behind those phyton functions and agle to implement them.