Skip to content

luisthedragon/neetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEETCODE SOLUTIONS

My solutions to Leetcode problems following the neetcode.io suggested path

Getting started

The following steps will allow you to run the solutions locally

Create a virtual environment

    python -m venv .venv
    source .venv/bin/activate

It is recommend to use the python-leetcode-runner library

    pip install -r requirements.txt

To run a test use pyleet

    cd {{folder}}
    pyleet filename.py

For example:

    cd "Arrays & Hashing"
    pyleet 1_contains_duplicate.py

Example output:

    Test 1 - ([1, 2, 3, 1])...................................................................................................................................PASSED
    Test 2 - ([1, 2, 3, 4])...................................................................................................................................PASSED
    Test 3 - ([1, 1, 1, 3, 3, 4, 3, 2, 4, 2]).................................................................................................................PASSED
    All cases passed!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages