Minimum Operations on a Cyclic Clock
Given a clock with two time values, calculate the minimum number of operations to move from one time to another, where the clock can move both forward and backward and values wrap around at the clock boundary.
Asked at:
eBay
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late July, 2026
eBay
Senior
Given a clock and two time values, determine the minimum number of operations required to move from one time to another. The clock can be moved both forward and backward, and values wrap around at the clock boundary. The solution should correctly handle wrap-around cases and determine the minimum movement between the two values.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.