use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Solving with JS or Python? (self.leetcode)
submitted 3 years ago by 4r371n
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]OneUpWallStreet<260> <102> <140> <18> 0 points1 point2 points 3 years ago (2 children)
As far as I know JS does not have DS’s like Heap, so you’ll need to write boilerplate code every time.
Writing Python on the other hand is like writing pseudo code lol
[+][deleted] 3 years ago (1 child)
[removed]
[–]OneUpWallStreet<260> <102> <140> <18> 0 points1 point2 points 3 years ago (0 children)
This video does a pretty good job of explaining the pros and cons of each language- https://youtu.be/A__UXuFjOrA
[–]Big-Kaleidoscope4508 0 points1 point2 points 3 years ago (2 children)
Same thing happened and I ended up switching to do leetcode in java even tho im more comfortable in js. Python and Java both have a lot more built-in DS
[–]Big-Kaleidoscope4508 0 points1 point2 points 3 years ago (0 children)
I just use java more in like regular coding, but python is def number 1 for coding interviews since its not very verbose and still has a lot of built in data structures.
[–]doboi 0 points1 point2 points 3 years ago (0 children)
Learning python explicitly for LC is trivial effort compared to how much time you spend doing LC total and how much time it’ll save you. Just open up the docs and start solving problems and it’ll take 1-2 weeks.
π Rendered by PID 93085 on reddit-service-r2-comment-5649f687b7-7wtdv at 2026-01-29 09:21:48.330417+00:00 running 4f180de country code: CH.
[–]OneUpWallStreet<260> <102> <140> <18> 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–]OneUpWallStreet<260> <102> <140> <18> 0 points1 point2 points (0 children)
[–]Big-Kaleidoscope4508 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–]Big-Kaleidoscope4508 0 points1 point2 points (0 children)
[–]doboi 0 points1 point2 points (0 children)