Skip to content

A curated collection of LeetCode solutions and Data Structure implementations in Python, focused on algorithmic patterns and complexity optimization.

Notifications You must be signed in to change notification settings

bazingiu/leetcode-mastery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧩 LeetCode Mastery: Algorithms & Data Structures

Python LeetCode User

Welcome to my LeetCode solutions repository. This space serves as a technical diary where I document efficient problem-solving strategies, optimized patterns, and rigorous complexity analysis.


πŸ“Š Roadmap Progress

Category Completed Primary Focus
Arrays & Hashing 4 Frequency maps, Prefix sums
Two Pointers 1 Convergence, Multi-pointer logic
Dynamic Programming 3 Memoization & Tabulation
Bit Manipulation 5 Bitmasking & Binary properties
Backtracking 1 State Space Trees & Pruning

πŸ› οΈ Repository Structure

🧠 Pattern-Based Solutions

The Pattern/ directory contains solutions organized by algorithmic strategyβ€”the most effective way to prepare for technical interviews.

Category Problem Difficulty Complexity
Arrays Two Sum (#1) 🟒 Easy $O(n)$
DP Climbing Stairs (#70) 🟒 Easy $O(n)$
Sliding Window Longest Substring (#3) 🟑 Medium $O(n)$
Two Pointers Container With Most Water (#11) 🟑 Medium $O(n)$
Greedy Best Time to Buy Stock (#121) 🟒 Easy $O(n)$

πŸ—οΈ Data Structures Implementation

In DataStructure/, I dive deep into "under the hood" implementations of core data structures.

  • Bit Manipulation: Advanced operations and binary property analysis.
  • Discrete Math: Combinations and permutations (essential for Backtracking problems).
  • Tries: Prefix Tree implementations for efficient string searching and autocomplete logic.

🐍 Python Syntax & Tricks

The Python_syntax/ folder serves as a quick-reference for language-specific features (e.g., slicing, list comprehensions, itertools) that enable writing clean, "Pythonic," and high-performance code during timed challenges.


πŸš€ How to Run

Each solution is self-contained. You can execute them locally to verify the logic:

# Example: Running the Two Sum solution
python Pattern/Arrays_Hashing/two_sum.py

About

A curated collection of LeetCode solutions and Data Structure implementations in Python, focused on algorithmic patterns and complexity optimization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages