Oracle Coding & Algorithms Interview Questions

Practice the exact questions companies are asking right now.

19 Questions 1 Company07.26.2026
Showing 20 results
Role
Oracle logo
Oracle
Hard
Software Engineer

Implement Queue Operations Using Two Stacks

Implement Queue Operations Using Two Stacks Process a sequence of queue operations using exactly two LIFO stacks as the queue's internal data structur...

Coding & Algorithms
1
0
22 people solved
May 1, 2026
Oracle logo
Oracle
Medium
Software Engineer

Count Requests Dropped by Multiple Time Windows

Count Requests Dropped by Multiple Time Windows Implement count_dropped(timestamps) for nondecreasing integer seconds. For zero-based request index i,...

Coding & Algorithms
0
0
1 people solved
Jul 26, 2026
Oracle logo
Oracle
Medium
Software Engineer

Keep At Most K Copies in a Sorted Array

Keep At Most K Copies in a Sorted Array Implement dedupe_sorted(nums, k). Modify the sorted input array in place so each distinct integer appears at m...

Coding & Algorithms
0
0
1 people solved
Jul 26, 2026
Oracle logo
Oracle
Medium
Software Engineer

Compress Consecutive Characters with Run Lengths

Compress Consecutive Characters with Run Lengths Implement compress_runs(s) and return the compressed string. The input contains ASCII letters only. S...

Coding & Algorithms
0
0
1 people solved
Jul 26, 2026
Oracle logo
Oracle
Medium
Software Engineer

Maximize Profit with One Stock Transaction

Maximize Profit with One Stock Transaction Implement max_profit(prices) for daily integer prices. Choose at most one buy followed by one later sell an...

Coding & Algorithms
0
0
1 people solved
Jul 26, 2026
Oracle logo
Oracle
Hard
Software Engineer Locked

Implement in-memory data structures and booking API

This question evaluates proficiency in data structures and algorithms, systems-level data modeling, and practical API design by testing in-memory key-...

Coding & Algorithms
8
0
118 people solved
Feb 12, 2026
Oracle logo
Oracle
Medium
Software Engineer

Implement an LRU cache

Design and implement a data structure for a Least Recently Used (LRU) cache with a fixed capacity. The cache must support: - get(key): return the valu...

Coding & Algorithms
8
0
72 people solved
Jan 26, 2026
Oracle logo
Oracle
Medium
Software Engineer

Count anagram-based replacements per phrase

Problem You are given: - phrases: a list of strings, where each string is a phrase containing words separated by single spaces. - words: a list of str...

Coding & Algorithms
13
0
93 people solved
Dec 15, 2025
Oracle logo
Oracle
Medium
Software Engineer

Return a valid course completion order

You are given an integer n representing n courses labeled 0..n-1 and a list of prerequisite pairs prerequisites, where each pair [a, b] means you must...

Coding & Algorithms
11
0
98 people solved
Jan 26, 2026
Oracle logo
Oracle
Medium
Software Engineer

Solve three DSA problems: trie, window, intervals

1) Design and implement an autocomplete service. Support insert(word) to add a word and suggest(prefix) to return up to five existing words that start...

Coding & Algorithms
4
0
77 people solved
Sep 6, 2025
Oracle logo
Oracle
Medium
Software Engineer Locked

Maximize area between vertical lines

This question evaluates algorithmic reasoning with arrays and the ability to optimize pairwise measurements, specifically assessing understanding of h...

Coding & Algorithms
3
0
48 people solved
Jan 4, 2026
Oracle logo
Oracle
Medium
Software Engineer

Compute letter frequencies from encoded string

Problem You are given an encoded string s representing a string of lowercase English letters (a–z). The encoding follows these rules: 1. Letters a to ...

Coding & Algorithms
5
1
92 people solved
Mar 1, 2026
Oracle logo
Oracle
Medium
Software Engineer Locked

Solve Five Coding Problems

This problem set evaluates proficiency in core algorithms and data structures, including graph traversal and connected-component identification, array...

Coding & Algorithms
5
0
40 people solved
Apr 7, 2026
Oracle logo
Oracle
Medium
Software Engineer

Find users with at least one valid session

You are given: - A list of log entries logs, where each entry is a string in the format: ` "userId action timestamp" ` - userId is a non...

Coding & Algorithms
6
0
58 people solved
Nov 11, 2025
Oracle logo
Oracle
Easy
Data ScientistIntern Locked

Count closed islands in a grid

This question evaluates grid traversal and connected-component detection skills, focusing on 4-directional adjacency and boundary-condition reasoning ...

Coding & Algorithms
8
0
62 people solved
Feb 18, 2026
Oracle logo
Oracle
Medium
Data ScientistIntern Locked

Count Closed Islands

This question evaluates a candidate's understanding of grid-based connectivity and the ability to detect enclosed regions, testing skills in graph rep...

Coding & Algorithms
4
0
34 people solved
Jan 20, 2026
Oracle logo
Oracle
Medium
Software Engineer

Minimize sum with halving operations

Minimize sum with halving operations You are given an array of non-negative integers nums and an integer k. In one operation, choose any index i and r...

Coding & Algorithms
4
0
47 people solved
Aug 7, 2025
Oracle logo
Oracle
Medium
Data Scientist

Count Interior Islands After Flooding

You are given an m x n binary grid representing land and water. - 1 = land - 0 = water An island is a maximal group of land cells connected 4-directio...

Coding & Algorithms
2
0
28 people solved
Jan 9, 2026
Oracle logo
Oracle
Medium
Data ScientistIntern Locked

Count Enclosed Islands in a Grid

This question evaluates grid traversal and graph concepts such as connected-component detection, boundary-condition reasoning, and algorithmic time/sp...

Coding & Algorithms
3
0
29 people solved
Jan 3, 2026
Oracle logo
Oracle
Medium
Software Engineer

Implement an LRU cache

Design and implement an in-memory cache that evicts entries using the Least Recently Used (LRU) policy. The cache should store key–value pairs and sup...

Coding & Algorithms
3
0
41 people solved
Nov 6, 2025

Explore more Oracle Coding & Algorithms interview questions

Real questions from candidate reports, grouped by role, topic and company.

By role
Coding & Algorithms questions at other companies
Browse all