Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 996 Bytes

File metadata and controls

52 lines (34 loc) · 996 Bytes

Python Solutions

codecov Python

Python implementations of data structures, algorithms, and solutions to various coding challenges.

Getting Started

Prerequisites

  • Python 3.11 or higher
  • Poetry (for dependency management) or pip

Installation

# Using Poetry (recommended)
cd python/
poetry install

# Or using pip
cd python/
pip install .

Running Solutions

All solutions use only the Python standard library (dependencies are for testing only):

python {folder}/{challenge}/{challenge}.py

# Examples:
python dsa/binary_search.py
python hacker_rank/30_days_challenge/day_1/data_types.py
python project_euler/problem_1.py

Running Tests

# Run all tests
pytest

# Run with coverage
pytest --cov

# Watch mode for development
pytest-watch