Skip to content

Commit d3ab4a8

Browse files
authored
Update product_sum.py
1 parent 791deb4 commit d3ab4a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

data_structures/arrays/product_sum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def product_sum(arr: list[int | list], depth: int) -> int:
2525
Recursively calculates the product sum of an array.
2626
2727
The product sum of an array is defined as the sum of its elements multiplied by
28-
their respective depths. If an element is a list, its product sum is calculated
28+
their respective depths. If an element is a list, its product sum is calculated
2929
recursively by multiplying the sum of its elements with its depth plus one.
3030
3131
Args:

0 commit comments

Comments
 (0)