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

JavaScriptU-NEXT
Is this helpful ?

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

Let's try to solve this problem within 5 mintues.

Discuss(18)