SDE Cheat Sheet

StatusProblemPracticeDifficulty
Two SumEasy
Best Time to Buy and Sell StockEasy
Contains DuplicateEasy
Product of Array Except SelfMedium
Maximum SubarrayMedium
Maximum Product SubarrayMedium
Find Minimum in Rotated Sorted ArrayMedium
Search in Rotated Sorted ArrayMedium
3SumMedium
Container With Most WaterMedium
Word SearchMedium
Spiral MatrixMedium
Rotate ImageMedium
Set Matrix ZeroesMedium
Number of 1 BitsEasy
Counting BitsEasy
Missing NumberEasy
Reverse BitsEasy
Reverse BitsEasy
Sum of Two IntegersMedium
Valid AnagramEasy
Valid ParenthesesEasy
Valid PalindromeEasy
Longest Substring Without Repeating CharactersMedium
Palindromic SubstringsMedium
Group AnagramsMedium
Encode and Decode StringsMedium
Longest Repeating Character ReplacementMedium
Longest Palindromic SubstringMedium
Minimum Window SubstringHard
Reverse a Linked ListEasy
Merge Two Sorted ListsEasy
Detect Cycle in a Linked ListEasy
Remove Nth Node From End Of ListMedium
Reorder ListMedium
Merge K Sorted ListsHard
Valid ParenthesesEasy
Next Greater ElementEasy
Longest Common SubsequenceMedium
Decode WaysMedium
House Robber IIMedium
Combination SumMedium
Jump GameMedium
Longest Common SubsequenceMedium
Word Break ProblemMedium
Unique PathsMedium
House RobberMedium
Meeting RoomsEasy
Meeting Rooms IIMedium
Insert IntervalMedium
Non-overlapping IntervalsMedium
Merge IntervalsMedium
Same TreeEasy
Invert/Flip Binary TreeEasy
Maximum Depth of Binary TreeEasy
Subtree of Another TreeEasy
Binary Tree Level Order TraversalMedium
Kth Smallest Element in a BSTMedium
Implement Trie (Prefix Tree)Medium
Validate Binary Search TreeMedium
Lowest Common Ancestor of BSTMedium
Construct Binary Tree from Preorder and Inorder TraversalMedium
Add and Search WordMedium
Binary Tree Maximum Path SumHard
Serialize and Deserialize Binary TreeHard
Word Search IIHard
Longest Consecutive SequenceMedium
Number of IslandsMedium
Clone GraphMedium
Graph Valid TreeMedium
Pacific Atlantic Water FlowMedium
Number of Connected Components in an Undirected GraphMedium
Course ScheduleMedium
Alien DictionaryHard
Top K Frequent ElementsMedium
Merge K Sorted ListsHard
Find Median from Data StreamHard