0

Help me to solve this one

You have been given an integer array/list (ARR) of size N. You have to return an array/list PRODUCT such that PRODUCT[i] is equal to the product of all the elements of ARR except ARR[i] Sample Input 1 : 2 3 1 2 3 3 5 2 2 Sample Output 1 : 6 3 2 4 10 10 Explanation For Sample Output 1 : Test case 1 : Given array = {1, 2, 3] Required array = [2 * 3, 1 * 3, 1 * 2] = [6, 3, 2] Test case 2 : Given array = {5, 2, 2] Required array = [2 * 2, 5 * 2, 5 * 2] = [4, 10, 10]

22nd Sep 2021, 4:46 AM
Shahir
Shahir - avatar
2 Answers
+ 2
We don't see your code/ attempt. Please, share it. After that, ask what your problem is clearly. So, we can help easily. Thanks for understanding. Happy coding!
22nd Sep 2021, 4:57 AM
mesarthim
mesarthim - avatar
+ 1
Hey Shahir its great if you show your efforts towards the problem you are facing
22nd Sep 2021, 5:50 AM
Mohd Aadil
Mohd Aadil - avatar