We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd989d4 commit 1271eb1Copy full SHA for 1271eb1
tests/Solution.java
@@ -5,7 +5,11 @@ public static void main(String... args) {
5
if (line.contains("w")) { // Invalid output
6
System.out.println(line);
7
} else if (line.contains("2")) { // Timeout
8
- while (true) Thread.sleep(10_000); // Shouldn't take more than 10s, but if it does, then loop.
+ try {
9
+ while (true) Thread.sleep(10_000); // Shouldn't take more than 10s, but if it does, then loop.
10
+ } catch (Exception e) {
11
+ throw new RuntimeException(e);
12
+ }
13
} else { // correct output
14
char[] chars = line.toCharArray();
15
for (int i = 0; i < chars.length / 2; ++i) {
0 commit comments