Now practice all your interviews before giving the real one

( Oracle interview questions )

Oracle interview questions, and how to answer them.

15 questions candidates report from Oracle interviews, grouped by topic, with a short note on how to answer each kind. Then say your answers out loud in a practice interview.

5 minutes, no CV needed. A practice round, not Oracle's own.

What Oracle interviews ask, in our data

Our bank holds 171 coding questions that candidates report from Oracle interviews. The topics that come up most: arrays & hashing (28), math & bits (24), stack (14) and binary search (13). Of the 171 coding questions, 40 are easy, 112 medium and 19 hard.

Our data covers coding questions for Oracle; it says nothing about their other rounds, so we don't guess. These are practice questions based on what candidates report on public, community-kept lists, each written in our own words. RoundAlpha is not linked to Oracle.

Coding questions
171
Easy / medium / hard
40 / 112 / 19
Top topic
Arrays & hashing
Page data updated
29 November 2026

( Questions )

15 Oracle questions to practise.

Linked list

  1. 1

    Recently Used CacheMedium

    Build a cache that holds at most capacity keys and, once it is full, makes room by throwing out the key that was used longest ago.

  2. 2

    Merge K Sorted ListsHard

    lists holds the first nodes of k linked lists. Each node holds a number, val, and a link to the node after it, next; the last node's next is null.

Arrays & hashing

  1. 3

    Two SumEasy

    Given an array of integers nums and an integer target, return the positions of the two numbers that add up to target.

  2. 4

    Group by LettersMedium

    Given a list of words, put words that are made of exactly the same letters, each used the same number of times, into the same group.

  3. 5

    Most Common KMedium

    Given a list of integers nums and a number k, return the k values that appear most often in nums, in any order.

Sliding window

  1. 6

    Longest Unique StretchMedium

    Given a string s, return the length of the longest stretch of consecutive characters in which no character appears twice.

  2. 7

    Window MaximumsHard

    Given a list of integers nums and a window size k, slide a window of k consecutive numbers from the left end of nums to the right end, one step at a time.

Graphs

  1. 8

    Count IslandsMedium

    You are given a map of the sea as a grid of "1"s and "0"s: "1" is land and "0" is water. An island is a group of land cells joined up, down, left or right.

Math & bits

  1. 9

    Spiral OrderMedium

    You are given a grid of numbers with m rows and n columns.

Intervals

  1. 10

    Merge RangesMedium

    You are given a list of ranges, each written as [start, end]. Merge every group of ranges that overlap or touch, and return the merged ranges sorted by their start.

  2. 11

    Meeting Rooms NeededMedium

    Each meeting is written as [start, end]: it needs a room from time start until time end.

Stack

  1. 12

    Balanced BracketsEasy

    A string s is made only of the characters ( ) [ ] { }. Return true if every opening bracket is closed by a bracket of the same kind, and the brackets close in the right order.

Dynamic programming, 1-D

  1. 13

    Longest Palindrome InsideMedium

    You are given a string s. Return the longest piece of it — a run of letters that sit next to each other in s — that reads the same forwards and backwards (a palindrome).

Two pointers

  1. 14

    Biggest Water TankMedium

    A row of walls stands on flat ground, one metre apart; height[i] is the height of wall i.

  2. 15

    Three That Sum to ZeroMedium

    Given a list of integers nums, return every triple of values, taken from three different positions, that adds up to 0.

Want to write the code too? The Oracle list on our coding practice page runs your answer against hidden tests, in six languages.

Questions

Oracle interview: questions and answers

What coding questions does Oracle ask?

Our bank holds 171 coding questions that candidates report from Oracle interviews. The topics that come up most: arrays & hashing (28), math & bits (24), stack (14) and binary search (13). This page shows 15 of them, grouped by topic.

How hard are Oracle coding questions?

Of the 171 coding questions, 40 are easy, 112 medium and 19 hard. The level you meet depends on the role and your experience, so practise easy and medium ones until you can explain them out loud, then add hard ones.

Are these the real Oracle interview questions?

They are practice questions based on what candidates report from Oracle interviews on public, community-kept lists. Each one is written in our own words. RoundAlpha is not linked to Oracle, and no list can promise what a given interviewer will ask.

Can I practise a Oracle interview for free?

Yes. A new account you sign up for yourself gets one short free practice interview. Name Oracle as the company and the interviewer leans its questions toward that company. You can choose "No CV this time", so no CV is needed. You talk out loud and get a scored report at the end.

Read next

Ready when you are

Say it out loud once before it counts.

A short practice interview with Oracle named as the company, then a scored report on every answer.

5 minutes, no CV needed. A practice round, not Oracle's own.