Skip to content

Commit d534b86

Browse files
2 parents d092a42 + d6b40b3 commit d534b86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎greedy_methods/minimize_deviation_in_array.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ def minimum_deviation(self, nums) -> int:
4242

4343
while h and h[0] % 2 == 0:
4444
n = heappop(h) // 2
45-
heappush(h, n)
45+
heappush(h, n)
4646
temp_min = min(temp_min, -n)
4747
temp_mindeviation = min(temp_mindeviation, -h[0] - temp_min)
48-
48+
4949
return temp_mindeviation
5050

5151

0 commit comments

Comments
 (0)