Store Open-Hours Query: Weekdays, Split Shifts and Overnight Windows in Java

Quick 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.

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

Apple logo
Apple
Oct 7, 2026
easySoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
40
0
Loading...