No it doesn't matter if you use Python or Java, in fact I recommend it. Most people will know how to read Python, but not always JavaScript. I made the switch because it can make it easier for me to solve problems, it's basically always accepted in interviews, most interviewers know how to read it, and when I'm watching videos a lot of them are in Python Answer from Weekend_Trick on reddit.com
🌐
Reddit
reddit.com › r/cscareerquestions › java vs javascript for doing leetcode?
r/cscareerquestions on Reddit: Java vs JavaScript for doing leetcode?
March 3, 2019 -

I have about 7 months of experience, working as a front end developer. Java has been my language of choice for leetcode, and I'm way more comfortable with it. I'm guessing it's also one of the most used languages in the leetcode community, so it's much easier to compare solutions and stuff. The issue is, my work experience has mostly been in JavaScript ( React and backbone) , and I have nothing to show for in Java. Will the interviewers be okay if my experience is in JavaScript, but I solve the problems using Java?

🌐
DEV Community
dev.to › braeden › why-javascript-is-actually-a-great-leetcode-interview-language-34g1
Why JavaScript is actually a great LeetCode/Interview language - DEV Community
September 23, 2020 - C++ has a bit more convolution with memory management and iterators, but trades that for speed. Java is notoriously verbose, which is often against the spirit of fast iteration during interviews. On the other hand, people often like Python since it's similar to writing pseudocode, it has a super beginner friendly community, and is fast to iterate upon. I'm going to present some reasons (in no particular order) why JavaScript might be the best of both worlds for coding challenges (but especially as an alternative to Python).
🌐
Reddit
reddit.com › r/leetcode › thoughts on using javascript for leetcode questions?
r/leetcode on Reddit: Thoughts on using Javascript for Leetcode questions?
August 6, 2022 -

I'm a full stack web developer in Javascript with about 3 YOE and I'm trying to switch to big tech or a fortune 500 company.

I recently started LeetCode prep and been using JS as my primary language since I have the most experience with it. However, I noticed a lot of the LeetCode solutions in the discussions (especially the top ones) rarely use Javascript. The common languages I've seen are Python and Java. I'm wondering if these questions could be solved more concisely using Python or Java especially since Javascript lacks
some built in data structures (e.g. stacks, queue).

I'm thinking of switching to Python or Java. I had experiences with both in university, so I just need to brush up on them. However, I'm not sure if it's bad practice to use a programming language that you've never used in professional work or personal projects. Also, I'm not familiar with the expectations around this especially in big tech companies with DS/algo focused questions as opposed to domain focused interview questions. What have your experiences been on the expectations around this?

🌐
Reddit
reddit.com › r/csmajors › java vs python vs javascript for leetcode
Java vs Python vs JavaScript for LeetCode : r/csMajors
June 12, 2022 - That's because all the top voted solutions are Indians upvoting other indians, and they are obsessed with Java. More replies More replies ... Use python. I also wanna do web development, but Python is better for solving problems on Leetcode. Leave Javascript for personal projects
🌐
LeetCode
leetcode.com › discuss › post › 1455207 › dilemma-java-or-javascript
Dilemma Java or Javascript? - Discuss - LeetCode
September 10, 2021 - Unfortunately I have been working in projects with Java as main language. I dont know if I will be able to make switch to just Javascript or maybe with along Python.
🌐
Medium
medium.com › @rishichaubey3105 › java-vs-javascript-a-leetcode-comparison-2e05052da51d
Java vs. JavaScript : a leetcode comparison. | by Rishi Chaubey | Medium
November 17, 2024 - In conclusion, Java’s performance characteristics make it a significantly faster language compared to JavaScript for tackling LeetCode coding challenges.
🌐
Reddit
reddit.com › r/leetcode › stuck between js/ts and java for lc
r/leetcode on Reddit: Stuck between JS/TS and Java for LC
May 1, 2025 -

I'm stuck deciding whether to solve LeetCode problems in Java or JavaScript (I also use TypeScript). JavaScript is my go-to for personal projects, and I’m super familiar with it, but when it comes to algorithms and all my coursework, I’ve done everything in Java.

Here is the issue: Java feels so verbose, and writing out solutions takes forever. I’ve tried Python before, but I don’t really like it and don’t want to learn it just to never use it again.

What would you guys recommend?

🌐
Reddit
reddit.com › r/leetcode › should i switch from javascript to java for coding interviews?
r/leetcode on Reddit: Should I switch from JavaScript to Java for coding interviews?
January 17, 2025 -

I'm an experienced dev & just try to stay sharp for leetcode-style algorithm interviews. Back when my day-to-day work was mostly in Java, I'd do these interviews in Java. More recently I do most of my daily coding in JavaScript, so the last few times I've done actual interviews, I've chosen to do the interview in JavaScript. I never really thought it mattered what language I used.

But I wonder if that's true. In one case, as soon as the interviewer saw I was going to use JavaScript, he kind of said, "Oh, okay. JavaScript is honestly too high-level for these kind of questions, but okay." And the vibe was distinctly, "Let's just get through this."

When I go through the problems, I'm always careful to walk the interviewer through what I'm doing, what the algorithm is, why I'm picking the approach I am, etc.

So, I wanted to get people's opinion: assuming that everything else about the interview goes exactly the same, is using JavaScript hurting my chances? Would I be better off switching back to Java? Something else?

Find elsewhere
🌐
Reddit
reddit.com › r/leetcode › is it okay to do lc in js?
r/leetcode on Reddit: Is it okay to do LC in JS?
August 13, 2024 -

I have started doing leetcode recently. I used to do it 2 years ago and now I wanted to brush up DSA skills but the issue is I have forgotten a lot of Java since I only learnt it back when I first started LC. I have worked on JS for the past 4 years and I am more comfortable in it. I have heard stories that the interviewers don't like languages other than cpp, java and python. Is it true?

🌐
Reddit
reddit.com › r/leetcode › is javascript not preferable to learn dsa?
r/leetcode on Reddit: Is Javascript not preferable to learn DSA?
July 1, 2022 - Yeah it worked for me, now I am really proficient in Python (on leetcode at least). I enjoy Python much much much more ... C++ or java for lc anything else is myth. ... Why not python. Java is too verbose ... Visual Basic for lc is the only way. ... This is so based. Python is the best for interviews. Javascript and javascript are next.
🌐
Educative
educative.io › blog › leetcode-java-or-python
Should you use Java or Python for LeetCode?
(This course is also available in Rust, Java, C++, C#, Go, Ruby, Elixir, Scala, Swift, JavaScript, and Kotlin.) ... Java remains a top choice for many developers prepping on LeetCode, especially those targeting backend or enterprise roles.
🌐
DEV Community
dev.to › davinderpalrehal › why-i-moved-from-javascript-to-python-for-leetcode-3pm1
Why I moved from JavaScript to Python for LeetCode - DEV Community
January 2, 2024 - JavaScript has a standard library that provides some basic functionality, such as math, string, and date operations. However, it does not have many advanced modules or packages that are useful for solving LeetCode problems, such as data structures, ...
🌐
Blind
teamblind.com › post › Which-programming-language-to-leetcode-with-tNtsZK6j
Which programming language to leetcode with?
April 3, 2020 - This page has moved · Click here if the automatic redirect does not start
🌐
Reddit
reddit.com › r/leetcode › should i switch from js to python/java for leetcode prblms?
r/leetcode on Reddit: Should I switch from Js to python/java for leetcode prblms?
May 14, 2022 - “Feels good” to code in due to brevity and how “loose” JavaScript can be. Likely very accessible and relevant for Web devs. I would recommend Python and Java over JavaScript purely based on standard library.
🌐
Blind
teamblind.com › post › Leetcode-in-JavaScript-J0Ta2fQ4
Leetcode in JavaScript | Tech Industry - Blind
Hi, Looking for real advice and no judgements. I am changing careers from embedded to front end. I am doing a bootcamp course in web development and it involves projects. I am also putting stuff on GitHub. I have worked in python but doing a cours...
🌐
Reddit
reddit.com › r/leetcode › switching from javascript to python in order to grind leetcode, what’s the best resource to learn the intricacies of the language?
r/leetcode on Reddit: Switching from Javascript to Python in order to grind Leetcode, what’s the best resource to learn the intricacies of the language?
November 24, 2023 -

I’ve been working as web dev for a few years, all JS/React based. Now I’m starting to learn DS&A and do Leetcode and I’m realizing that I’m not doing myself any favors trying to stick with JS when solving these challenges, so I decided to learn Python.

All the Python courses I see are about learning to program from scratch. I’m not interested with that, I just wanna familiarize myself with the syntax and understand how it’s different from JS.

Is there any Python course as a 2nd language? Meaning that’s tailored for already experienced programmers?

Any advice for someone in my particular situation?

🌐
Reddit
reddit.com › r/leetcode › javascript for leetcode
r/leetcode on Reddit: Javascript for leetcode
April 20, 2024 -

I use C++ for interviews and am now thinking of switching to Javascript as it is one of the languages I need to learn for my job and also, because it is a scripting language, the syntax is much more compact. I have been looking at data structures in Javascript and having a hard time figuring the equivalent DSs even after following multiple Javascript courses. Could someone, who uses JS for Leetcode give some pointers and where to learn more for the following: These are the ones that I couldn't find any obvious equivalent in JS.

  1. Hashset : C++ has unordered_set and set for unsorted and sorted Hashset, JS ?

  2. Hashmap: C++ has unordered_map for unsorted whose equivalent in JS seems to be just the 'object' data type. What about sorted map, sorted based on keys? like the C++ map.

  3. Priority queue (min or max queue) that C++ supports

(As for custom structures like Linked list, tree etc, I would assume its just the custom object in JS?) Thanks :)