Oracle logo

Oracle Medium Interview Questions

6 medium-level practice questions for Oracle technical interviews

coding Medium Verified Question #1

1. Evens Before Odds


Category: Array coding problem
You are given an integer array nums. Rearrange nums so that all even numbers appear before all odd numbers. The relative order of even or odd...
Input: Array
Output: Integer
coding Medium Verified Question #2

2. Cyclic Digit Primality


Category: Algorithm coding problem
A number is called a cyclic prime if every rotation of its decimal digits produces a prime number. A rotation moves the leftmost digit to the...
Input: Integer(s)
Output: Computed result
coding Medium Verified Question #3

3. Tower Game Optimizer


Category: Array coding problem
A tower has n floors numbered from 0 to n - 1. Each floor has an energy cost to traverse and a reward value. You start a ball at one chosen...
Input: Array
Output: Computed result
coding Medium Verified Question #4

4. Social Network Friend Suggester


Category: Array coding problem
Build a friend recommendation system for a social network. Given n users (indexed 0 to n - 1) and a list of existing friendships (undirected...
Input: Array
Output: Array
coding Medium Verified Question #5

5. Item Price Tracker


Category: Algorithm coding problem
Design a class that tracks the price history of a single product. Price records are keyed by timestamp and can be updated at any time. The tracker...
Input: Given input
Output: Computed result
coding Medium Verified Question #6

6. Top Values After Operations


Category: Array coding problem
You are given an array of non-negative integers nums and two integers k and m. Perform exactly k operations on nums. In each operation: 1....
Input: Array
Output: Computed result

No AI generated questions yet for Oracle.

Start practicing Oracle questions

Sign up for free to access walkthroughs, AI-generated questions, and more.

Get Started Free