Angle Between Hands of a Clock

Given an integer hour from 1 to 12 and minutes from 0 to 59, return the smaller angle in degrees between the hour hand and minute hand of an analog clock.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: