Skip to content

Commit 2fb09b3

Browse files
min deviation
1 parent 65b11d4 commit 2fb09b3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎greedy_methods/minimize_deviation_in_array.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def minimum_deviation(self, nums) -> int:
3333
3434
Examples:
3535
>>> solution = Solution()
36-
>>> solution.minimumDeviation([1, 2, 3, 4])
36+
>>> solution.minimum_deviation([1, 2, 3, 4])
3737
1
38-
>>> solution.minimumDeviation([5, 10, 20, 30, 30])
38+
>>> solution.minimum_deviation([5, 10, 20, 30, 30])
3939
5
40-
>>> solution.minimumDeviation([8, 8, 8, 8, 8])
40+
>>> solution.minimum_deviation([8, 8, 8, 8, 8])
4141
0
4242
"""
4343
heapque = [-n * 2 if n % 2 else -n for n in nums]

0 commit comments

Comments
 (0)