Skip to content

Commit 29e4ff2

Browse files
[LEET-3170] fix build
1 parent 719e69d commit 29e4ff2

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/main/java/com/fishercoder/solutions/fourththousand/_3270.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ public int generateKey(int num1, int num2, int num3) {
99
padded[2] = String.format("%04d", num3);
1010
StringBuilder sb = new StringBuilder();
1111
for (int i = 0; i < padded[0].length(); i++) {
12-
sb.append(Math.min(Character.getNumericValue(padded[0].charAt(i)), Math.min(Character.getNumericValue(padded[1].charAt(i)), Character.getNumericValue(padded[2].charAt(i)))));
12+
sb.append(
13+
Math.min(
14+
Character.getNumericValue(padded[0].charAt(i)),
15+
Math.min(
16+
Character.getNumericValue(padded[1].charAt(i)),
17+
Character.getNumericValue(padded[2].charAt(i)))));
1318
}
1419
return Integer.parseInt(sb.toString());
1520
}
16-
1721
}
1822
}

src/test/java/com/fishercoder/fourththousand/_3270Test.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.fishercoder.fourththousand;
22

3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
35
import com.fishercoder.solutions.fourththousand._3270;
46
import org.junit.jupiter.api.BeforeEach;
57
import org.junit.jupiter.api.Test;
68

7-
import static org.junit.jupiter.api.Assertions.assertEquals;
8-
99
public class _3270Test {
1010
private _3270.Solution1 solution1;
1111

@@ -18,5 +18,4 @@ public void setup() {
1818
public void test1() {
1919
assertEquals(0, solution1.generateKey(1, 10, 1000));
2020
}
21-
2221
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy