DSA Key Problems
Work through core coding interview problems and compare solution strategies.
Public lessons
- Introduction
- The DSA Round
- Concatenation of Array
- Sort an Array
- Rotate Array
- Leaders in an Array
- Maximum Subarray
- Meeting Rooms
- Next Permutation
- Car Pooling
- Meeting Rooms II
- Sort Colors
- Find All Duplicates in an Array
- Majority Element
- Palindrome Number
- Excel Sheet Column Number
- String to Integer (atoi)
- Add Strings
- Fraction to Recurring Decimal
- All Factors
- Greatest Common Divisor
- Count Primes
- Modular Exponentiation
- Sorted Permutation Rank
- Rectangle Overlap
- Max Points on a Line
- Reverse String
- Remove Duplicates from Sorted Array
- Two Sum II Input Array Is Sorted
- Merge Sorted Array
- 3Sum
- Container With Most Water
- Maximum Average Subarray
- Longest Substring Without Repeating Characters
- Max Consecutive Ones III
- Permutation in String
- Minimum Window Substring
- Subarrays with K Different Integers
- Max Points You Can Obtain from Cards
- Power of Three
- Fibonacci Number
- Pow(x, n)
- Count Inversions
- Binary Search
- First Bad Version
- Find Minimum in Rotated Sorted Array
- Find Peak Element
- Median of Two Sorted Arrays
- Sqrt(x)
- Reverse Bits
- Number of 1 Bits
- Single Number
- Single Number II
- Sum of Two Integers
- Minimum Array End
- Lemonade Change
- Best Time to Buy and Sell Stock
- Assign Cookies
- Jump Game
- Non Overlapping Intervals
- Job Sequencing Problem
- Candy
- Valid Parenthesis String
- Pascal's Triangle
- Diagonal Traverse
- Transpose Matrix
- Set Matrix Zeroes
- Search a 2D Matrix
- Kth Smallest Element in a Sorted Matrix
- Longest Common Prefix
- Length of Last Word
- String Compression
- Text Justification
- Longest Palindromic Substring
- Valid Parentheses
- Evaluate Reverse Polish Notation
- Simplify Path
- Min Stack
- Next Greater Element
- Online Stock Span
- Implement Queue Using Stacks
- Design Circular Queue
- Number of Recent Calls
- Dota2 Senate
- Sliding Window Maximum
- Design HashMap
- Valid Anagram
- Two Sum
- Group Anagrams
- Subarray Sum Equals K
- Count Subarrays with XOR K
- Insert Delete GetRandom O(1)
- Design HashSet
- Intersection of Two Arrays
- Intersection of Two Arrays II
- Remove Duplicates from Sorted List
- Add Two Numbers
- Middle of the Linked List
- Linked List Cycle
- Merge Two Sorted Lists
- Sort List
- Reverse Linked List
- Palindrome Linked List
- Copy List with Random Pointer
- LRU Cache
- Binary Tree Inorder Traversal
- Construct Binary Tree from Preorder and Inorder Traversal
- Invert Binary Tree
- Binary Tree Level Order Traversal
- Binary Tree Right Side View
- Same Tree
- Maximum Depth of Binary Tree
- Count Good Nodes in Binary Tree
- Lowest Common Ancestor of a Binary Tree
- Search in a Binary Search Tree
- Inorder Successor in BST
- Validate Binary Search Tree
- Convert Sorted Array to Binary Search Tree
- Last Stone Weight
- Kth Largest Element in a Stream
- Minimum Cost to Connect Sticks
- Task Scheduler
- Find K Pairs with Smallest Sums
- Find Median from Data Stream
- Implement Trie (Prefix Tree)
- Replace Words
- Design Add and Search Words Data Structure
- Maximum XOR of Two Numbers in an Array
- Maximum XOR With an Element From Array
- Subsets
- Permutations
- Subsets II
- Letter Combinations of a Phone Number
- Palindrome Partitioning
- Rat in a Maze
- N Queens
- Climbing Stairs
- Combination Sum IV
- House Robber
- Decode Ways
- Longest Increasing Subsequence
- Coin Change
- Maximum Profit in Job Scheduling
- Stone Game III
- Unique Paths
- Maximal Square
- Longest Common Subsequence
- Interleaving String
- Edit Distance
- 0/1 Knapsack
- Subset Sum
- Minimum Difficulty of a Job Schedule
- Longest Palindromic Subsequence
- Matrix Chain Multiplication
- Best Time to Buy and Sell Stock with Cooldown
- Stone Game
- Find the Town Judge
- Number of Connected Components in an Undirected Graph
- 01 Matrix
- Flood Fill
- Open the Lock
- Shortest Path with Alternating Colors
- Cycle in an Undirected Graph
- Course Schedule II
- Is Graph Bipartite
- Minimum Height Trees
- Network Delay Time
- Minimum Cost to Make at Least One Valid Path in a Grid
- Cheapest Flights Within K Stops
- Find the City With the Smallest Number of Neighbors at a Threshold Distance
- Number of Provinces
- Connecting Cities With Minimum Cost
- Greatest Common Divisor Traversal