Whiteboarding Challenge

Angle on a clock face

  • Given a string representing the time on a digital clock (e.g., "12:25", "3:27") write a method to determine the angle between the hands of an analog clock. Assume that both the hour and the minute hands move every minute by the appropriate amount.