Quick Overview

Find the smaller angle between analog clock hands for a given hour and minute. Account for the hour hand's continuous half-degree movement per minute, normalize 12 to zero, and compare the direct separation with its complement around the clock.

Find the Smaller Angle Between Clock Hands

Company: Amazon

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Find the smaller angle between analog clock hands for a given hour and minute. Account for the hour hand's continuous half-degree movement per minute, normalize 12 to zero, and compare the direct separation with its complement around the clock.

Read the full Amazon Software Engineer interview experience this question came from

Loading…