4th language just for dsa
I have knowledge and working on 3 languages javascript, typescript and golang with 3 yoe. Never learnt or appeared for dsa, now seems very difficult to learn 4th language c++ java or python. Can anyone tell me what to do.
Unfortunately the languages you have knowledge of are difficult to use for DSA.
I would recommend learning C++.
Stl library is very useful in DSA
Learning Java will be tougher looking at your skillset
C++ has no use in industry wrt to the work I do, python is better a bit but then it lacks pointer.
Pixeldynamic
Stealth
10 months ago
Why not Java? Sure it does not have pointers but it is higher DSA oriented than Python and is more Object Oriented than C++. Therefore, you can even learn Object oriented design and System Design too.
See more comments
thehollowman
Stealth
10 months ago
Why are you learning this?
thehollowman
Stealth
10 months ago
Never learnt or appeared for daa
Seems difficult to learn 4th language
How are these 2 related
From my competitive programming experience:
1. Python for simplicity and faster coding. You can hit TLEs here so you will need to learn ways to optimize your code.
2. C++ for being fast in general. It’s harder to code in it but it’s considered more pure as you get rid of unnecessary bloat. Unlikely to hit TLEs with an optimised approach.
Best of luck on getting ACs and I hope you don’t get any TLEs or WAs
jackhammer
Stealth
10 months ago
Question your objective first
What it is
You have to clear DSA round for companies
No companies barring few exceptions asks Hard level problem
Typically you would have 1 hr to solve 2 medium level problems
JavaScript/Python is good enough to handle this
Do not go for learning c++
Ps: when I graduated I used c++ for competitive coding but after using javascript in industry and being more comfortable with it, I am presently using javascript for competitive coding and I don't see any issues with it
I do DSA in JavaScript. So why bother learning a new language when you already know it?
Many companies and online coding evaluation platform does not support Javascript. They want strict oops language. Neither it has strict type checking nor pointers and its not even a proper Oops language.
Discover More
Curated from across