You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/fishercoder/solutions/_401.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,8 @@ public List<String> readBinaryWatch(int num) {
28
28
List<String> times = newArrayList<>();
29
29
for (inth = 0; h < 12; h++) {
30
30
for (intm = 0; m < 60; m++) {
31
-
if (Integer.bitCount(h*60 + m) == num) times.add(String.format("%d:%02d", h, m));//%02 means to pad this two-digit decimal number on the left with zeroes
31
+
if (Integer.bitCount(h * 60 + m) == num)
32
+
times.add(String.format("%d:%02d", h, m));//%02 means to pad this two-digit decimal number on the left with zeroes
0 commit comments