Various Data Structures and Algorithm Solutions in Python (3.x). Succinct Python one-liners are avoided in most solutions to prevent obscuring the function and logic of the algorithms / data-structures.
- Arrays
- Binary Search
- Binary Tree
- Circularly Linked Lists
- Doubly Linked Lists
- Integers
- Math Problems
- Matrices
- N-ary Tree
- Queues
- Singly Linked Lists
- Stacks
- Strings
- Trie
Each directory's problems and approaches are documented as doc comments directly in the corresponding .py files.
Project supports local development and VSCode Dev container development
Note: Project uses uv and just to
manage project configuration and commands
- Install tools and sync the project -
just setup(runsbrew bundle install, thenjust sync)
- Install Docker
- Install VSCode
- Open project folder in VS Code
- Install recommended extensions
- Reopen in container using Remote Development Container menu
just setup- install Homebrew tools from theBrewfileand sync the projectjust sync- sync project dependencies (all groups)just lint- type check, lint, format, spell check (typos), and lint workflows (actionlint), YAML (yamllint), and JSON (jq) (applies fixes)just ci-lint- run the same checks without modifying files, except spell check (used in CI)just spellcheck- check spelling with typosjust test- run unit testsjust coverage- run unit tests with coverage (fails under 98%)just audit- check dependencies for known vulnerabilities with pip-auditjust markdownlint- lint Markdown files with markdownlint-cli2just prek- run pre-commit hooks via prekjust betterleaks- scan staged changes for secrets with betterleaksjust zizmor- audit GitHub Actions workflows for security issuesjust update-template- pull in the latest changes from the Copier templateuv add {package}- install a dependency
| Workflow | Runs on | Purpose |
|---|---|---|
python.yml |
push / PR to main |
lint, spell check, unit tests, markdownlint |
security.yml |
push to main, all PRs |
zizmor, betterleaks, pip-audit dependency audit |
- GitHub Actions are pinned to full commit SHAs, with the version in a trailing comment
- Dependabot (
.github/dependabot.yml) checks weekly for updates to GitHub Actions, Python dependencies, the dev container image, and dev container features. New releases wait 7 days before an update is proposed. Dependabot PRs get thedependencieslabel