Skip to content

Commit a56c625

Browse files
fix build
1 parent aec0cb3 commit a56c625

File tree

1 file changed

+1
-3
lines changed
  • src/main/java/com/fishercoder/solutions/fourththousand

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ public String triangleType(int[] nums) {
1717
}
1818

1919
private boolean validTriangle(int[] nums) {
20-
return nums[0] + nums[1] > nums[2] &&
21-
nums[1] + nums[2] > nums[0] &&
22-
nums[0] + nums[2] > nums[1];
20+
return nums[0] + nums[1] > nums[2] && nums[1] + nums[2] > nums[0] && nums[0] + nums[2] > nums[1];
2321
}
2422
}
2523
}

0 commit comments

Comments
 (0)