Problems by Topic
Browse our 59 interview problems organized by data structure and algorithm topic. Perfect for focused practice.
Available Topics
- Algorithms (19 problems)
- Arrays (8 problems)
- Data Structures (22 problems)
- Dynamic Programming (7 problems)
- General (16 problems)
- Graphs (2 problems)
- Hash Table (1 problems)
- Heap (1 problems)
- Linked List (1 problems)
- Queue (1 problems)
- Strings (2 problems)
- Trie (1 problems)
Algorithms (19 problems)
- Bit Manipulation: Essential Tricks and Techniques
- Bumblebee
- Card Trick Without the Trick
- Check if a Linked list is a Palindrome or Not
- Coin Rolls
- Cube
- Dijkstra’s Shortest Path Algorithm
- Find Longest Palindrome In A String
- int atoi( char* pStr )
- Kadane’s Algorithm: Maximum Subarray Sum
- Palindromes
- Print String Permutations
- Reverse a doubly linked list
- Reverse a String
- Right Rotate an array by k elements
- Sliding Window Maximum
- Sum it Up
- Treasure Island
- Word Search in Grid
Arrays (8 problems)
- Amazon Interview Question: Count Negative Integers in Matrix
- Box ‘o Numbers
- Chessboard
- Missing or Duplicate Number in an Array
- Probability Distribution Function
- Reverse a String
- Right Rotate an array by k elements
- Sum Up a Pair in Array
Data Structures (22 problems)
- Building a Stack with a getMax() function
- Check if a Linked list is a Palindrome or Not
- Classic Weighing
- Find Out if a Linked List has a Cycle
- Find The Depth of a Binary Tree
- How many floors can an egg be dropped without breaking?
- Implement a rate limiter
- Implement LRU Cache
- Implement Trie (Prefix Tree)
- Linked List
- Missing country code
- Missing or Duplicate Number in an Array
- Probability Distribution Function
- Red Marbles, Blue Marbles
- Reverse a doubly linked list
- Reverse a String
- Right Rotate an array by k elements
- Serialize and Deserialize a Binary Tree
- Sum Up a Pair in Array
- Treasure Island
- Union-Find (Disjoint Set Union)
- Write a program for producer-consumer problem
Dynamic Programming (7 problems)
- Find Longest Palindrome In A String
- Fruit Jar Problem
- How many floors can an egg be dropped without breaking?
- Kadane’s Algorithm: Maximum Subarray Sum
- Palindromes
- Prime number problem
- Red Marbles, Blue Marbles
General (16 problems)
- 100 Factorial
- Check If a Number is Power of Two
- Clock
- Compute X^Y For Floats and Negative Values
- Function that Multiples 2 Integers
- Fuse on Fire
- Getting a fair result with an unfair coin
- Gold Chain
- Hard River Crossing
- Implement a Function to Return a Ratio
- Monty Hall Problem
- Server to Process Fair Number of Functions
- Storing 1 million phone numbers
- Topological Sort
- Write a Function for r and 5()
- XOR using NAND gates