grindmapcompany-wise LeetCode
All companies

eBay LeetCode Questions

62 questions all-time · 10 easy · 39 medium · 13 hard
# Problem Difficulty Frequency Acceptance
1LRU Cache
Hash Table, Linked List, Design, Doubly-Linked List
Medium
100
0.5%
2Remove One Element to Make the Array Strictly Increasing
Array
Easy
100
0.3%
3Alternating Digit Sum
Math
Easy
96
0.7%
4Partition Equal Subset Sum
Array, Dynamic Programming
Medium
93
0.5%
5Subtree of Another Tree
Tree, Depth-First Search, String Matching, Binary Tree, Hash Function
Easy
93
0.5%
6Minimum Window Subsequence
String, Dynamic Programming, Sliding Window
Hard
93
0.4%
7Binary Gap
Bit Manipulation
Easy
93
0.7%
8Design Skiplist
Linked List, Design
Hard
93
0.6%
9Minimize Maximum Pair Sum in Array
Array, Two Pointers, Greedy, Sorting
Medium
93
0.8%
10Two Sum
Array, Hash Table
Easy
87
0.6%
11Spiral Matrix
Array, Matrix, Simulation
Medium
87
0.6%
12Number of Islands
Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix
Medium
80
0.6%
13Open the Lock
Array, Hash Table, String, Breadth-First Search
Medium
80
0.6%
14Top K Frequent Elements
Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect
Medium
80
0.7%
15Word Ladder
Hash Table, String, Breadth-First Search
Hard
75
0.5%
16Binary Tree Cameras
Dynamic Programming, Tree, Depth-First Search, Binary Tree
Hard
75
0.5%
17Pow(x, n)
Math, Recursion
Medium
75
0.4%
18Set Matrix Zeroes
Array, Hash Table, Matrix
Medium
75
0.6%
19Longest Palindromic Substring
Two Pointers, String, Dynamic Programming
Medium
69
0.4%
20Valid Parentheses
String, Stack
Easy
69
0.4%
21Group Anagrams
Array, Hash Table, String, Sorting
Medium
69
0.7%
22Valid Palindrome II
Two Pointers, String, Greedy
Easy
69
0.4%
23Course Schedule
Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort
Medium
69
0.5%
24Matchsticks to Square
Array, Dynamic Programming, Backtracking, Bit Manipulation, Bitmask
Medium
69
0.4%
25Time Based Key-Value Store
Hash Table, String, Binary Search, Design
Medium
69
0.5%
26Sort Array By Parity
Array, Two Pointers, Sorting
Easy
69
0.8%
27Merge Intervals
Array, Sorting
Medium
69
0.5%
28Reverse Pairs
Array, Binary Search, Divide and Conquer, Binary Indexed Tree, Segment Tree, Merge Sort, Ordered Set
Hard
69
0.3%
29Kth Largest Element in an Array
Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect
Medium
62
0.7%
30Reconstruct Itinerary
Array, String, Depth-First Search, Graph Theory, Sorting, Heap (Priority Queue), Eulerian Circuit
Hard
62
0.4%
31Rotting Oranges
Array, Breadth-First Search, Matrix
Medium
62
0.6%
32Sort Colors
Array, Two Pointers, Sorting
Medium
62
0.7%
33Shortest Unsorted Continuous Subarray
Array, Two Pointers, Stack, Greedy, Sorting, Monotonic Stack
Medium
62
0.4%
34Interleaving String
String, Dynamic Programming
Medium
62
0.4%
35Maximal Square
Array, Dynamic Programming, Matrix
Medium
62
0.5%
36Jump Game II
Array, Dynamic Programming, Greedy
Medium
62
0.4%
37Restore the Array From Adjacent Pairs
Array, Hash Table, Depth-First Search
Medium
62
0.8%
38Word Search
Array, String, Backtracking, Depth-First Search, Matrix
Medium
62
0.5%
393Sum
Array, Two Pointers, Sorting
Medium
62
0.4%
40Longest Substring Without Repeating Characters
Hash Table, String, Sliding Window
Medium
52
0.4%
41Merge k Sorted Lists
Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort
Hard
52
0.6%
42Best Time to Buy and Sell Stock II
Array, Dynamic Programming, Greedy
Medium
52
0.7%
43Reorganize String
Hash Table, String, Greedy, Sorting, Heap (Priority Queue), Counting
Medium
52
0.6%
44Design a Stack With Increment Operation
Array, Stack, Design
Medium
52
0.8%
45Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
Array, Queue, Sliding Window, Heap (Priority Queue), Ordered Set, Monotonic Queue
Medium
52
0.6%
46Concatenated Words
Array, String, Dynamic Programming, Depth-First Search, Trie, Sorting
Hard
52
0.5%
47Generate Parentheses
String, Dynamic Programming, Backtracking
Medium
52
0.8%
48Nearest Exit from Entrance in Maze
Array, Breadth-First Search, Matrix
Medium
52
0.5%
49Find Peak Element
Array, Binary Search
Medium
52
0.5%
50Repeated Substring Pattern
String, String Matching
Easy
52
0.5%
51Walls and Gates
Array, Breadth-First Search, Matrix
Medium
52
0.6%
52Top K Frequent Words
Array, Hash Table, String, Trie, Sorting, Heap (Priority Queue), Bucket Sort, Counting
Medium
52
0.6%
53Palindrome Linked List
Linked List, Two Pointers, Stack, Recursion
Easy
52
0.6%
54Clone Graph
Hash Table, Depth-First Search, Breadth-First Search, Graph Theory
Medium
52
0.7%
55Sudoku Solver
Array, Hash Table, Backtracking, Matrix
Hard
52
0.7%
56Product of Array Except Self
Array, Prefix Sum
Medium
52
0.7%
57Decode String
String, Stack, Recursion
Medium
52
0.6%
58Find Median from Data Stream
Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream
Hard
52
0.5%
59Block Placement Queries
Array, Binary Search, Binary Indexed Tree, Segment Tree, Ordered Set
Hard
52
0.4%
60Alternating Groups II
Array, Sliding Window
Medium
52
0.6%
61Alien Dictionary
Array, String, Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort
Hard
52
0.4%
62Substring with Concatenation of All Words
Hash Table, String, Sliding Window
Hard
52
0.3%

How to read this list

The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.

Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.