132. the angle between hour hand and minute hand of a clock
Share
medium - accepted / - tried
Given a time string in format HH:mm
, please return the angle between hour hand and minute hand.
You should return rounded integer representing the smaller angle in degrees.
angle('12:00')// 0angle('23:30')// 165