File tree 1 file changed +0
-30
lines changed
src/main/java/com/fishercoder/solutions
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 1
1
package com .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
public class _1344 {
34
4
public static class Solution1 {
35
5
public double angleClock (int hour , int minutes ) {
You can’t perform that action at this time.
0 commit comments