My NeetCode 150 Practice Problems.
Neetcode 150 is a curated list of 150 LeetCode problems designed to cover all possible patterns & topics in data structures.
Mainly practicing in C , C++ , Rust , Python , JAVA & JavaScript.
The list was created by Neetcode-gh - https://github.com/neetcode-gh, originally based on another list called blind 75 with 75 problems.
List @ https://neetcode.io/
- Setup the docker image
leetcode.Dockerfile(2.63 GB) at ./NeetCode/Envs/ . - The image used here is
Ubuntu:kinetic. - The Image includes;
Python 3.8.13,node v16.15.1,rust 1.62.1andOpenJDK 18.0.2.- Prerequisites -
Dockerfor desktop/mac/linux.
cd /home/projects/NeetCode-150docker build -t leetcode -f Envs/leetcode.Dockerfile EnvsBuilding the image may take 5 to 15 mins. This is done only for the first time.
For windows cmd
docker run --rm -d -t --name=leetcode -v %cd%:/home/mount leetcode For Mac terminal OR windows powershell
docker run --rm -d -t --name=leetcode -v ${PWD}:/home/mount leetcodeFor linux terminal
docker run --rm -d -t --name=leetcode -v $(pwd):/home/mount leetcodedocker exec -ti leetcode bashls
cd Arrays
cd two_sum
node two_sum.jsdocker stop leetcodefollow the same steps from step 3 above.