This repository contains my solutions to a variety of LeetCode problems, organized by patterns and difficulty levels. The goal of this repo is to document my problem-solving journey, keep track of techniques I’ve learned, and build a resource for revisiting important coding concepts.
leetcode_problems/
→ Direct solutions to problems by number/name.patterns/
→ Grouped problems based on recurring problem-solving patterns (e.g., sliding window, dynamic programming, two-pointer, graph traversal).practice_problems/
→ Extra practice and variations to strengthen problem-solving.
- Python 3 (primary language)
- Standard libraries:
collections
,heapq
,itertools
,bisect
, etc.
- Pattern-based learning → Problems grouped to identify reusable techniques.
- Readable code → Clean Pythonic implementations with comments.
- Complexity analysis → Where possible, solutions include time and space complexity.
- Scalability mindset → Focus on writing efficient code for large inputs.
- Arrays & Strings
- Hashing & Dictionaries
- Two Pointers & Sliding Window
- Binary Trees & Graphs
- Dynamic Programming
- Recursion & Backtracking
- Stacks & Queues
- Heaps / Priority Queues
- Greedy Algorithms
- Sorting & Searching
Clone the repository and explore solutions:
git clone https://github.com/dhanesh24g/leetcode.git
cd leetcode
Each file corresponds to a problem, with the filename indicating the problem title or number.
This repo reflects my coding interview preparation and algorithm practice journey. It showcases:
- My approach to problem-solving.
- Clean, reusable code structures.
- Ability to think in patterns — critical for interviews and system design discussions.
- Add unit tests for selected problems.
- Provide explanations / markdown notes alongside solutions for tougher problems.
- Add C++/Java variants for some problems.
If you’re also preparing for interviews or exploring algorithms, feel free to connect!
- LinkedIn: Dhanesh Gujrathi
- GitHub: dhanesh24g
💡 This repo is part of my continuous journey toward becoming a stronger AI/ML & Staff Software Engineer, combining algorithm practice with projects in GenAI, RAG, and AIOps.