Skip to content

adityapathakk/DSA-with-pathak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathak's DSA Bank

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.

Leetcode:

  1. 1752 - Check if Array is Sorted and Rotated | Solution (Easy)
  2. 26 - Remove Duplicates from Sorted Array | Solution (Easy)
  3. 189 - Rotate Array | Solution (Medium)
  4. 283 - Move Zeroes | Solution (Easy)
  5. 1518 - Water Bottles | Solution (Easy)
  6. 2582 - Pass the Pillow | Solution (Easy)
  7. 1701 - Average Waiting Time | Solution (Medium)
  8. 268 - Missing Number | Solution (Easy)
  9. 1598 - Crawler Log Folder | Solution (Easy)
  10. 1823 - Find the Winner of the Circular Game | Solution (Medium)
  11. 217 - Contains Duplicate | Solution (Easy) (Part of Neetcode 150)
  12. 1190 - Reverse Substrings Between Each Pair of Parentheses | Solution (Medium)
  13. 242 - Valid Anagram | Solution (Easy) (Part of Neetcode 150)
  14. 1717 - Maximum Score From Removing Substrings | Solution (Medium)
  15. 2751 - Robot Collisions | Solution (Hard)
  16. 726 - Number of Atoms | Solution (Hard)
  17. 2196 - Create Binary Tree From Descriptions | Solution (Medium)
  18. 236 - Lowest Common Ancestor Of A Binary Tree | Solution (Medium)
  19. 2096 - Step-By-Step Directions From a Binary Tree Node to Another | Solution (Medium)
  20. 49 - Group Anagrams | Solution (Medium) (Part of Neetcode 150)
  21. 1110 - Delete Nodes And Return Forest | Solution (Medium)
  22. 20 - Valid Parentheses | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  23. 28 - Find the Index of the First Occurrence in a String | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  24. 287 - Find the Duplicate Number | Solution (Medium) (Part of Arsh Goyal's 45 Day Challenge)
  25. 75 - Sort Colors | Solution (Medium) (Part of Arsh Goyal's 45 Day Challenge)
  26. 1530 - Number of Good Leaf Nodes Pairs | Solution (Medium)
  27. 1380 - Lucky Numbers in a Matrix | Solution (Easy)
  28. 1605 - Find Valid Matrix Given Row and Column Sums | Solution (Medium)
  29. 2392 - Build a Matrix With Conditions | Solution (Hard)
  30. 347 - Top K Frequent Elements | Solution (Medium) (Part of Neetcode 150)
  31. 88 - Merge Sorted Array | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  32. 169 - Majority Element | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  33. 2418 - Sort the People | Solution (Easy)
  34. 1636 - Sort Array by Increasing Frequency | Solution (Easy)
  35. 1395 - Count Number of Teams | Solution (Medium)
  36. 121 - Best Time to Buy and Sell Stock | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  37. 1 - Two Sum | Solution (Easy)
  38. 14 - Longest Common Prefix | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  39. 680 - Valid Palindrome II | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  40. 67 - Add Binary | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  41. 168 - Excel Sheet Column Title | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  42. 232 - Implement Queue using Stacks | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  43. 844 - Backspace String Compare | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  44. 225 - Implement Stack using Queues | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  45. 496 - Next Greater Element I | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  46. 543 - Diameter of Binary Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  47. 226 - Invert Binary Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  48. 100 - Same Tree | Solution (Easy)
  49. 572 - Subtree of Another Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  50. 938 - Range Sum of BST | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  51. 101 - Symmetric Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  52. 108 - Convert Sorted Array to Binary Search Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  53. 617 - Merge Two Binary Trees | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  54. 104 - Maximum Depth of Binary Tree | Solution (Easy) (Part of Arsh Goyal's 45 Day Challenge)
  55. 783 - Minimum Distance Between BST Nodes | Solution (Easy) (Same as LC - 530)
  56. 73 - Set Matrix Zeroes | Solution (Medium)
  57. 238 - Product of Array Except Self | Solution (Medium)
  58. 3217 - Delete Nodes From Linked List Present in Array | Solution (Mediun)
  59. 509 - Fibonacci Number | Solution (Easy)

Codechef:

  1. Volume Comparison | Solution
  2. Gun Master | Solution
  3. c

GeeksForGeeks:

  1. Union of Two Sorted Arrays | Solution
  2. Chocolate Distribution Problem | Solution (Part of Arsh Goyal's 45 Day Challenge)
  3. Product array puzzle | Solution (Part of Arsh Goyal's 45 Day Challenge)
  4. Permutations in array | Solution (Part of Arsh Goyal's 45 Day Challenge)
  5. Find Pair Given Difference | Solution (Part of Arsh Goyal's 45 Day Challenge)
  6. Ceiling in a sorted array | Solution (Part of Arsh Goyal's 45 Day Challenge)
  7. Deque Implementations | Solution (Part of Arsh Goyal's 45 Day Challenge)
  8. Evaluation of Postfix Expression | Solution (Part of Arsh Goyal's 45 Day Challenge)
  9. Implement two stacks in an array | Solution (Part of Arsh Goyal's 45 Day Challenge)
  10. Check if array is sorted | Solution
  11. 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)

About

trying to be consistent with DSA and keep all my DSA solutions in one place for easy reference.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages