DEV Community

loading...

Discussion on: Writing some JavaScript classes for interviews (Heap, Trie, etc)

Collapse
braeden profile image
Braeden Smith Author

Yeah absolutely! I've worked w/ Python a decent amount. I just am so engrained with C style loops, blocking, etc, because I'm often switching between C, C++, & JS. So JS is a great mix of dynamic typing + C style language.

Plus I use a lot of JS for projects, so I'm generally more comfortable iterating fast (as long as I have access to a heap class).

My suggestion is to do a handful of leetcode easy/medium problems. Try in JS and try in Python, whatever makes you work the fastest with clean code is the language I'd recommend! Hopefully that helps!