← Questions
Is the store open? Hours with split shifts and overnight windows
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Write a check that answers whether a store is open at a given moment, in Java. The schedule starts simple and gets richer step by step, and every earlier query must keep working as it grows:
- Opening hours that differ by day of the week.
- Days with more than one opening window (a split shift, closed over lunch).
- Windows that run past midnight into the next day.
Keep the model and the code readable; at the end expect to talk about how you structured it and what you would change.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
