Store Open-Hours Query: Weekdays, Split Shifts and Overnight Windows in Java
Company: Apple
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Technical Screen
Overview: A progressive Java coding exercise that asks whether a store is open at a given time as its schedule grows from one daily window to selected weekdays, several windows per day, and overnight windows that cross midnight and wrap from Sunday to Monday. It tests time modeling, boundary handling, and keeping evolving code readable.
Read the full Apple Software Engineer interview experience this question came from