Skip to content

Commit b153a11

Browse files
committed
Improved task
1 parent bb192dd commit b153a11

File tree

1 file changed

+0
-3
lines changed
  • src/main/java/g3601_3700/s3625_count_number_of_trapezoids_ii

1 file changed

+0
-3
lines changed

src/main/java/g3601_3700/s3625_count_number_of_trapezoids_ii/Solution.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ public int countTrapezoids(int[][] points) {
121121
parallelograms += (s * s - s2) / 2;
122122
}
123123
long res = trapezoidsRaw - parallelograms;
124-
if (res < 0) {
125-
res = 0;
126-
}
127124
return res > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) res;
128125
}
129126

0 commit comments

Comments
 (0)