A collection of my solutions to LeetCode problems, organized by topic and difficulty. This repository is part of my learning journey in data structures, algorithms, and problem-solving for technical interviews.
This repo includes:
- β Clean and optimized code for each problem
- π§ͺ Solutions primarily in Python
- π Folder structure organized by problem category
- π Regular updates as I solve more problems
The goal is to make this repository a useful reference for others preparing for interviews.
LeetCode-Solutions/
βββ Arrays/
β βββ two_sum.py
β βββ best_time_to_buy_and_sell_stock.py
β βββ find_closest_number_to_zero.py
β βββ summary_ranges.py
β
βββ Strings/
β βββ roman_to_integer.py
β βββ merge_strings_alternatively.py
β βββ longest_common_prefix.py
β
βββ TwoPointers/
β βββ is_subsequence.py
β βββ palindrome_number.py
β βββ summary_ranges.py
β
βββ HashMap/
β βββ two_sum.py
β βββ roman_to_integer.py
β
βββ DynamicProgramming/
βββ best_time_to_buy_and_sell_stock.py
- Clone the repository:
git clone https://github.com/Code-ashiq/LeetCode-Solutions.git cd LeetCode-Solutions
Browse by folder or search directly for problems by name.
Each file contains:
The problem description as a comment (optional)
A clean solution
(Future): Optimized versions or explanations
#python #leetcode #dsa #interview-prep #arrays #strings #hashmap #twopointers #dynamicprogramming #stack #greedy
Add explanations to each solution
Include links to problems on LeetCode
Add complexity analysis (Time/Space)
Create index.json or table.md for easy reference
This is a personal repo, but feel free to suggest improvements or fork it for your own prep. Feedback and suggestions are welcome!
Ashiq
π‘ Focused on Python, backend development, and open-source
π« Reach me on GitHub