Tech IndustrySep 18, 2018
CadenceAndIdid

Leetcode in JavaScript

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 course in that as well. I am also doing a course on MySQL. JavaScript is new to me. The bootcamp did cover JavaScript but I think it was not in detail. I recently started doing leetcode using JavaScript. I picked up a medium question and struggled through it. I had some test cases fail so there were multiple submissions. Do you run the leetcode solution on a debugger before you submit in leetcode ? I can't find a good course on JavaScript alone . Any recommendations ? Tia

Add a comment
VMware Hijku Sep 18, 2018

Udemy has some good JavaScript courses

Cadence AndIdid OP Sep 18, 2018

Which one do u recommend ?

Microsoft VlCX25 Sep 18, 2018

Educative.io has some good stuff. Just coding up JS might not be enough; it’s fundamentally quite a different language than C/C++/Java/C#, but constructs like arrays, hashsets, dictionaries, stacks/queues still exist. Also, why FE?

Cadence AndIdid OP Sep 18, 2018

More jobs.

Cadence AndIdid OP Sep 18, 2018

What else do I need to do ? Any pointers ?

New
Check101 Sep 18, 2018

You can maybe try switching to java. Most of the leetcode questions would need u to use java.collections library for optimal solution.

Cadence AndIdid OP Sep 18, 2018

Thanks.. I will brush up my java

Cisco Kool aid Sep 18, 2018

Inbuilt leetcode editor also might have JS option. You can debug from there

Cadence AndIdid OP Sep 18, 2018

The leetcode editor does have JS option.

Cisco Kool aid Sep 18, 2018

I mean not just editor, there is launchpad where people can debug code

Mist Systems tXTR22 Sep 18, 2018

Browser devtools has snippets feature where you can run and debug your JavaScript

Cadence AndIdid OP Sep 18, 2018

Yes. I have been using Google chrome.

New
Apollon Sep 18, 2018

I would recommend not using JavaScript for Leetcode. First is performance. Second is it’s not a language designed for algorithms/data structures. There’s no built in priority queues for example. When it comes to harder questions it just gonna cost you more time trying to work with recreating those data structs in js.

New
xoxoyo Sep 18, 2018

JavaScript is fine for algorithms. It’s a language for frontend engineers. Nothing you can’t do in JavaScript that you can do in other languages. I just started a frontend interview Facebook study group so dm me. I would not recommend a boot camp because you don’t learn algorithms there. Most of the interviews these days are based on leetcode

New
yFBD25 Jan 1, 2022

Can i dm

Visa o||o Sep 18, 2018

Python is best for Leetcoding, easily. Very simple syntax. Great in-built Data Structures. Companies that have Leetcode-style interviews are generally not picky about language used.

Visa o||o Sep 18, 2018

Also, try out JavaScript algorithmic challenges on FreeCodeCamp