Oracle interview prep
Practice 30 problems from community-reported Oracle interviews.
Your progress
0 / 30- Easy 0 / 5
- Medium 0 / 21
- Hard 0 / 4
Solved problems are saved in this browser.
Ranked problems
30 problems| Solved | Problem | Difficulty | Company lists |
|---|---|---|---|
Data structure designDesign a fixed-capacity cache with constant-time reads and writes. When it fills up, evict the least recently used key. On the Amazon, Microsoft, Samsung, Oracle, J.P. Morgan, Morgan Stanley lists. |
Medium | ||
02Two Sum
Hash tablesFind the indices of two different elements in an array whose values add up to a given target. On the Amazon, Google, Microsoft, Meta, Samsung, Tekion, IBM, Oracle, J.P. Morgan, Morgan Stanley lists. Try Reveal the indices
|
Easy | ||
Sliding windowFind the length of the longest contiguous stretch of a string in which no character appears twice. On the Amazon, Google, Microsoft, Meta, Tekion, IBM, Oracle, J.P. Morgan, Morgan Stanley lists. |
Medium | ||
Graph traversalCount the connected patches of land in a grid. Cells connect horizontally or vertically. On the Amazon, Microsoft, Samsung, Oracle lists. |
Medium | ||
Hash tablesGroup words that contain exactly the same letters with the same counts, regardless of order. On the Amazon, Google, Meta, Oracle, J.P. Morgan, Morgan Stanley lists. |
Medium | ||
CountingReturn the k distinct values that occur most often in the input array. On the Amazon, Oracle lists. |
Medium | ||
Monotonic queueSlide a window of k elements across an array one position at a time and return the largest value in each window. On the Microsoft, Oracle, J.P. Morgan lists. |
Hard | ||
HeapsCombine k sorted linked lists into a single sorted linked list containing all their nodes. On the Amazon, Oracle lists. |
Hard | ||
StacksCheck whether a string of round, square, and curly brackets closes every opening bracket in the correct order. On the Amazon, Google, Microsoft, Meta, IBM, Oracle lists. |
Easy | ||
Intervals · LeetCode PremiumGiven meeting start and end times, find the fewest rooms needed so every meeting can run on schedule. On the Tekion, Oracle, J.P. Morgan lists. |
Medium | ||
Binary searchFind a target in a rotated ascending array of distinct values in logarithmic time. Return its index or −1 if absent. On the Amazon, Oracle lists. |
Medium | ||
Data structure designImplement a fixed-capacity cache that evicts the least frequently used key, choosing the least recently used key when frequencies tie. On the Oracle list. |
Hard | ||
IntervalsCombine overlapping intervals and return a list that covers the same ranges without overlaps. On the Amazon, Microsoft, IBM, Oracle, J.P. Morgan, Morgan Stanley lists. |
Medium | ||
Linked listsReverse the links in a singly linked list and return its new head. On the Oracle list. |
Easy | ||
StacksRepeatedly delete k adjacent copies of the same character, including groups formed when deletions bring characters together. On the Oracle list. |
Medium | ||
StringsReturn the longest contiguous part of a string that reads the same forward and backward. On the Amazon, Google, Microsoft, Meta, Tekion, IBM, Oracle, J.P. Morgan lists. |
Medium | ||
Two pointersChoose two vertical lines that, together with the x-axis, can hold the greatest area of water. On the Amazon, Google, Microsoft, Meta, IBM, Oracle lists. |
Medium | ||
183Sum
Two pointersFind every distinct triple of values that adds up to zero, using three different positions in the array. On the Amazon, Google, Microsoft, Meta, Samsung, Oracle, Morgan Stanley lists. |
Medium | ||
ArraysReturn every entry in a rectangular matrix in clockwise spiral order, starting at the top-left corner. On the Oracle, Morgan Stanley lists. |
Medium | ||
StacksExpand a string with nested repetitions, where a number before brackets repeats the contents that many times. On the Oracle list. |
Medium | ||
StacksSimulate collisions between asteroids moving left or right along a line. Larger asteroids survive a collision and equal sizes destroy each other. On the Oracle list. |
Medium | ||
Dynamic programmingFind the largest sum you can make by taking a nonempty, contiguous part of an array. On the Amazon, Google, Microsoft, Meta, Tekion, Oracle lists. |
Medium | ||
CountingFind the first adjacent pair of different digits where each digit occurs exactly its own numeric value of times in the full string. On the Oracle list. |
Easy | ||
Binary searchFind the slowest whole-number eating speed that finishes all the piles on time. Each hour can be spent on only one pile. On the Amazon, Google, Oracle lists. |
Medium | ||
Data structure designBuild a stack that can push, pop, read its top, and report its current minimum, each in constant time. On the Oracle list. |
Medium | ||
TreesReturn the value visible at each depth when looking at a binary tree from its right side. On the Oracle list. |
Medium | ||
Hash tablesDecide whether two strings contain exactly the same characters with the same multiplicities. On the Google, Microsoft, Meta, IBM, Oracle lists. |
Easy | ||
HeapsSupport inserting numbers into a stream and retrieving the median of all numbers seen so far. On the Tekion, Oracle lists. |
Hard | ||
Data structure designStore timestamped versions of a key’s value. For a lookup, return its newest version at or before the requested time. On the Oracle list. |
Medium | ||
Data structure designImplement expiring tokens with operations to generate a token, renew an unexpired token, and count tokens still valid at a given time. On the IBM, Oracle lists. |
Medium |
How are questions ranked?
Company lists follow community-reported interview frequency. Ties keep the source order. Where a list uses two sources, we keep the first list’s ranks and fill the remaining places with the highest-ranked distinct problems from the second.
Across companies, first place earns 30 points and each subsequent rank earns one fewer. We add each problem’s points and break ties alphabetically.
- Oracle · All time · 21 October 2026