##
Minimum possible sum of array B such that A_{i}B_{i} = A_{j}B_{j} for all 1 ≤ i < j ≤ N

Given an array a[] of size N. The task is to find the minimum possible sum of the elements of array b[] such that a[i]… Read More »