132. the angle between hour hand and minute hand of a clock

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')
// 0

angle('23:30')
// 165

What is time & space complexity of your approach?

(1)
(47)