Skip to content

amolgawai/data_struct_and_algo

Repository files navigation

Data Structures and Algorithms practice

Practicing data structure and algorithms, mostly in python for now

Code style: black CodeFactor pytest

Environment setup

Recommended - using poetry and pyenv

  • Install poetry
  • Setup python virtual environment using pyenv for python 3.7.9 (refer pyproject.toml for exact version)
  • Activate the virtual environment
  • run poetry install

Alternate - use your favorite virtual environment

  • use the requirements.txt which was generated from poetry in your favorite environment
  • use the requirements-dev.txt for adding testing and other development tools

Tests and code coverage

  • run python -m pytest at root tor un all tests
  • run pytest --cov at root to run all tests and get coverage
  • run coverage run -m pyest at the root of project to generate coverage
  • run coverage report to see coverage
  • run coverage html to generate a detailed html report that shows line coverage
  • run ptw --runner "pytest --picked --testmon" to watch for changes and run respective tests

Learning Resources

About

Practicing data structure and algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages