Back to Practice
#0192
Clock Angle at 3:20
MediumAptitude25 min20 XP
Problem
Find the smaller angle between the hour and minute hands at 3:20.
Why This Matters
Clock problems become easy once you remember the hour hand also moves between hour marks.
Examples
Example 1
Input3:20
Output20 degrees
Minute hand is at 120 degrees. Hour hand is at 100 degrees. Difference is 20 degrees.
Constraints
- Return the exact requested result.
- Handle common edge cases.
- Keep the solution readable before optimizing.
CodeReasoning
Find the smaller angle between the hour and minute hands at 3:20.
Visible browser tests run here when available.
Testcases1 visible / 3 hidden categories
Core example
Input3:20
Expected20 degrees
Minute hand is at 120 degrees. Hour hand is at 100 degrees. Difference is 20 degrees.
Hidden Test Categories
minimal inputrepeated valueslarger realistic input