Skip to content

mohsinkhan85090/DSA-Solutions

Repository files navigation

📘 Data Structures & Algorithms in Java

Welcome to my DSA Journey — a curated notebook of hand-written, optimized solutions to the most popular problems on LeetCode, solved using Java.


🚀 DSA Dashboard

Category Status
🧱 Arrays 45
🔤 Strings 21
🔗 Linked List 13
🧵 Stack & Queue 15
🌳 Trees 9
🌐 Graphs Soon
🔑 HashMap 8
➕ Prefix Sum 7
🪟 Sliding Window 3
🧭 Two Pointer 11
⚡ Greedy 3
🧩 DP Soon

🧱 Array (45)

  1. Two Sum
  2. Two Sum II
  3. Remove Duplicates
  4. Remove Element
  5. Squares of a Sorted Array
  6. Container With Most Water
  7. Find Duplicate
  8. Find Peak Element
  9. Search Insert Position
  10. Maximum Subarray
  11. Maximum Product Subarray
  12. Binary Search
  13. Find First & Last Position
  14. Search in Rotated Array
  15. Kth Largest Element
  16. Find Pivot Index
  17. Product of Array Except Self
  18. Find Middle Index
  19. Find Highest Altitude
  20. Range Sum Query
  21. Contains Duplicate
  22. Majority Element
  23. Unique Number of Occurrences
  24. Best Time to Buy and Sell Stock
  25. Best Time to Buy and Sell Stock II
  26. Check if Array Sorted & Rotated
  27. Concatenation of Array
  28. Intersection of Two Arrays
  29. Intersection of Two Arrays II
  30. Longest Consecutive Sequence
  31. Max 69 Number
  32. Maximum Average Subarray
  33. Minimum Size Subarray Sum
  34. Missing Number
  35. Palindrome Number
  36. Running Sum
  37. Single Number
  38. Subarray Sum Equals K
  39. Find Duplicate Number
  40. Rotate Array
  41. Move Zeros
  42. Maximum Product of Three Numbers
  43. Trapping Rain Water
  44. (Add more)
  45. (Add more)

🔤 String (21)

  1. Reverse String
  2. Reverse String II
  3. Reverse Only Letters
  4. Reverse Vowels
  5. Roman to Integer
  6. Valid Parentheses
  7. Valid Palindrome
  8. Valid Anagram
  9. First Occurrence in a String
  10. Is Subsequence
  11. Word Arrays Equivalent
  12. Longest Substring Without Repeating Characters
  13. Longest Common Prefix
  14. First Unique Character
  15. Find the Difference
  16. To Lower Case
  17. FizzBuzz
  18. Words Containing Character
  19. Rotate String
  20. Group Anagrams
  21. Valid Word

🔗 Linked List (13)

  1. Reverse LL (Iterative)
  2. Reverse LL (Recursive)
  3. Middle of Linked List
  4. Merge Two Sorted LL (Recursive)
  5. Merge Two Sorted LL (Iterative)
  6. Delete Node
  7. Intersection of Two Linked Lists
  8. Delete Middle Node
  9. Remove Duplicates (Sorted)
  10. Remove Nth Node from End
  11. Linked List Cycle
  12. Palindrome Linked List
  13. Add Two Numbers

🧵 Stack & Queue (15)

  1. Evaluate Reverse Polish Notation
  2. Remove All Adjacent Duplicates In String
  3. Baseball Game
  4. Clear Digits
  5. Valid Parentheses
  6. Next Greater ElementI
  7. Implement Queue Using Stacks
  8. Implement Stack Using Queues
  9. Daily Temperatures
  10. Remove Duplicate Letters
  11. Longest Valid Parentheses
  12. Largest Rectangle in Histogram
  13. Make the String Great
  14. Time Needed to Buy Tickets
  15. Number of Students Unable to Eat Lunch

🌳 Tree (9)

  1. Same Tree
  2. Preorder Traversal
  3. Postorder Traversal
  4. Level Order
  5. Convert Sorted Array to BST
  6. Convert Sorted List to BST
  7. Inorder Traversal
  8. Path Sum
  9. Level Order II

✨ Why This Repo Exists

To track progress, revise patterns, and build a strong foundation in DSA for FAANG-level interviews.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages