The purpose of this repo is to have a nice place where I can work on and share solutions to LeetCode problems.
LeetCode has 'taken over the world' of coding problems, and because of that employers place an inordinante amount of importance on the ability of developers to solve these coding puzzles. So, since that's a thing now, I'm going to solve a ton of them and share here.
I feel like LeetCode is not a terribly useful measure of a developer's ability. But since it seems industry thinkis its important, and its a fun hobby anyway, I am going to work through a bunch of them.
I'm a fan of JavaScript in general, so a lot of solutions will be written in JavaScript. Where the solution is in JavaScript I'm using Mocha for my local testing so I can do some test cases before I submit then to LeetCode. I also use WebStorm, because its awesome. I've provided the /.idea/ files in this repo so anyone else who uses WebStorm can just clone and go.
I have another project with Leet Code solutions in Java, check it out here: https://github.com/brianteeter/Leet-Code-Solutions-Java
- Make sure you have Node 10+ installed
- Clone this project
- Run:
npm i
- Run:
mocha
to run tests
This is a project in Webstorm. The /.idea files are checked in if you want to run/use Webstorm as well.
LeetCode is neat and their interface is decent, but I like using a real IDE to write software. So I do, then I copy it up to LeetCode and submit.
Also, maybe if I make this public someone can benefit from sharing these solutions.