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?
Videos
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?
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?
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?
Python. You’re under time pressure in an interview setting and you want the syntax to be as straightforward as possible. Otherwise you’ll either be fighting with the IDE or the compiler instead of solving the problem they throw at you.
Python is perfect for leetcode. Like writing pseudocode
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?
I basically know nothing of DSA and want to learn it and start doing leetcode, but I dont know python or c#. Should i try to learn python while I learn dsa or just use js? i know that i could probably pick up python but i dont want to if i dont have to. would i be at any disadvantage using js? can you be brutally honest with me?
what should i chose to grind Dsa with, java or python?
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?
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.
-
Hashset : C++ has unordered_set and set for unsorted and sorted Hashset, JS ?
-
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.
-
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 :)