Skip to content

onixlas/algorithmic-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

55 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Algorithmic Patterns

This repository contains curated solutions to a subset of common algorithmic problems, primarily based on the LeetCode 75 study plan.

The purpose of this repository is to maintain algorithmic fluency and document common problem-solving patterns that frequently appear in technical interviews and real-world engineering tasks.

This is not intended as a competitive programming showcase, but rather as a structured reference for fundamental data structures and algorithms.


πŸ“Œ Scope

The problems cover a range of foundational algorithmic topics, including:

  • Arrays and strings
  • Two pointers
  • Sliding window
  • Prefix sums
  • Hash-based data structures
  • Stack and queue
  • Basic graph and traversal patterns

Each solution focuses on:

  • clarity and readability
  • explicit time and space complexity
  • well-known algorithmic patterns rather than clever tricks

πŸ—‚ Repository Structure

.
β”œβ”€β”€ pyproject.toml        # Project configuration
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ array_string/     # Array and string manipulation patterns
β”‚   β”œβ”€β”€ hashmap_set/      # Hash map and set based problems
β”‚   β”œβ”€β”€ prefix_sum/       # Prefix sum techniques
β”‚   β”œβ”€β”€ sliding_window/   # Sliding window pattern
β”‚   β”œβ”€β”€ two_pointers/     # Two pointers pattern
β”‚   β”œβ”€β”€ stack/            # Stack-based problems
β”‚   └── queue/            # Queue-based problems
β”‚
β”‚   # Each submodule follows a consistent structure:
β”‚   # <problem_name>/
β”‚   # β”œβ”€β”€ __init__.py
β”‚   # └── solution.py
β”‚
└── tests/                # Tests for all problems

🧠 Design principles

  • Clean, readable Python code
  • Emphasis on algorithmic patterns
  • Avoidance of overly compact or non-obvious solutions
  • Explicit handling of edge cases

πŸ›  Language

  • Python

πŸ”Ž Notes

This repository complements my primary work in machine learning and LLM-based systems, where a solid understanding of algorithms and data structures remains essential for building reliable and scalable production systems.

Contributors 2

  •  
  •  

Languages