Skip to content

Repository containing LeetCode solutions in Python, focusing on algorithms, data structures, and coding interview preparation.

Notifications You must be signed in to change notification settings

ahmlvs/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

  1. create env
python3 -m venv env
source env/bin/activate
  1. install requirements
pip install -r requirements.txt
  1. to test solution in folder "Some Problem"

with pytest

cd Some\ Problem
pytest -v
  1. to test coverage and get html report
cd Some\ Problem
coverage run -m pytest
coverage html

and then open index.html in htmlcov. Or use report command

coverage report -m

to test branches (if, else, try, except etc.) use command

coverage run --branch -m pytest

About

Repository containing LeetCode solutions in Python, focusing on algorithms, data structures, and coding interview preparation.

Topics

Resources

Stars

Watchers

Forks

Languages