Class Solution


  • public class Solution
    extends Object
    1344 - Angle Between Hands of a Clock\. Medium Given two numbers, `hour` and `minutes`, return _the smaller angle (in degrees) formed between the_ `hour` _and the_ `minute` _hand_. Answers within 10-5 of the actual value will be accepted as correct. **Example 1:** ![](https://assets.leetcode.com/uploads/2019/12/26/sample_1_1673.png) **Input:** hour = 12, minutes = 30 **Output:** 165 **Example 2:** ![](https://assets.leetcode.com/uploads/2019/12/26/sample_2_1673.png) **Input:** hour = 3, minutes = 30 **Output:** 75 **Example 3:** ![](https://assets.leetcode.com/uploads/2019/12/26/sample_3_1673.png) **Input:** hour = 3, minutes = 15 **Output:** 7.5 **Constraints:** * `1 <= hour <= 12` * `0 <= minutes <= 59`
    • Constructor Detail

      • Solution

        public Solution()
    • Method Detail

      • angleClock

        public double angleClock​(int hour,
                                 int minutes)