Practice Data Structure and Algorithm with AlgoExpert
Arrays - 33 problems
- Two Number Sum
- Validate Subsequence
- Sorted Squared Array
- Tournament Winner
- Non-Constructible Change
- Transpose Matrix
- Three Number Sum
- Smallest Difference
- Move Element To End
- Monotonic Array
- Spiral Traverse
- Longest Peak
- Array Of Products
- First Duplicate Value
- Merge Overlapping Intervals
- Best Seat
- Zero Sum Subarray
- Missing Numbers
- Majority Element
- Sweet And Savory
- Four Number Sum
- Subarray Sort
- Largest Range
- Min Rewards
- Zigzag Traverse
- Longest Subarray With Sum
- Knight Connection
- Count Squares
- Apartment Hunting
- Calendar Matching
- Waterfall Streams
- Minimum Area Rectangle
- Line Through Points
Binary Search Trees - 12 problems
- Find Closest Value In BST
- BST Construction
- Validate BST
- BST Traversal
- Min Height BST
- Find Kth Largest Value In BST
- Reconstruct BST
- Same BSTs
- Validate Three Nodes
- Repair BST
- Sum BSTs
- Right Smaller Than
Binary Trees - 17 problems
- Branch Sums
- Node Depths
- Evaluate Expression Tree
- Invert Binary Tree
- Binary Tree Diameter
- Find Successor
- Height Balanced Binary Tree
- Merge Binary Trees
- Symmetrical Tree
- Split Binary Tree
- Max Path Sum In Binary Tree
- Find Nodes Distance K
- Iterative In-order Traversal
- Flatten Binary Tree
- Right Sibling Tree
- All Kinds Of Node Depths
- Compare Leaf Traversal
Dynamic Programming - 21 problems
- Max Subset Sum No Adjacent
- Number Of Ways To Make Change
- Min Number Of Coins For Change
- Levenshtein Distance
- Number Of Ways To Traverse Graph
- Max Sum Increasing Subsequence
- Longest Common Subsequence
- Min Number Of Jumps
- Water Area
- Knapsack Problem
- Disk Stacking
- Numbers In Pi
- Maximum Sum Submatrix
- Maximize Expression
- Dice Throws
- Juice Bottling
- Max Profit With K Transactions
- Palindrome Partitioning Min Cuts
- Longest Increasing Subsequence
- Longest String Chain
- Square of Zeroes
Famous Algorithms - 9 problems
- Kadane's Algorithm
- Stable internships
- Union Find
- Dijkstra's Algorithm
- Topological Sort
- Kruskal's Algorithm
- Prim's Algorithm
- Knuth—Morris—Pratt Algorithm
- A* Algorithm
Graphs - 15 problems
- Depth-first Search
- Single Cycle Check
- Breadth-first Search
- River Sizes
- Youngest Common Ancestor
- Remove Islands
- Cycle In Graph
- Minimum Passes Of Matrix
- Two-Colorable
- Boggle Board
- Largest Island
- Rectangle Mania
- Detect Arbitrage
- Two-Edge-Connected Graph
- Airport Connections
Greedy Algorithms - 6 problems
- Minimum Waiting Time
- Class Photos
- Tandem Bicycle
- Optimal Freelancing
- Task Assignment
- Valid Starting City
Heaps - 5 problems
- Min Heap Construction
- Continuous Median
- Sort K-Sorted Array
- Laptop Rentals
- Merge Sorted Arrays
Linked Lists - 15 problems
- Remove Duplicates From Linked List
- Middle Node
- Linked List Construction
- Remove Kth Node From End
- Sum of Linked Lists
- Merging Linked Lists
- Find Loop
- Reverse Linked List
- Merge Linked Lists
- Shift Linked List
- LRU Cache
- Rearrange Linked List
- Linked List Palindrome
- Zip Linked List
- Node Swap
Recursion - 15 problems
- Nth Fibonacci
- Product Sum
- Permutations
- Powerset
- Phone Number Mnemonics
- Staircase Traversal
- Blackjack Probability
- Reveal Minesweeper
- Lowest Common Manager
- Interweaving Strings
- Solve Sudoku
- Generate Div Tags
- Ambiguous Measurements
- Number Of Binary Tree Topologies
- Non-Attacking Queens
Searching - 9 problems
- Binary Search
- Find Three Largest Numbers
- Search In Sorted Matrix
- Shifted Binary Search
- Search For Range
- Quickselect
- Index Equals Value
- Median Of Two Sorted Arrays
- Optimal Assembly Line
Sorting - 9 problems
- Bubble Sort
- Insertion Sort
- Selection Sort
- Three Number Sort
- Quick Sort
- Heap Sort
- Radix Sort
- Merge Sort
- Count Inversions
Stacks - 11 problems
- Min Max Stack Construction
- Balanced Brackets
- Sunset Views
- Best Digits
- Sort Stack
- Next Greater Element
- Reverse Polish Notation
- Colliding Asteroids
- Shorten Path
- Largest Rectangle Under Skyline
- Largest Park
Strings - 18 problems
- Palindrome Check
- Caesar Cipher Encryptor
- Run-Length Encoding
- Common Characters
- Generate Document
- First Non-Repeating Character
- Semordnilap
- Longest Palindromic Substring
- Group Anagrams
- Valid IP Addresses
- Reverse Words In String
- Minimum Characters For Words
- One Edit
- Longest Substring Without Duplication
- Underscorify Substring
- Pattern Matcher
- Smallest Substring Containing
- Longest Balanced Substring
Tries - 5 problems
- Suffix Trie Construction
- Multi String Search
- Longest Most Frequent Prefix
- Shortest Unique Prefixes
- Strings Made Up Of Strings