0 day streak

eBay coding interview questions

E-commerce and consumerProduct Global Machine coding / LLD

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Amazon, Microsoft +59 Solve
Daily TemperaturesMonotonic Stack Medium Monotonic Stack Amazon, Grab, TikTok (ByteDance) +20 Solve
Search in Rotated Sorted ArrayRotated Array Medium Binary Search Amazon, Microsoft, Apple +59 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +68 Solve
Remove Nth Node From End of ListFront Back Pointer Medium Linked List Meta, Apple, Zscaler +22 Solve
Meeting Rooms IILine Sweep Medium Intervals Google, Amazon, Meta +50 Solve
Minimum Knight MovesBFS for shortest path Medium Graphs Microsoft, Uber, Databricks +9 Solve
Reverse PairsMerge Sort Like Approach Hard Arrays & Hashing Intuit, Deloitte, D. E. Shaw Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +107 Solve
Making A Large IslandConnected Components Hard Graphs Amazon, Meta, Uber +9 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Lowest Common Ancestor of a Binary TreeLCA Medium Trees & BST Google, Amazon, Microsoft +46 Solve
Permutations IIPermutations Medium Recursion & Backtracking LinkedIn, GoDaddy, Ola +1 Solve
Koko Eating BananasBinary Search on Answer Space Medium Binary Search Amazon, Netflix, Uber +34 Solve
Coin ChangeKnapsack Medium Dynamic Programming Google, Amazon, Microsoft +55 Solve
Climbing Stairs1D DP Easy Dynamic Programming Microsoft, Bloomberg, Electronic Arts +34 Solve
Construct Binary Tree from Preorder and Inorder TraversalTree Serialization / Deserialization Medium Trees & BST Microsoft, TikTok (ByteDance), Block (Square) +9 Solve
Design In-Memory File SystemBasics Hard Tries Google, Netflix, Uber +11 Solve
Maximum Size Subarray Sum Equals kPrefix Sum Strategy Medium Arrays & Hashing Palantir, Epic Games, Arcesium +2 Solve
Design Add and Search Words Data StructureBasics Medium Tries Snowflake, DoorDash, Datadog +2 Solve
Text JustificationSimulation Hard Arrays & Hashing Google, Microsoft, LinkedIn +28 Solve
Valid NumberSimulation Hard Arrays & Hashing Nutanix, Epic Games, Tripadvisor +1 Solve
Gas StationKadane's Algorithm Medium Arrays & Hashing Amazon, Microsoft, Bloomberg +23 Solve
Boundary of Binary TreeViews Medium Trees & BST Uber, Snowflake, Nutanix +10 Solve
Word Break IIChoice per Position Hard Recursion & Backtracking Bloomberg, Snap, Booking.com +12 Solve
Median of Two Sorted ArraysBinary Search on Partition Hard Binary Search Google, Amazon, Microsoft +49 Solve
Minimize Result by Adding Parentheses to ExpressionCandidate Generation Medium Arrays & Hashing Pinterest, Coinbase, Capital One Solve
Binary Tree Level Order TraversalTraversals Medium Trees & BST Microsoft, Apple, Netflix +24 Solve
Walls and GatesMulti source BFS Medium Graphs LinkedIn, Spotify, DoorDash +3 Solve
Sudoku Solver2D Matrix Backtracking Hard Recursion & Backtracking Microsoft, DoorDash, Snap +12 Solve
N-Queens II2D Matrix Backtracking Hard Recursion & Backtracking Meta, Deutsche Bank Solve
Implement Queue using StacksStack Basics Easy Stack Microsoft, Meta, Apple +28 Solve
Partition Equal Subset SumKnapsack Medium Dynamic Programming Google, Texas Instruments, Dell Technologies +6 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Subtree of Another TreeTraversals Easy Trees & BST Electronic Arts, American Express, UBS +1 Solve
Design SkiplistRandomized Algorithms Hard Design Data Structures X (Twitter), Arista Networks, Optiver +1 Solve
Spiral MatrixMatrix Traversal Medium Arrays & Hashing Microsoft, Apple, Databricks +52 Solve
Top K Frequent ElementsComposite comparator Medium Heaps Google, Amazon, Microsoft +53 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Group AnagramsHashing Medium Arrays & Hashing Amazon, Microsoft, Meta +82 Solve
Word LadderBFS for shortest path Hard Graphs Google, Amazon, Microsoft +39 Solve
Open the LockBFS for shortest path Medium Graphs LinkedIn, Snap, Palo Alto Networks +7 Solve
Course ScheduleTopological Sort Medium Graphs Google, Amazon, Microsoft +42 Solve
Pow(x, n) (Binary Exponentiation)Search on Answer Range Medium Binary Search Meta, LinkedIn, Asana +19 Solve
Set Matrix ZeroesIn-place Transformations Medium Arrays & Hashing Microsoft, Meta, Zscaler +13 Solve
Binary Tree CamerasPostorder + Multiple Return Values Hard Trees & BST Nutanix, Quora, UiPath +5 Solve
Matchsticks to SquarePick / Not-Pick Medium Recursion & Backtracking Discord, PhonePe Solve
Time Based Key-Value StoreBasics Medium Binary Search Apple, Netflix, Uber +25 Solve
Maximal SquareSquares Medium Dynamic Programming Google, Amazon, Airbnb +14 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +114 Solve
Kth Largest Element in an ArrayTop K / Kth Largest / Smallest Medium Heaps Amazon, Meta, Apple +51 Solve
Reconstruct ItineraryEulerian Path (Hierholzer) Hard Graphs Amazon, Netflix, Airbnb +16 Solve
Rotting OrangesMulti source BFS Medium Graphs Google, Amazon, Microsoft +48 Solve
Sort ColorsDutch National Flag Medium Arrays & Hashing Microsoft, Nvidia, Expedia Group +43 Solve
Interleaving StringStrings Medium Dynamic Programming VMware by Broadcom, Cars24 Solve
Jump Game IIGreedy Medium Arrays & Hashing Google, DoorDash, Nutanix +25 Solve
Word Search2D Matrix Backtracking Medium Recursion & Backtracking Google, Microsoft, Meta +36 Solve
Decode StringStack Basics Medium Stack Google, Amazon, Microsoft +31 Solve
Merge k Sorted ListsMerge K Sorted Hard Heaps Google, Amazon, Microsoft +59 Solve
Design a Stack With Increment OperationStack Medium Design Data Structures Cloudflare, Moloco, Informatica +2 Solve
Valid Palindrome IITwo Pointer Easy Arrays & Hashing Meta, Apple, Bloomberg +8 Solve
Find Peak ElementUnique 1-D Binary Search Medium Binary Search Meta, Netflix, Uber +26 Solve
Clone GraphBFS / DFS Basics Medium Graphs Google, Microsoft, Meta +11 Solve
Find Median from Data StreamAdvanced Hard Heaps Google, Amazon, Apple +47 Solve
Also reported, being added to AlgoRung (7)

Remove One Element to Make the Array Strictly Increasing · Stepping Numbers · Alternating Groups II · Alternating Digit Sum · Minimum Window Subsequence · Binary Gap · Minimize Maximum Pair Sum in Array

Questions people ask

What coding questions does eBay ask most?

Container With Most Water, Daily Temperatures, Search in Rotated Sorted Array, Longest Palindromic Substring, Remove Nth Node From End of List, Meeting Rooms II, Minimum Knight Moves, Reverse Pairs.

Which topics come up in eBay coding rounds?

graphs, grids, trees, intervals, dynamic programming, linked list.

How hard are eBay coding questions?

Of the reported questions, 6 are easy, 44 medium and 15 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.