Welcome to the LeetCode-GfG repository! 🚀
A neatly organized collection of coding solutions for problems from LeetCode and GeeksforGeeks—solved, tested, and time-stamped for future reference.
- ✅ 300+ LeetCode Problems (Easy to Hard)
- ✅ GfG Practice Questions
- ✅ Optimized code with runtime & memory stats
- ✅ Regular updates via LeetHub
- Arrays & Strings
- Linked Lists
- Trees & Graphs
- DP & Backtracking
- SQL & Database Queries
- And more...
All solutions are auto-pushed using LeetHub, so you'll always find the latest versions here.
This repo is actively maintained. More problems coming soon!
👩💻 By Mansiiiiiiiiiiiiiiiii
🗂️ Last updated: Automatically via LeetHub
| 0011-container-with-most-water |
| 0134-gas-station |
| 0410-split-array-largest-sum |
| 0169-majority-element |
| 1034-subarrays-with-k-different-integers |
| 1512-number-of-good-pairs |
| 0136-single-number |
| 0222-count-complete-tree-nodes |
| 0268-missing-number |
| 0287-find-the-duplicate-number |
| 1435-xor-queries-of-a-subarray |
| 0203-remove-linked-list-elements |
| 0206-reverse-linked-list |
| 0234-palindrome-linked-list |
| 0509-fibonacci-number |
| 1013-fibonacci-number |
| 0146-lru-cache |
| 0155-min-stack |
| 0901-online-stock-span |
| 0496-next-greater-element-i |
| 0901-online-stock-span |
| 1305-number-of-visible-people-in-a-queue |
| 2195-time-needed-to-buy-tickets |
| 0054-spiral-matrix |
| 0867-transpose-matrix |
| 2021-remove-all-occurrences-of-a-substring |
| 2195-time-needed-to-buy-tickets |
| 0146-lru-cache |
| 0108-convert-sorted-array-to-binary-search-tree |
| 1427-all-elements-in-two-binary-search-trees |
| 0547-number-of-provinces |
| 0547-number-of-provinces |
| 0744-network-delay-time |
| 0108-convert-sorted-array-to-binary-search-tree |
| 0169-majority-element |
| 0240-search-a-2d-matrix-ii |
| 0744-network-delay-time |
| 0744-network-delay-time |
| 0048-rotate-image |
| 0054-spiral-matrix |
| 0073-set-matrix-zeroes |
| 0074-search-a-2d-matrix |
| 0240-search-a-2d-matrix-ii |
| 0867-transpose-matrix |
| 1171-shortest-path-in-binary-matrix |
| 0070-climbing-stairs |
| 0509-fibonacci-number |
| 1013-fibonacci-number |
| 0204-count-primes |
| 0204-count-primes |
| 2481-strictly-palindromic-number |
| 0176-second-highest-salary |
| 0177-nth-highest-salary |
| 0181-employees-earning-more-than-their-managers |
| 0182-duplicate-emails |
| 0183-customers-who-never-order |
| 0184-department-highest-salary |
| 0901-online-stock-span |
| 0062-unique-paths |