Oracle Interview Questions
Curated from verified interview reports: string/array-processing Coding rounds - palindrome and primality checks, price tracking, friend suggestion, and expression simplification.
9 real interview questions reported from Oracle Software Engineer interviews (Coding round): 4 easy, 4 medium, 1 hard. Each question shows its interview round and how often it was reported, and coding questions come with runnable tests.
Oracle Coding round questions (9)
- Adjacent Character Removal - Easy, free preview
Count the fewest character replacements needed so no two adjacent characters are equal. - Card Straight Check - Easy, free preview
Decide whether five distinct cards can form a straight, including the special Ace-low case. - Cyclic Digit Primality - Medium
Check whether every rotation of a number’s decimal digits is also prime. - Evens Before Odds - Medium
Count the fewest arbitrary swaps needed to move every even number in front of every odd number. - Expression Simplifier - Hard
Remove parentheses from a signed variable expression while preserving the correct term signs. - Filtered Palindrome Check - Easy
Use two pointers to check whether an input becomes a palindrome after skipping blocked characters. - Item Price Tracker - Medium
Design a timestamped price tracker that supports update, current, maximum, and minimum in logarithmic time. - Social Network Friend Suggester - Medium
Recommend one non-friend per user by counting mutual friends and breaking ties by smaller id. - Top Frequency Substring - Easy
Count overlapping length-k substrings and return the most frequent one, breaking ties lexicographically.