Software Engineer • Senior-Level
Software Engineer • Senior-Level
High QualityPractice Other Questions that Oracle Asked
Continue with targeted prep from Oracle's coding question bank and system design questions.
Interview Summary
The interviews covered arithmetic expression simplification, request rate limiting, object-oriented logger design, TinyURL system design, and behavioral questions.
Interview Details
Round 1 — Technical Phone Screen: Simplify Arithmetic Expressions
The coding question involved simplifying arithmetic expressions containing addition, subtraction, and parentheses. I was asked to remove the parentheses while correctly preserving the meaning of the original expression. The challenge was handling how signs change when parentheses are removed, particularly when a subtraction operator appears before a parenthesized expression. The problem focused on string parsing and correctly interpreting nested arithmetic expressions.
Round 2 — Onsite Coding: Multi-Window Request Rate Limiter
The first onsite coding question involved processing a sorted list of incoming request timestamps and calculating how many requests should be dropped because of rate limits. The system enforced three simultaneous limits:
| Time Window | Maximum Requests |
|---|---|
| 1 second | 3 |
| 10 seconds | 20 |
| 60 seconds | 60 |
The input timestamps were already sorted in chronological order. I needed to determine whether each request violated any of the three rate limits and return the total number of dropped requests.
Part 1 — Enforce Multiple Rate Limits
The interviewer wanted the implementation to enforce all three restrictions simultaneously. A request should be dropped if processing it would violate the one-second, ten-second, or sixty-second limit. The main challenge was correctly tracking how many requests fell within each relevant time window. Because the timestamps were sorted, the processing could follow the order in which requests arrived.
Part 2 — Count Dropped Requests Toward Future Limits
The most
Unlock Full Details
Create a free account to unlock this interview experience report.