|
1 | 1 | packagecom.fishercoder.solutions; |
2 | 2 |
|
3 | | -/** |
4 | | - * 1344. Angle Between Hands of a Clock |
5 | | - * |
6 | | - * Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. |
7 | | - * |
8 | | - * Example 1: |
9 | | - * Input: hour = 12, minutes = 30 |
10 | | - * Output: 165 |
11 | | - * |
12 | | - * Example 2: |
13 | | - * Input: hour = 3, minutes = 30 |
14 | | - * Output: 75 |
15 | | - * |
16 | | - * Example 3: |
17 | | - * Input: hour = 3, minutes = 15 |
18 | | - * Output: 7.5 |
19 | | - * |
20 | | - * Example 4: |
21 | | - * Input: hour = 4, minutes = 50 |
22 | | - * Output: 155 |
23 | | - * |
24 | | - * Example 5: |
25 | | - * Input: hour = 12, minutes = 0 |
26 | | - * Output: 0 |
27 | | - * |
28 | | - * Constraints: |
29 | | - * 1 <= hour <= 12 |
30 | | - * 0 <= minutes <= 59 |
31 | | - * Answers within 10^-5 of the actual value will be accepted as correct. |
32 | | - * */ |
33 | 3 | publicclass_1344 { |
34 | 4 | publicstaticclassSolution1 { |
35 | 5 | publicdoubleangleClock(inthour,intminutes) { |
|