Oracle Coding Interview Questions
29 coding questions reported by candidates who interviewed at Oracle, out of 32 Oracle questions we track. They average 2.8/5 difficulty (medium). Most common topics: Design, Array, Hashmap, String. 18 were reported asked within the last year, most recently in July 2026.
Practice Oracle questions →Difficulty
- 2/5 — easy6
- 3/5 — medium23
Asked for SWE (29), Infra (9), MLE (6)
Reported Oracle coding questions
Two-Stack FIFO Queue with Amortized O(1) Operations
2/5A data-structure design question about building a first-in, first-out container on top of last-in, first-out storage only. It tests keeping arrival order correct when additions and removals interleave, handling the empty case cleanly, and arguing why the average cost per call stays constant even when one call is expensive.
asked July 2026CodingStackQueueSame N-ary Tree Comparison
2/5This Oracle interview question expands upon traditional binary tree comparison tasks by asking you to evaluate N-ary trees for structural and value equality. You will first tackle the straightforward recursive approach, followed by an advanced iterative follow-up that traverses both hierarchies simultaneously using explicit auxiliary data structures. It serves as an excellent test of your tree traversal mastery and pointer management. The comprehensive breakdown, alongside recursive and iterative model solutions, requires a paid subscription.
asked April 2026TreeRecursionDFSNumber of Islands (LC 200)
3/5Evaluating spatial traversal skills is common in technical screenings, highlighted by this Oracle phone-screen question equivalent to a well-known LeetCode problem. The objective requires tallying isolated land formations within a two-dimensional matrix using standard graph exploration techniques while meticulously documenting performance metrics. Candidates must demonstrate fluency in recursive or queue-based traversal patterns alongside precise time and space complexity analysis. Unlock the complete problem guide, step-by-step walkthrough, and production-ready solution by securing a paid subscription today.
asked April 2026DFSGraphMatrixLRU Cache with Expiration (LC 146 + TTL)
3/5This Oracle interview question delves into advanced data structure design, combining the principles of a Least Recently Used (LRU) cache with an additional layer of complexity: time-to-live (TTL) expiration. You'll need to engineer a cache that supports efficient O(1) operations for both retrieval and insertion, while also ensuring that entries automatically become invalid after a specified duration. This problem tests your understanding of hash maps, linked lists, and how to integrate temporal logic into a performant caching mechanism. The full problem and model solution require a subscription.
asked April 2026HashmapLinked ListTTLSort Array by Parity — Minimum Swaps
3/5This coding interview question, frequently encountered in technical screenings at Oracle, challenges candidates to reorder a collection of integers such that all even numbers precede all odd ones using the fewest possible swaps. This problem evaluates your ability to manipulate arrays efficiently and implement strategic pointer movements from both extremities of the dataset. To successfully solve this challenge, you must minimize operations while adhering strictly to the parity grouping requirement. The complete problem statement, detailed explanations, and optimized model solution require a subscription.
asked April 2026Two PointerArrayGreedyMonotone Increasing Digits (LC 738)
3/5Faced during an Oracle coding interview, this algorithmic challenge requires finding the highest valid integer beneath a given threshold where digits follow a strictly non-decreasing sequence. The exercise evaluates greedy optimization techniques, digit manipulation, and edge-case handling under strict constraints. It tests the ability to transform an intuitive pattern into an optimal computational approach. The complete problem statement and verified code implementation are reserved for subscribers.
asked April 2026GreedyMathHospital Appointment Booking API
3/5This Oracle interview question requires you to design a robust RESTful API for managing medical appointments across numerous practitioners with fixed daily schedules and time slots. You will need to tackle state management challenges, handle rapid booking requests, and efficiently return the next available opening or an appropriate error response. Unlocking the complete system architecture, API specifications, and working reference solution requires an active platform subscription.
asked February 2026DesignData StructureConcurrencyVerbal Java / CS-Fundamentals Quiz
3/5Master the essential Java and computer science fundamentals commonly tested during Oracle technical screenings. This prep page focuses on rapid-fire verbal quizzes covering object-oriented design principles, concurrency concepts, and internal data structure mechanisms that interviewers frequently interleave with live coding challenges. Evaluating your theoretical depth helps ensure you can defend architectural choices and handle unexpected follow-up questions seamlessly. Access the full question bank, core concepts, and expert explanations with a subscription.
asked February 2026Cs FundamentalsVerbalNetworkingSimplified Redis-Like KV / List Store
3/5This system design and implementation task, featured in Oracle screening loops, requires building a lightweight in-memory key-value data store that supports basic scalar assignments alongside collection-based list operations. The exercise tests your ability to design clean class interfaces, manage diverse internal data types, and handle collection modifications efficiently. Access to the full problem requirements and professional model solution requires a subscription.
asked February 2026Data StructureIn Memory DatabaseDesignCode Reading — CLI Tool Feature Audit
3/5Stepping away from traditional algorithmic puzzles, this code-reading exercise requires you to audit an existing command-line utility codebase against a formal product requirements specification to identify gaps and architectural flaws. Documented as an onsite Oracle interview scenario, it highlights code comprehension, software engineering best practices, and refactoring techniques. Reviewing the complete prompt documents and expert feedback requires an active subscription.
asked February 2026Code ReadingRefactoringDesign ReviewApply List of Operations (Command Pattern)
3/5This reported Oracle Health interview challenge evaluates your ability to structure maintainable code by applying a sequence of modifications to a baseline configuration. Rather than focusing on standard algorithmic puzzles, this exercise tests how well you implement design patterns to handle state transformations and manage execution flows. You will explore how to cleanly execute ordered directives while considering potential optimizations like reordering or consolidation. Access to the comprehensive problem description and optimal architecture requires an active subscription.
asked February 2026Design PatternsObject DesignOOP DesignContainer With Most Water (LC 11)
3/5A classic array problem about picking two barriers that trap the largest amount of liquid between them. It tests whether you can move past an all-pairs scan to a linear-time strategy and argue why it is correct.
asked January 2026ArrayTwo PointerGreedyFirst-Login Only-Once User Tracker (O(1) Worst-Case)
3/5Prepare for this Oracle interviewing scenario by designing a high-performance data structure that tracks user authentication events. The core challenge requires you to record incoming user logins and instantly query the chronologically first user who has logged in exactly once throughout their lifetime, all while maintaining strict constant time complexity for every operation. This problem tests your expertise in combining hash maps with doubly linked lists or custom index tracking mechanisms. The detailed problem breakdown and expert solution require a subscription.
asked December 2025Linked ListHashmapDesignAnagram Word Replacement in Phrases (Find All Anagrams)
3/5Optimize your sliding window techniques with this string-matching puzzle featured in Oracle Health technical screens. This challenge tests your capability to efficiently locate contiguous segments within a larger text that match specific letter permutations, all while avoiding costly brute-force overhead. You will learn how frequency tracking and optimized pointer movement drastically improve runtime performance on restrictive datasets. Unlock the full algorithmic breakdown, performance optimizations, and complete code solution by purchasing a subscription.
asked November 2025StringHashmapSliding WindowMerge K Sorted (Key, Value) Lists with Later Override
3/5Reported as an Oracle OCI screening question, this challenge requires combining multiple ordered sequences of key-value pairs while correctly applying precedence rules when duplicate keys occur across different collections. It assesses your ability to adapt multi-way merging algorithms, such as those driven by min-heaps, to incorporate custom conflict-resolution logic based on source indices. You will practice maintaining sorted order while overriding older data with newer updates. Access to the complete solution and detailed explanation requires a subscription.
asked November 2025HeapLinked ListMergeCourse Scheduler — Print Path (Simplified)
2/5Featured during a technical screening at Oracle, this simplified dependency resolution task requires candidates to generate an ordered sequence of study modules based on single prerequisite links. The challenge tests your graph traversal capabilities and how well you can map out linear execution orders under strict dependency rules. Interviewers use this scenario to evaluate clean implementation speed and foundational data structure handling within a tight timeframe. Access to the full problem description and the expert-crafted model solution requires an active subscription.
asked November 2025GraphTopological SortTreeDecode String (k[encoded]) (LC 394)
3/5A string-parsing problem about expanding nested repetition markers into their full text. It checks how well you handle nesting, multi-digit counts and the bookkeeping that keeps each level separate.
asked November 2025StringStackRecursionCode Review Round (Verbal)
3/5This Oracle screening scenario features a dual-phase assessment combining critical code critique with a conversational system design review based on past professional experience. It evaluates your code-reading acuity, debugging instincts, and ability to communicate architectural decisions effectively without writing traditional algorithmic code. The complete guide and expert evaluation strategies require a subscription.
asked October 2025Code ReviewDesign ReviewVerbalValid 5-Card Poker Straight
2/5Asked during an Oracle Health screening process, this exercise requires you to evaluate a hand of playing cards to check if they form a valid sequence of consecutive values with flexible handling for face cards and aces. It assesses foundational data manipulation, conditional logic, and mapping techniques within a timed coding environment. Unlock the full prompt and complete code solution by getting a subscription.
asked October 2025ArraySetSimulationOOD — File Management System
2/5This Oracle coding exercise requires you to build a lightweight in-memory directory management utility. You will implement foundational functions to verify folder existence, generate new directories, and add files while carefully managing tricky edge cases and duplicates. It measures your ability to write clean, robust object-oriented code under test conditions. Unlock the full prompt and expert implementation details with a paid subscription.
asked September 2025OOP DesignFilesystemHashmapOOD — Treatment Frequency Scheduler
3/5Reported from Oracle technical screens, this object-oriented design question requires building a flexible scheduling engine to generate recurring medical treatment schedules within specified timeframes. You must model various recurrence patterns and efficiently compute all valid occurrence timestamps across multiple patients. The task evaluates your ability to design clean class hierarchies and handle complex date and time arithmetic cleanly. Get full access to the complete design patterns and reference solution by subscribing.
asked September 2025OOP DesignSchedulingMathTrie-Based Autocomplete
3/5Reported during Oracle interviews, this problem asks you to build a robust predictive text lookup service using a dictionary dataset and prefix queries. Beyond basic retrieval, the evaluation heavily emphasizes clean architecture, requiring a strict separation of concerns between the underlying tree structure and the service logic, with potential follow-ups involving frequency-based ranking. It tests both your data structure design skills and your commitment to maintainable code. The full problem and model solution require a subscription.
asked September 2025TrieDFSStringSet Matrix Zeros (in-place) (LC 73)
3/5Examine a classic matrix manipulation puzzle commonly posed during technical screenings at Oracle, where developers must modify a two-dimensional grid in place. The objective requires setting entire rows and columns to zero whenever a zero cell is encountered, all without allocating supplementary memory structures. Interviewers frequently expand this challenge by introducing non-rectangular data shapes and generalized marker types to test adaptability. Unlocking the full problem description and comprehensive solution demands a subscription.
asked September 2025ArrayMatrixHashmapMinimum Sum After K Halvings (Max-Heap)
3/5Examine a numeric optimization problem reported in an Oracle engineering loop, where you must strategically reduce elements using repeated division to achieve the smallest possible total sum. Candidates must determine the optimal sequence of choices under operation limits while handling edge cases efficiently. This question tests your proficiency with priority queues and greedy strategies to avoid performance bottlenecks. Unlock the full problem statement, test cases, and optimal solution code with a subscription.
asked August 2025HeapGreedyArrayLog Parser with Multi-Line Follow-up
3/5This log processing challenge, reported from Oracle interviews, tests a candidate's ability to ingest continuous text streams, parse structured data entries based on timestamps and severity levels, and validate formatting rules. A key follow-up introduces multiline log entries that must be correctly aggregated and associated with their parent record. The task evaluates string manipulation, parsing logic, and edge-case handling. Gain access to the full problem breakdown and expert solution by purchasing a subscription.
asked August 2025StringParsingState MachineBinary Search — Rightmost Index of Duplicate
2/5This interview question, featured in an Oracle screening session, challenges candidates to locate the final occurrence of a duplicated element within an ordered collection. It evaluates your ability to adapt standard logarithmic search algorithms to handle multiple identical entries efficiently without resorting to linear scans. You will learn how to narrow down boundaries effectively when duplicates are present. Access to the complete problem breakdown and optimal code implementation requires a subscription.
asked July 2025ArrayBinary SearchSimplify Expression by Removing Parentheses
3/5Asked during an onsite interview at Oracle Labs, this string manipulation challenge tests your ability to parse algebraic expressions containing nested parentheses and distribute unary signs across variables. You are required to flatten the expression completely while adhering to mathematical rules for addition and subtraction over symbols. This problem tests stack utilization and careful parsing logic. The complete problem description, test cases, and reference solution require a subscription.
asked June 2025StringStackParsingMaximum Completable Tasks with Prerequisites (Topological)
3/5Reported as an Oracle screening question, this graph-theoretic challenge requires determining the maximum number of milestones you can achieve given strict dependency constraints. Because certain pathways might contain circular dependencies, you must identify valid execution sequences using topological sorting principles. The puzzle evaluates your graph traversal skills and your ability to prune invalid branches efficiently. Unlock the complete problem text, underlying architectural patterns, and verified solution code with a subscription.
asked April 2025GraphTopological SortBFSOOD — Body-Temperature Measurement Classes
3/5In this object-oriented design task reported from Oracle, candidates must build a robust Java class hierarchy to record and analyze patient temperature metrics. Starting from a basic specification, the interviewer progressively introduces new requirements regarding measurement units, different collection methods, and specific clinical fever thresholds. This exercise tests your ability to adapt object models dynamically without relying on complex algorithms. Unlock the complete breakdown, detailed requirements, and reference implementation by subscribing today.
asked January 2025OOP DesignObject Design
Oracle coding interview FAQ
- What coding questions does Oracle ask?
- 29 reported coding questions, most often on Design, Array, Hashmap, String, DFS.
- How hard is the Oracle coding interview?
- The reported coding questions average 2.8 out of 5: 6 at 2/5, 23 at 3/5.
- Are these Oracle coding questions recent?
- The most recent report is from July 2026, and 18 were reported within the last twelve months. Dates come from the interview reports themselves.