grindmapcompany-wise LeetCode
All companies

Oracle LeetCode Questions

314 questions all-time · 61 easy · 194 medium · 59 hard
# Problem Difficulty Frequency Acceptance
1LRU Cache
Medium
100
0.5%
2Longest Substring Without Repeating Characters
Medium
87
0.4%
3Number of Islands
Medium
83
0.6%
4Two Sum
Easy
83
0.6%
5Group Anagrams
Medium
81
0.7%
6Top K Frequent Elements
Medium
77
0.7%
7Sliding Window Maximum
Hard
76
0.5%
8Merge k Sorted Lists
Hard
73
0.6%
9Valid Parentheses
Easy
73
0.4%
10Merge Intervals
Medium
70
0.5%
11Longest Palindromic Substring
Medium
69
0.4%
12Spiral Matrix
Medium
69
0.6%
13Meeting Rooms II
Medium
69
0.5%
14Minimum One Bit Operations to Make Integers Zero
Hard
68
0.8%
15Search in Rotated Sorted Array
Medium
66
0.5%
16LFU Cache
Hard
66
0.5%
17Asteroid Collision
Medium
65
0.5%
18Container With Most Water
Medium
63
0.6%
193Sum
Medium
63
0.4%
20Reverse Linked List
Easy
63
0.8%
21Remove All Adjacent Duplicates in String II
Medium
63
0.6%
22Trapping Rain Water
Hard
62
0.7%
23Longest Consecutive Sequence
Medium
62
0.5%
24Min Stack
Medium
62
0.6%
25Minimum Absolute Difference
Easy
62
0.8%
26Roman to Integer
Easy
60
0.7%
27Maximum Subarray
Medium
60
0.5%
28Valid Anagram
Easy
60
0.7%
29Count Pairs Of Similar Strings
Easy
60
0.7%
30Maximize Value of Function in a Ball Passing Game
Hard
60
0.3%
31Rotting Oranges
Medium
60
0.6%
32Find Valid Pair of Adjacent Digits in String
Easy
60
0.6%
33Generate Parentheses
Medium
58
0.8%
34Best Time to Buy and Sell Stock
Easy
58
0.6%
35Binary Tree Right Side View
Medium
58
0.7%
36Lowest Common Ancestor of a Binary Tree
Medium
58
0.7%
37Decode String
Medium
58
0.6%
38Count Ways To Build Good Strings
Medium
58
0.6%
39Count Ways to Group Overlapping Ranges
Medium
58
0.4%
40Count Distinct Numbers on Board
Easy
58
0.6%
41Minimize Length of Array Using Operations
Medium
58
0.4%
42Count the Number of Houses at a Certain Distance I
Medium
58
0.6%
43Count the Number of Houses at a Certain Distance II
Hard
58
0.2%
44All Ancestors of a Node in a Directed Acyclic Graph
Medium
58
0.6%
45Lucky Numbers in a Matrix
Easy
58
0.8%
46HTML Entity Parser
Medium
58
0.5%
47Design Authentication Manager
Medium
58
0.6%
48Koko Eating Bananas
Medium
58
0.5%
49Median of Two Sorted Arrays
Hard
56
0.5%
50Longest Common Prefix
Easy
56
0.5%
51Sort Colors
Medium
56
0.7%
52Binary Tree Zigzag Level Order Traversal
Medium
56
0.6%
53Course Schedule
Medium
56
0.5%
54Find Median from Data Stream
Hard
56
0.5%
55Maximum Number of Events That Can Be Attended
Medium
56
0.4%
56Word Squares II
Medium
56
0.6%
57Zigzag Conversion
Medium
53
0.5%
58First Missing Positive
Hard
53
0.4%
59Restore IP Addresses
Medium
53
0.6%
60Kth Largest Element in an Array
Medium
53
0.7%
61Coin Change
Medium
53
0.5%
62Delete Node in a BST
Medium
53
0.5%
63Contiguous Array
Medium
53
0.5%
64Diameter of Binary Tree
Easy
53
0.7%
65Unique Binary Search Trees
Medium
53
0.6%
66Simplify Path
Medium
53
0.5%
67Implement Trie (Prefix Tree)
Medium
53
0.7%
68Binary Tree Maximum Path Sum
Hard
50
0.4%
69Copy List with Random Pointer
Medium
50
0.6%
70Majority Element
Easy
50
0.7%
71Kth Smallest Element in a BST
Medium
50
0.8%
72Product of Array Except Self
Medium
50
0.7%
73Logger Rate Limiter
Easy
50
0.8%
74Insert Delete GetRandom O(1)
Medium
50
0.6%
75Binary Tree Level Order Traversal
Medium
50
0.7%
76Task Scheduler
Medium
50
0.6%
77Degree of an Array
Easy
50
0.6%
78Time Based Key-Value Store
Medium
50
0.5%
79Vertical Order Traversal of a Binary Tree
Hard
50
0.5%
80Word Ladder
Hard
50
0.5%
81Count the Number of Infection Sequences
Hard
50
0.4%
82Integer to Roman
Medium
47
0.7%
83Letter Combinations of a Phone Number
Medium
47
0.7%
84Find First and Last Position of Element in Sorted Array
Medium
47
0.5%
85Minimum Window Substring
Hard
47
0.5%
86Validate Binary Search Tree
Medium
47
0.4%
87Gas Station
Medium
47
0.5%
88Word Break II
Hard
47
0.6%
89Maximal Square
Medium
47
0.5%
90Search a 2D Matrix II
Medium
47
0.6%
91Move Zeroes
Easy
47
0.6%
92Longest Increasing Subsequence
Medium
47
0.6%
93Reverse Vowels of a String
Easy
47
0.6%
94Search a 2D Matrix
Medium
47
0.5%
95String Compression
Medium
47
0.6%
96Subarray Sum Equals K
Medium
47
0.5%
97Design In-Memory File System
Hard
47
0.5%
98Maximum Profit From Trading Stocks
Medium
47
0.5%
99Valid Palindrome
Easy
47
0.5%
100Palindromic Substrings
Medium
47
0.7%
101N-Queens
Hard
47
0.8%
102Merge In Between Linked Lists
Medium
47
0.8%
103Pour Water
Medium
47
0.5%
104Diagonal Traverse
Medium
47
0.7%
105Longest Mountain in Array
Medium
47
0.4%
106Add Two Numbers
Medium
43
0.5%
107Rotate Image
Medium
43
0.8%
108Jump Game
Medium
43
0.4%
109Set Matrix Zeroes
Medium
43
0.6%
110Word Search
Medium
43
0.5%
111Largest Number
Medium
43
0.4%
112Course Schedule II
Medium
43
0.6%
113Palindrome Number
Easy
43
0.6%
114Meeting Rooms
Easy
43
0.6%
115Single Element in a Sorted Array
Medium
43
0.6%
116Top K Frequent Words
Medium
43
0.6%
117Number of Distinct Islands
Medium
43
0.6%
118Reorganize String
Medium
43
0.6%
119Design HashMap
Easy
43
0.7%
120Pairs of Songs With Total Durations Divisible by 60
Medium
43
0.5%
121Maximum Profit in Job Scheduling
Hard
43
0.5%
122Search Suggestions System
Medium
43
0.7%
123Max Area of Island
Medium
43
0.7%
124Reverse Words in a String
Medium
43
0.6%
125Count Vowel Substrings of a String
Easy
43
0.7%
126Next Permutation
Medium
43
0.5%
127Number of Visible People in a Queue
Hard
43
0.7%
128Second Highest Salary
Medium
43
0.5%
129Consecutive Numbers Sum
Hard
43
0.4%
130Merge Two Sorted Lists
Easy
39
0.7%
131Remove Duplicates from Sorted Array
Easy
39
0.6%
132Combination Sum II
Medium
39
0.6%
133Permutations
Medium
39
0.8%
134Rotate List
Medium
39
0.4%
135Linked List Cycle
Easy
39
0.5%
136Delete Node in a Linked List
Medium
39
0.8%
137Maximum Number of Non-overlapping Palindrome Substrings
Hard
39
0.4%
138Capacity To Ship Packages Within D Days
Medium
39
0.7%
139Kth Smallest Element in a Sorted Matrix
Medium
39
0.6%
140Maximum Good People Based on Statements
Hard
39
0.5%
141Sort an Array
Medium
39
0.6%
142Kill Process
Medium
39
0.7%
143Find the Winner of the Circular Game
Medium
39
0.8%
144House Robber
Medium
39
0.5%
145Permutation in String
Medium
39
0.5%
146Find the Smallest Divisor Given a Threshold
Medium
39
0.7%
147Subarray Product Less Than K
Medium
39
0.5%
148Reverse Integer
Medium
39
0.3%
149Divide Two Integers
Medium
39
0.2%
150Surrounded Regions
Medium
39
0.5%
151Minimum Array Sum
Medium
39
0.3%
152Find Leaves of Binary Tree
Medium
39
0.8%
153Regular Expression Matching
Hard
33
0.3%
154Pow(x, n)
Medium
33
0.4%
155Remove Duplicates from Sorted List
Easy
33
0.6%
156Merge Sorted Array
Easy
33
0.6%
157Populating Next Right Pointers in Each Node
Medium
33
0.7%
158Sort List
Medium
33
0.6%
159Two Sum II - Input Array Is Sorted
Medium
33
0.7%
160Isomorphic Strings
Easy
33
0.5%
161Minimum Size Subarray Sum
Medium
33
0.5%
162Basic Calculator
Hard
33
0.5%
163Palindrome Linked List
Easy
33
0.6%
164Integer to English Words
Hard
33
0.4%
165Sqrt(x)
Easy
33
0.4%
166Find K Pairs with Smallest Sums
Medium
33
0.4%
167First Unique Character in a String
Easy
33
0.7%
168Add Strings
Easy
33
0.5%
169Island Perimeter
Easy
33
0.7%
170Rearranging Fruits
Hard
33
0.6%
171Count Binary Substrings
Easy
33
0.7%
172Word Break
Medium
33
0.5%
173Daily Temperatures
Medium
33
0.7%
174Remove All Adjacent Duplicates In String
Easy
33
0.7%
175Distinct Subsequences
Hard
33
0.5%
176Non-overlapping Intervals
Medium
33
0.6%
177Flatten Binary Tree to Linked List
Medium
33
0.7%
178Contains Duplicate
Easy
33
0.6%
179Reformat Date
Easy
33
0.7%
180Next Greater Element I
Easy
33
0.8%
181Find Minimum in Rotated Sorted Array
Medium
33
0.5%
182Basic Calculator II
Medium
33
0.5%
183Longest Substring with At Most K Distinct Characters
Medium
33
0.5%
184Calculate Amount Paid in Taxes
Easy
33
0.7%
185Convert Binary Number in a Linked List to Integer
Easy
33
0.8%
186All Nodes Distance K in Binary Tree
Medium
33
0.7%
187Triangle
Medium
33
0.6%
188Minimum Remove to Make Valid Parentheses
Medium
33
0.7%
189Minimum Cost to Make Array Equal
Hard
33
0.5%
190Clone Graph
Medium
33
0.7%
191Maximum Earnings From Taxi
Medium
33
0.5%
192Keys and Rooms
Medium
33
0.8%
193Rotate String
Easy
33
0.7%
194Candy
Hard
33
0.5%
195Reverse Substrings Between Each Pair of Parentheses
Medium
33
0.7%
196Valid Sudoku
Medium
33
0.6%
197Climbing Stairs
Easy
33
0.5%
198Frog Jump
Hard
33
0.5%
199Reverse Linked List II
Medium
33
0.5%
200Meeting Rooms III
Hard
33
0.5%
201Decrypt String from Alphabet to Integer Mapping
Easy
33
0.8%
202Number of Closed Islands
Medium
33
0.7%
203Number of Music Playlists
Hard
33
0.6%
204Invalid Transactions
Medium
33
0.3%
205Distance to a Cycle in Undirected Graph
Hard
33
0.7%
206Open the Lock
Medium
33
0.6%
207Sum Root to Leaf Numbers
Medium
33
0.7%
208Longest Valid Parentheses
Hard
25
0.4%
209Sudoku Solver
Hard
25
0.7%
210Combination Sum
Medium
25
0.8%
211Jump Game II
Medium
25
0.4%
212Insert Interval
Medium
25
0.5%
213Text Justification
Hard
25
0.5%
214Decode Ways
Medium
25
0.4%
215Path Sum II
Medium
25
0.6%
216Find Peak Element
Medium
25
0.5%
217Rotate Array
Medium
25
0.5%
218Invert Binary Tree
Easy
25
0.8%
219Find the Duplicate Number
Medium
25
0.6%
220Validate IP Address
Medium
25
0.3%
221Remove Nth Node From End of List
Medium
25
0.5%
222Design Circular Queue
Medium
25
0.5%
223Backspace String Compare
Easy
25
0.5%
224K Closest Points to Origin
Medium
25
0.7%
225Subarrays with K Different Integers
Hard
25
0.7%
226Max Consecutive Ones III
Medium
25
0.7%
227Design File System
Medium
25
0.7%
228Minimum Number of Steps to Make Two Strings Anagram
Medium
25
0.8%
229Sort Array by Increasing Frequency
Easy
25
0.8%
230Last Stone Weight
Easy
25
0.7%
231Swapping Nodes in a Linked List
Medium
25
0.7%
232Max Stack
Hard
25
0.5%
233Binary Search
Easy
25
0.6%
234Remove Duplicates from Sorted List II
Medium
25
0.5%
235Minimum Cost to Cut a Stick
Hard
25
0.6%
236Split Array Largest Sum
Hard
25
0.6%
237Trapping Rain Water II
Hard
25
0.6%
238Subsets
Medium
25
0.8%
239Fraction to Recurring Decimal
Medium
25
0.3%
240Count of Range Sum
Hard
25
0.4%
241Edit Distance
Medium
25
0.6%
242Minimum Operations to Halve Array Sum
Medium
25
0.5%
243Count Servers that Communicate
Medium
25
0.7%
244My Calendar I
Medium
25
0.6%
245Letter Tile Possibilities
Medium
25
0.8%
246Maximize Greatness of an Array
Medium
25
0.6%
247Linked List Cycle II
Medium
25
0.6%
248Serialize and Deserialize Binary Tree
Hard
25
0.6%
249Maximum Candies Allocated to K Children
Medium
25
0.5%
250Can Place Flowers
Easy
25
0.3%
251Find All Duplicates in an Array
Medium
25
0.8%
252Basic Calculator III
Hard
25
0.5%
253Cache With Time LimitMedium
25
0.8%
254Maximum Employees to Be Invited to a Meeting
Hard
25
0.6%
255Plates Between Candles
Medium
25
0.5%
256Remove Linked List Elements
Easy
25
0.5%
257Create Maximum Number
Hard
25
0.4%
258Nested List Weight Sum
Medium
25
0.9%
259Count and Say
Medium
25
0.6%
260Remove Invalid Parentheses
Hard
25
0.5%
261Minimum Sideway Jumps
Medium
25
0.5%
262Largest Divisible Subset
Medium
25
0.5%
263Word Search II
Hard
25
0.4%
264Maximum Depth of Binary Tree
Easy
25
0.8%
265Multiply Strings
Medium
25
0.4%
266Sparse Matrix Multiplication
Medium
25
0.7%
267Next Greater Element III
Medium
25
0.4%
268Swap Nodes in Pairs
Medium
25
0.7%
269Remove K Digits
Medium
25
0.4%
270Minimize Maximum of Array
Medium
25
0.5%
271Greatest Common Divisor of Strings
Easy
25
0.5%
2723Sum Smaller
Medium
25
0.5%
273Merge Strings Alternately
Easy
25
0.8%
274Count Number of Nice Subarrays
Medium
25
0.8%
275Evaluate Reverse Polish Notation
Medium
25
0.6%
276Merge Nodes in Between Zeros
Medium
25
0.9%
277Missing Number
Easy
25
0.7%
278Encode and Decode Strings
Medium
25
0.5%
279Minimum Insertion Steps to Make a String Palindrome
Hard
25
0.7%
280Design Add and Search Words Data Structure
Medium
25
0.5%
281Boundary of Binary Tree
Medium
25
0.5%
282Water and Jug Problem
Medium
25
0.5%
283Minimum Cost Homecoming of a Robot in a Grid
Medium
25
0.5%
284The kth Factor of n
Medium
25
0.7%
285Number of Valid Words in a Sentence
Easy
25
0.3%
286Minimum Number of Increments on Subarrays to Form a Target Array
Hard
25
0.8%
287Collect Coins in a Tree
Hard
25
0.4%
288Kth Missing Positive Number
Easy
25
0.6%
289Maximum Size Subarray Sum Equals k
Medium
25
0.5%
290Add Two Numbers II
Medium
25
0.6%
291Find in Mountain Array
Hard
25
0.4%
292Single Number III
Medium
25
0.7%
293Largest Rectangle in Histogram
Hard
25
0.5%
294Counting Bits
Easy
25
0.8%
295Merge Operations to Turn Array Into a Palindrome
Medium
25
0.7%
296Minimum Edge Reversals So Every Node Is Reachable
Hard
25
0.6%
297Wildcard Matching
Hard
25
0.3%
298Least Number of Unique Integers after K Removals
Medium
25
0.6%
299Binary Tree Level Order Traversal II
Medium
25
0.7%
300Redundant Connection
Medium
25
0.7%
301Minimum Knight Moves
Medium
25
0.4%
302Bus Routes
Hard
25
0.5%
303Minimum Cost Path with Edge Reversals
Medium
25
0.6%
304Avoid Flood in The City
Medium
25
0.4%
305Happy Number
Easy
25
0.6%
306Generate Schedule
Medium
25
0.2%
307Flood Fill
Easy
25
0.7%
308Percentage of Users Attended a Contest
Easy
25
0.6%
309Reverse Nodes in k-Group
Hard
25
0.7%
310Design Hit Counter
Medium
25
0.7%
311Simple Bank System
Medium
25
0.7%
312Find Minimum Diameter After Merging Two Trees
Hard
25
0.6%
313Path Sum III
Medium
25
0.5%
314Monthly Transactions I
Medium
25
0.6%

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.

Similar companies