The "Angle Between Hands of a Clock interview question" is a mathematical geometry problem. Given a time in hour and minutes, you need to calculate the smaller angle between the hour hand and the minute hand. This requires understanding that the hour hand doesn't stay fixed at a number—it moves slightly as the minutes pass.
Apple and Amazon use the "Angle Between Hands of a Clock coding problem" as a logic and precision test. It's a simple problem that reveals if a candidate can handle floating-point arithmetic and "Math interview pattern" logic, such as normalization (e.g., ensuring the result is the smaller angle and handling the 360-degree wrap-around).
The solution relies on Degrees per Unit calculations.
Time: 3:30
Always double-check your units. When a problem involves a circle, keep the total (360 degrees) in mind. This type of "logic teaser" is common in early-round interviews to check for basic quantitative reasoning.
| Title | Difficulty | Topics | LeetCode |
|---|---|---|---|
| Count Total Number of Colored Cells | Medium | Solve | |
| Factorial Trailing Zeroes | Medium | Solve | |
| Alice and Bob Playing Flower Game | Medium | Solve | |
| Check if Number is a Sum of Powers of Three | Medium | Solve | |
| Minimum Sensors to Cover Grid | Medium | Solve |