We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
public static long minimumLoss(long[] price, int size) {
long min = Long.MAX_VALUE;
long temp;
for (int i = 0; i < size-1; i++) {
for (int k = i + 1; k < size; k++) {
if(price[i]
Minimum Loss
You are viewing a single comment's thread. Return to all comments →
public static long minimumLoss(long[] price, int size) { long min = Long.MAX_VALUE; long temp; for (int i = 0; i < size-1; i++) { for (int k = i + 1; k < size; k++) { if(price[i]