Dsa
Math
Medium
Clock Angle Difference
In a clock, the hour hand and minute hand overlap at certain times throughout the day. Your task is to find the angle between the hour and minute hand given a specific time in the format HH:MM. The angle should be reported as the smaller angle between the two hands. The input consists of a string representing the time in HH:MM format. The output should be the angle rounded to two decimal places.
Example Input:
03:30
Example Output:
165.00
Key concepts
geometrymathtime
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now