Summer-PEP-Questions

Repo Link

Array and Matrix Questions 🧮

  1. LeetCode 74. Search a 2D Matrix
  2. LeetCode 33. Search in Rotated Sorted Array
  3. LeetCode 2643. Row With Maximum Ones
  4. LeetCode 1283. Find the Smallest Divisor Given a Threshold
  5. GFG Missing number in array

Bit Manipulation ⚙️

  1. LeetCode 136. Single Number
  2. LeetCode 137. Single Number II
  3. LeetCode 137. Single Number III
  4. LeetCode 338. Counting Bits
  5. LeetCode 191. Number of 1 Bits
  6. GFG Check whether K-th bit is set or not
  7. GFG Get the position of rightmost unset bit
  8. GFG Find first set bit
  9. GFG Set the rightmost unset bit
  10. GFG Xoring and Clearing
  11. GFG K-th Bit is Set or Not
  12. GFG Count Total Setbits

Stack Questions 📚

  1. LeetCode Largest Rectangle in Histogram
  2. LeetCode Valid Parentheses
  3. LeetCode Implement Min Stack
  4. GFG Implement Stack Using Array
  5. GFG Implement 2 Stacks in an Array
  6. GFG Parenthesis Checker
  7. GFG Next Greater Element

Linked List Questions 🔗

  1. LeetCode Middle of the Linked List
  2. LeetCode Add Two Numbers Linked list
  3. LeetCode Reverse Linked List
  4. LeetCode Swapping Nodes in a Linked List
  5. LeetCode Palindrome Linked List
  6. LeetCode Intersection of two Linked Lists
  7. LeetCode Remove Nth Node from End of Linked List
  8. GFG Search in Linked List
  9. GFG Add 1 to a number represented as linked list

Binary Search Tree (BST) Questions 🌳

  1. LeetCode Validate a BST
  2. LeetCode Max Depth of a Binary Tree
  3. LeetCode Level Order Traversal
  4. LeetCode Zig-Zag Traversal
  5. LeetCode Insert a node into BST
  6. LeetCode Lowest Common Ancestor in a BST
  7. GFG Level Order of binary tree
  8. GFG Top view of binary tree
  9. GFG Bottom view of binary tree
  10. Delete Node in a BST
  11. Balance a Binary Search Tree
  12. Lowest common ancestor of a binary tree

Tree Traversal 🌲

  1. LeetCode Preorder Traversal
  2. LeetCode Inorder Traversal
  3. LeetCode Postorder Traversal

Mathematics and Logic 🧠

  1. LeetCode 204. Count Primes
  2. LeetCode Greatest Common Divisor
  3. GFG/LeetCode Sieve of Eratosthenes
  4. GFG Countprime in range

Dynamic Programming 📝

  1. LeetCode Unique Paths
  2. LeetCode Unique Paths-2
  3. LeetCode Climb Stairs
  4. 322. Coin Change
  5. 120. Triangle
  6. 64. Minimum Path Sum
  7. house robber I
  8. house robber II
  9. Coin Change I
  10. Coin Change II
  11. Minimun Cost Homecoming of Robot in a grid
  12. Edit Distance
  13. Best Time to Buy and Sell Stock II
  14. Best Time to Buy and Sell Stock III
  15. Best Time to Buy and Sell Stock IV
  16. 714. Best Time to Buy and Sell Stock with Transaction Fee
  17. 309. Best Time to Buy and Sell Stock with Cooldown

Recursion and Backtracking 🔄

  1. LeetCode Print Maze Paths
  2. LeetCode Print All Subsequences

Sorting Algorithms 🌀

  1. GFG Merge sort
  2. GFG Quick sort
  3. GFG Selection sort

Miscellaneous 🌐

  1. LeetCode Maximal Rectangle
  2. GFG Aggressive Cows
  3. Largest Subarray with 0 Sum
  4. Kth Smallest Element
  5. Top K Frequent Elements
  6. Find K Closest Elements
  7. Min Cost To connect ropes

Notes on Time and Space Complexity ⏲️