diff --git a/data_structures/array/product_of_array_except_self.py b/data_structures/array/product_of_array_except_self.py index 3ab5bf0..234aedd 100644 --- a/data_structures/array/product_of_array_except_self.py +++ b/data_structures/array/product_of_array_except_self.py @@ -5,7 +5,7 @@ def product(arr): for i in range(len(arr)): prods[i] = temp - temp = temp * prods[i] + temp = temp * arr[i] temp = 1