Git Product home page Git Product logo

imranmr / neetcode-150 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from th-blitz/neetcode-150

0.0 0.0 0.0 1.11 MB

My NeetCode 150 Practice Problems. Neetcode 150 @ https://neetcode.io/ is a list of 150 LeetCode problems designed to cover all possible patterns & topics in data structures. Mainly implementing in C, C++, Rust , Python & Java.

License: MIT License

Shell 0.32% JavaScript 1.43% C++ 16.20% Python 15.63% C 22.28% Java 26.55% Rust 16.29% Batchfile 0.44% Dockerfile 0.86%

neetcode-150's Introduction

NeetCode-150

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/

Docker Image setup

  • 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.1 and OpenJDK 18.0.2.
  • Prerequisites - Docker for desktop/mac/linux.

Instructions to setup the docker image.

1. Make sure to run all the commands from the project root directory.

cd /home/projects/NeetCode-150

2. Build the docker image 'leetcode' from the docker file leetcode.Dockerfile.

docker build -t leetcode -f Envs/leetcode.Dockerfile Envs

Building the image may take 5 to 15 mins. This is done only for the first time.

3. Run a container called leetcode from the built image.

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 leetcode

For linux terminal

docker run --rm -d -t --name=leetcode -v $(pwd):/home/mount leetcode

4. Open a interactive terminal from the running leetcode container.

docker exec -ti leetcode bash

5. Run any files from within the shell.

ls
cd Arrays
cd two_sum
node two_sum.js

6. To stop and remove the running container.

docker stop leetcode

7. To re-run the leetcode image.

follow the same steps from step 3 above.

neetcode-150's People

Contributors

th-blitz avatar antopraju avatar wqueree avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.