From fbf751d4c4d359c41065f184b6f523ee6d93bb84 Mon Sep 17 00:00:00 2001 From: ROSHAN Date: Thu, 10 Oct 2024 08:46:48 +0530 Subject: [PATCH] corrected an critical bug --- data_structures/array/product_of_array_except_self.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/array/product_of_array_except_self.py b/data_structures/array/product_of_array_except_self.py index 3ab5bf0c..234aedd9 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