Skip to content

Commit 35a088a

Browse files
authored
Fix Python syntax error
1 parent db906af commit 35a088a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data_structures/array/pivot_index.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ def pivot(arr):
22
s = sum(arr)
33
left_sum = 0
44
for i, x in enumerate(arr):
5-
if left_sum = (s - x - left_sum):
5+
if left_sum == (s - x - left_sum):
66
return i
77
left_sum += x
88
return -1
9-
10-

0 commit comments

Comments
 (0)