Skip to content

Commit 3fe9825

Browse files
authored
Adding url for more details
1 parent 8036b6f commit 3fe9825

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

matrix/matrix_equalization.py

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ def array_equalization(vector: list[int], k: int) -> int:
88
to a common value, by making the minimal number of
99
"updates" under the constraint of a step size (k)
1010
11+
details: https://www.geeksforgeeks.org/equalize-array-using-array-elements/
12+
1113
>>> array_equalization([1, 1, 6, 2, 4, 6, 5, 1, 7, 2, 2, 1, 7, 2, 2], 4)
1214
4
1315
>>> array_equalization([22, 81, 88, 71, 22, 81, 632, 81, 81, 22, 92], 2)

0 commit comments

Comments
 (0)