Count number of triplets with product equal to given number
Given an array of distinct integers(considering only positive numbers) and a number âmâ, find the number of triplets with product equal to âmâ. Examples: Input : arr[] = { 1, 4, 6, 2, 3, 8} m = 24Output : 3{1, 4, 6} {1, 3, 8} {4, 2, 3} Input : arr[] = { 0, 4, 6, 2, 3, 8} m = 18Output : 0 Asked in :