Math, asked by devking7051, 11 months ago

Find the triplet in an array whose product is equal to a given number.

Answers

Answered by gauravarduino
1

Step-by-step explanation:

Count number of triplets with product equal to given number | Set 2. Sort the input array. Fix the first element as A[i] where i is from 0 to array size – 2. After fixing the first element of triplet, find the other two elements using 2 pointer technique.

Similar questions