Resources
⭐⭐ Most Important 145 LeetCode Interview Questions ⭐⭐ ⭐⭐141 aggregated by engg FANG Leetcode PATTERNED Interview Questions organised by pattern, difficulty and company List of questions sorted by common patterns. - LeetCode Discuss Technical Interview Topics
Reading
Map Problems to known Problem Pattern Strategy for coding interviewsImportant and Useful links from all over the LeetCode - LeetCode DiscussJava Syntax for DSA.pdf - Google Drive
🏆Contests
6122. Minimum Deletions to Make Array Divisible 6121. Query Kth Smallest Trimmed Number
➕ Arithmetic
- 50. Pow(x, n)
- 372. Super Pow
- 1509. Minimum Difference Between Largest and Smallest Value in Three Moves
- 1295. Find Numbers with Even Number of Digits
- Numbers divisible by a or b in range n
🛤️ Arrays
- 1. Two Sum
- 26. Remove Duplicates from Sorted Array
- 80. Remove Duplicates from Sorted Array II
- 27. Remove Element
- 35. Search Insert Position
- 41. First Missing Positive
- 448. Find All Numbers Disappeared in an Array
- 287. Find the Duplicate Number
- 442. Find All Duplicates in an Array
- 268. Missing Number
- 765. Couples Holding Hands
- 645. Set Mismatch
- 1980. Find Unique Binary String
- 215. Kth Largest Element in an Array
- 378. Kth Smallest Element in a Sorted Matrix
- First Repeating Element
- Smallest sum contiguous subarray
- 53. Maximum Subarray
- 1749. Maximum Absolute Sum of Any Subarray
- 1574. Shortest Subarray Removed to Make Array Sorted
- GFG Length of smallest subarray removed
- 278. First Bad Version
- 2053. Kth Distinct String in an Array
- 523. Continuous Subarray Sum
- 560. Subarray Sum Equals K
- 713. Subarray Product Less Than K
- 209. Minimum Size Subarray Sum
- 23. Merge k Sorted Lists
- GFG Kth Largest Subarray
- GFG Merge k Sorted Arrays
- 2294. Partition Array Such That Maximum Difference Is K
- 632. Smallest Range Covering Elements from K Lists
- 295. Find Median from Data Stream
- 744. Find Smallest Letter Greater Than Target
- 1920. Build Array from Permutation
- 1470. Shuffle the Array
- 1365. How Many Numbers Are Smaller Than the Current Number
- 1512. Number of Good Pairs
- 1389. Create Target Array in the Given Order
- 1832. Check if the Sentence Is Pangram
- 1773. Count Items Matching a Rule
- 42 Trapping Rain Water
- 989. Add to Array-Form of Integer
- 1854. Maximum Population Year
- 1304. Find N Unique Integers Sum up to Zero
- 1380. Lucky Numbers in a Matrix
- 566. Reshape the Matrix
- 66. Plus One
- GFG Longest Subarray having Sum K
- 1217. Minimum Cost to Move Chips to The Same Position
- 73. Set Matrix Zeroes
- 238. Product of Array Except Self
- 6096. Successful Pairs of Spells and Potions
- 55. Jump Game
- GFG Three Way Paritioning
- 75. Sort Colors
- 86. Partition List
- 198. House Robber
- GFG Merge Without Extra Space
- GFG Minimum Number of Jumps
- Union and Intersection of Arrays
- GFG Minimise the Heights
- 31. Next Permutation
- 315. Count of Smaller Numbers After Self
- GFG Count Inversions
- GFG Common Elements
- GFG Rearrange array in alternating positive & negative items with O(1) extra space
- GFG Factorials of large numbers
- GFG Maximum Product Subarray
- 128. Longest Consecutive Sequence
- 169. Majority Element
- 229. Majority Element II
- k times
- 121. Best Time to Buy and Sell Stock
- GFG Triplet Sum in Array
- 15. 3Sum
- GFG Smallest Subarray Sum Smaller Than K
- GFG Choclate Distribution Problem
- GFG Minimum swaps and K together
- GFG Palindromic Array
- Minimum Number of Merges to make Palindrome
- GFG Median of 2 Sorted Arrays of Same Size
- 4. Median of Two Sorted Arrays
- 46. Permutations
- Kth Something
- Two Sum in BST
🔗 Linked List
- 206. Reverse Linked List
- 92. Reverse Linked List II
- Reverse LinkedList in Groups of K
- 61. Rotate List
- Merge 2 Sorted Linked Lists
- GFG Detect Loop
- 142. Linked List Cycle II
- GFG Remove Loop
- GFG Remove Duplicates
- GFG Add 1 to Linked List
- 2. Add Two Numbers
- GFG Intersection of Two Sorted LLs
- 160. Intersection of Two Linked Lists
- 876. Middle of the Linked List
- 148. Sort List
- GFG Split Circular Linked List into Two Halves
- GFG Check if Linked List is Palindrome
- GFG Reverse Doubly Linked List
- Reverse Doubly Linked List in Groups of K
- 25. Reverse Nodes in k-Group
- Flatten a Linked List
- Sort Linked List if 0s, 1s and 2s
- Clone LL with Random Pointer
- Delete Nodes With Greater Value on Right
- First Non Repeating Character in Stream
- Swap Kth nodes from ends
- 1721. Swapping Nodes in a Linked List
- 23. Merge k Sorted Lists
🌲 Binary Tree
- Binary Tree
- Count and Sum of Nodes
- Height of a Tree
- Diameter of a Tree
- Subtree of Another Tree
- Reverse Level Order Traversal
- BT Sum at Kth Level
- 1161. Maximum Level Sum of a Binary Tree
- 863. All Nodes Distance K in Binary Tree
- 226. Invert Binary Tree
- 101. Symmetric Tree
- Iterative Traversals of BT
- Left and Right View
- GFG Boundary Traversal of BT
- Vertical Traversal of BT
- Top - Bottom View of a Tree
- Zig Zag Traversal
- Diagonal Traversal of BT
- Binary Tree to DLL
- Flatten Binary Tree to LL
- Balance Binary Tree
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- Sum Tree
- Leaf at same level
- 652. Find Duplicate Subtrees
- 297. Serialize and Deserialize Binary Tree
- GFG Sum of Longest Bloodline
- 236. Lowest Common Ancestor of a Binary Tree
- 437. Path Sum III
- Maxiumum Sum of Non-Adjacent Nodes
- Kth Ancestor
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- Morris Traversals of Binary Tree
- 114. Flatten Binary Tree
- Check if Tree is Isomorphic
- 1483. Kth Ancestor of a Tree Node
- 1530. Number of Good Leaf Nodes Pairs
- 222. Count Complete Tree Nodes
- 1448. Count Good Nodes in Binary Tree
🎄Binary Search Tree
- Binary Search Tree
- 98. Validate BST
- 230. Kth Smallest Element in a BST
- Inorder Predecessor and Successor in BST
- LCA in BST
- Two Sum in BST
- Flatten a BST
- 1382. Balance a Binary Search Tree
- 1008. Construct Binary Search Tree from Preorder Traversal
- Populate Inorder Successor for all Nodes
- Convert Sorted List to BST
- Merge 2 BSTs
- 1932. Merge BSTs to Create Single BST
- Two Sum with 2 BSTs
- Replace every element with the least greater element on its right
- Given n appointments, find all conflicting appointments
- Check whether BST contains Dead End
- Largest BST
🏁 DP
01 Knapsack
- 494. Target Sum
- 416. Partition Equal Subset Sum
- Count of Subsets witth given Sum
- 1049. Last Stone Weight II
- 956. Tallest Billboard
- 1. Two Sum2
- Bank Transactions
General
🤏Greedy
- 122. Best Time to Buy and Sell Stock II
- N meetings in one room
- 920. Meeting Rooms
- 919 · Meeting Rooms II
- 56. Merge Intervals
- 452. Minimum Number of Arrows to Burst Balloons
- 435. Non-Overlapping Intervals
- 986. Interval List Intersections
- Job Sequencing Problem
- Police and Thieves
- 322. Coin Change
- 518. Coin Change 2
🧵Strings
- 6095. Strong Password Checker II
- 38. Count and Say
- Remove Consecutive Characters
- 796. Rotate String
- Longest Palindrome in String
- 316. Remove Duplicate Letters
- 1143. Longest Common Subsequence
- Longest Repeating Subsequence
- Print all Subsequences of a String
- Permutations of a Given String
- Word Wrap Problem
- Edit Distance
- Next Permutation
- Parenthesis Checker
- 139. Word Break
- 140. Word Break II
- Rabin Karp
- Count the Reversals
- 686. Repeated String Match
- Count Palindromic Subsequences
- FInd String in Grid
- 13. Roman to Integer
- 14. Longest Common Prefix
- Minimum Number of Flips
- 1963. Minimum Number of Swaps to Make the String Balanced
- 93. Restore IP Addresses
- Smallest Distinct Window
- 76. Minimum Window Substring
- 767. Reorganise Substring
- KMP Algo
- Minimum Characters to be added to front to make string Palindrome
- 1312. Minimum Insertion Steps to Make a String Palindrome
- 44. Wildcard Matching
- Count Customers Who Did Not Get A Computer
- Transform String
- 2027. Minimum Moves to Convert String
Matrices
Heap
Binary Search
- 34. Find First and Last Position of Element in Sorted Array
- 852. Peak Index in a Mountain Array
- 2293. Min Max Game