Tap here to switch tabs
Problem
Submissions

Problem: Angle Between Hands of a Clock

med
30 min
Try to solve the Angle Between Hands of a Clock problem.

Statement

Given two integers hour and minutes representing a time on an analog clock, return the smaller angle in degrees between the hour hand and the minute hand.

The returned value may be a non integer.

Constraints:

  • 1≤1 \leq hour ≤12\leq 12

  • 0≤0 \leq minutes ≤59\leq 59

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Angle Between Hands of a Clock

med
30 min
Try to solve the Angle Between Hands of a Clock problem.

Statement

Given two integers hour and minutes representing a time on an analog clock, return the smaller angle in degrees between the hour hand and the minute hand.

The returned value may be a non integer.

Constraints:

  • 1≤1 \leq hour ≤12\leq 12

  • 0≤0 \leq minutes ≤59\leq 59