Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 441 Bytes

File metadata and controls

11 lines (8 loc) · 441 Bytes

2024/06/23

This problem was asked by Microsoft.

Given a clock time in hh:mm format, determine, to the nearest degree, the angle between the hour and the minute hands.

Bonus: When, during the course of a day, will the angle be zero?

This problem is pretty easy implementation-wise, the trick stems from doing the math on paper first, and then implementing it in code