Angle Between the Hands of a Clock

Understand and solve the interview question "Angle Between the Hands of a Clock."


Given two numbers, hour and minutes we will return the smaller angle (in degrees) formed between the hour and the minute hands on a clock.

Let’s look at some examples to better understand this:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.