Skip to content

Commit 20be24e

Browse files
authored
Update Solution.java
1 parent 2c9e60e commit 20be24e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

solution/0724.Find Pivot Index/Solution.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
class Solution {
22
public int pivotIndex(int[] nums) {
3-
if (nums == null || nums.length < 3) {
4-
return -1;
5-
}
63
int sum = Arrays.stream(nums).sum();
74
int s = 0;
85
for (int i = 0; i < nums.length; ++i) {

0 commit comments

Comments
 (0)