SparklyHamster
SparklyHamster
14mo

Which language do you prefer for DSA and why?

Python has less boiler plate code compared to other languages which saves a lot of time in pressure environment like interviews. Do you agree?

Python
C++
Java
Golang
Javascript
Other (please share name)
115 votesexpired
14mo ago
FluffyKoala
FluffyKoala

Python - the syntax is much more concise and short compared to the others which saves time and whiteboard space while writing code. That makes a big difference when you have to complete multiple problems during a 45 mins - 1 hour time window of a typical coding interview

TwirlyJellybean
TwirlyJellybean
14mo

I mostly gave my interviews in java but I also practiced python alongside for the interviews. Python is very nice and easy for dsa interviews if they allow it. The list comprehension, the python list that doubles as a stack and can be initialized just as a '[]'. the @cache annotation for turning a recursive solution to a memoized dp solution. soo convenient

SparklyHamster
SparklyHamster
13mo

Yeah true. I had some dilemma but now I have also moved to python.

Discover more
Curated from across