This is (definitely not a complete) list of interesting DSA problems I've solved.
I made this to keep track of interesting questions I solve, have all my solutions in one place for easy access, and stay consistent I guess - don't want this repo to go dead. :))
You can find questions from various sources here - I started this repository to store my solutions for Striverr's A-Z DSA Sheet (450+ questions). Soon, however, I started keeping all my solutions here, including my daily streak questions, questions from Neetcode's 150, and even Arsh Goyal's 45-Day Challenge.
- 1752 - Check if Array is Sorted and Rotated | Solution (Easy)
- 26 - Remove Duplicates from Sorted Array | Solution (Easy)
- 189 - Rotate Array | Solution (Medium)
- 283 - Move Zeroes | Solution (Easy)
- 1518 - Water Bottles | Solution (Easy)
- 2582 - Pass the Pillow | Solution (Easy)
- 1701 - Average Waiting Time | Solution (Medium)
- 268 - Missing Number | Solution (Easy)
- 1598 - Crawler Log Folder | Solution (Easy)
- 1823 - Find the Winner of the Circular Game | Solution (Medium)
- 217 - Contains Duplicate | Solution (Easy) (Part of Neetcode 150)
- 1190 - Reverse Substrings Between Each Pair of Parentheses | Solution (Medium)
- 242 - Valid Anagram | Solution (Easy) (Part of Neetcode 150)
- 1717 - Maximum Score From Removing Substrings | Solution (Medium)
- 2751 - Robot Collisions | Solution (Hard)
- 726 - Number of Atoms | Solution (Hard)
- 2196 - Create Binary Tree From Descriptions | Solution (Medium)
- 236 - Lowest Common Ancestor Of A Binary Tree | Solution (Medium)
- 2096 - Step-By-Step Directions From a Binary Tree Node to Another | Solution (Medium)
- 49 - Group Anagrams | Solution (Medium) (Part of Neetcode 150)
- 1110 - Delete Nodes And Return Forest | Solution (Medium)
- 20 - Valid Parentheses | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 28 - Find the Index of the First Occurrence in a String | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 287 - Find the Duplicate Number | Solution (Medium) (Part of Arsh Goyal's 45 Day Challenge)
- 75 - Sort Colors | Solution (Medium) (Part of Arsh Goyal's 45 Day Challenge)
- 1530 - Number of Good Leaf Nodes Pairs | Solution (Medium)
- 1380 - Lucky Numbers in a Matrix | Solution (Easy)
- 1605 - Find Valid Matrix Given Row and Column Sums | Solution (Medium)
- 2392 - Build a Matrix With Conditions | Solution (Hard)
- 347 - Top K Frequent Elements | Solution (Medium) (Part of Neetcode 150)
- 88 - Merge Sorted Array | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 169 - Majority Element | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 2418 - Sort the People | Solution (Easy)
- 1636 - Sort Array by Increasing Frequency | Solution (Easy)
- 1395 - Count Number of Teams | Solution (Medium)
- 121 - Best Time to Buy and Sell Stock | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 1 - Two Sum | Solution (Easy)
- 14 - Longest Common Prefix | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 680 - Valid Palindrome II | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 67 - Add Binary | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 168 - Excel Sheet Column Title | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 232 - Implement Queue using Stacks | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 844 - Backspace String Compare | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 225 - Implement Stack using Queues | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 496 - Next Greater Element I | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 543 - Diameter of Binary Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 226 - Invert Binary Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 100 - Same Tree | Solution (Easy)
- 572 - Subtree of Another Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 938 - Range Sum of BST | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 101 - Symmetric Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 108 - Convert Sorted Array to Binary Search Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 617 - Merge Two Binary Trees | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 104 - Maximum Depth of Binary Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
- 783 - Minimum Distance Between BST Nodes | Solution (Easy) (Same as LC - 530)
- 73 - Set Matrix Zeroes | Solution (Medium)
- 238 - Product of Array Except Self | Solution (Medium)
- 3217 - Delete Nodes From Linked List Present in Array | Solution (Mediun)
- 509 - Fibonacci Number | Solution (Easy)
- Union of Two Sorted Arrays | Solution
- Chocolate Distribution Problem | Solution (Part of Arsh Goyal's 45 Day Challenge)
- Product array puzzle | Solution (Part of Arsh Goyal's 45 Day Challenge)
- Permutations in array | Solution (Part of Arsh Goyal's 45 Day Challenge)
- Find Pair Given Difference | Solution (Part of Arsh Goyal's 45 Day Challenge)
- Ceiling in a sorted array | Solution (Part of Arsh Goyal's 45 Day Challenge)
- Deque Implementations | Solution (Part of Arsh Goyal's 45 Day Challenge)
- Evaluation of Postfix Expression | Solution (Part of Arsh Goyal's 45 Day Challenge)
- Implement two stacks in an array | Solution (Part of Arsh Goyal's 45 Day Challenge)
- Check if array is sorted | Solution
- Minimum Jumps | Solution
Some thing I'd like to do to this repository when I get time
- mention which problems belong to Striverr's A-Z DSA Sheet, just like I've mentioned (Part of Neetcode 150) or (Part of Arsh Goyal's 45-Day Challenge)
- remove questions that're from Arsh Goyal's 45 Day Challenge (i literally have a separate repo for it - here)