Welcome to the LEET-CODE repository! This collection contains high-quality, hand-picked Data Structures and Algorithms (DSA) problems from LeetCode and other competitive programming platforms. It's designed to help both beginners and intermediate-level coders systematically master DSA concepts.
π Whether you're preparing for coding interviews or brushing up on core DSA topics, this repo is for you.
- β Curated DSA problems with direct links to original questions.
- β Solutions in C, C++, Python, JavaScript, and Java.
- β Easy navigation by topic and difficulty.
- β Contributions from the open-source community.
- β Learning path tailored for beginners.
We welcome contributions from everyone!
π How to contribute:
- Add problems categorized by topic (e.g., Arrays, Trees, Graphs).
- Support any of the common languages:
C
,C++
,Python
,Java
, orJavaScript
or any language you know - Include a comment with the problem link in your code (can be from LeetCode, HackerRank, Codeforces, GFG, etc.).
- Stick to clean, readable code and proper formatting.
To make your learning structured and progressive, follow this recommended order:
Arrays & Hashing β Two Pointers
Two Pointers β Binary Search
Binary Search β Sliding Window
Sliding Window β Trees
Trees β Tries
Tries β Heap / Priority Queue
Heap / Priority Queue β Intervals
Heap / Priority Queue β Greedy
Heap / Priority Queue β Advanced Graphs
Arrays & Hashing β Stack
Stack β Linked List
Arrays & Hashing β Backtracking
Backtracking β Graphs
Graphs β 2-D DP
2-D DP β Math & Geometry
Backtracking β 1-D DP
1-D DP β Bit Manipulation
π Start with Arrays and Hashing, then follow the arrows to gradually unlock more complex topics.
Each folder contains problems with solutions in various languages, well-commented, and with a link to the source.
Feel free to fork, clone, and raise a pull request!
Join the movement to build a free, open-source repository of top DSA questions for all coders.
If this project helped you in your DSA prep or interviews, consider giving it a βοΈ. It helps others discover the repo too!
For any queries or suggestions, reach out via GitHub issues or discussions.
Happy coding! π»π₯
Let's crack that next coding round together πͺ
Let me know if you'd like a CONTRIBUTING.md
or folder reorganization script too.