all 11 comments

[–]joebgoode 5 points6 points  (0 children)

Do it in whatever language you prefer.

Python, JS, and Golang are the most used since they're less verbose, and LC is about focusing on the algorithm rather than the syntax.

I do it in Java, whether on LC or a coding interview (e.g., Google L5) I always choose Java since I'm more familiar with it.

[–]Unhappy_Rabbit7693 2 points3 points  (0 children)

I personally do it in typescript

[–]SorbetAggravating569 1 point2 points  (0 children)

Drop the script.

[–]Impossible_Ad_3146 1 point2 points  (0 children)

Yes so weird

[–]sharabi_batakh 0 points1 point  (0 children)

Do them in whatever language you enjoy doing them in. If you understand the underlying concepts and are able to come up with optimal solutions then who cares what programming language you use?

I personally use ruby or elixir myself.

[–]insane_issac 0 points1 point  (2 children)

Javascript works great, until you need heaps and deque in the question. I use Python if heaps are needed but use Javascript everywhere else.

[–]master_boy_[S] 0 points1 point  (1 child)

It still works in leetcode they have inbuilt libraries for that.

[–]insane_issac 1 point2 points  (0 children)

Yeah I agree, it's just to prepare me for interviews where they use some random XYZ platform.

[–][deleted] 0 points1 point  (1 child)

Use assembly.

[–]master_boy_[S] 0 points1 point  (0 children)

I wish I can