Back to problems

Smaller Angle Between Clock Hands

Algorithm · Amazon · Medium

Clock Hands Angle Medium · Topics · Company Tags · Hints Given the hour and minute reading of an analog clock, return the smaller of the two angles between the hour and minute hands (in degrees). The hour value follows a 24‑hour clock (0 to 23) and the minute value is an integer from 0 to 59. Because the hour hand moves continuously, its exact position depends on both the hour and the minute—it does not jump to the next hour mark until a full 60 minutes have passed. When the…

Checking your access…