package hackerrank;

import java.util.Scanner;

/**
 * https://www.hackerrank.com/challenges/fair-rations
 */
public class FairRations {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // TODO
    }
}

@@ -130,16 +130,90 @@
 tions %7B%0A
+    private static void fairRations(int%5B%5D array) %7B%0A        // TODO%0A    %7D%0A%0A
     publ
@@ -298,28 +298,189 @@
 n);%0A        
-// TODO
+int n = in.nextInt();%0A        int%5B%5D array = new int%5Bn%5D;%0A        for (int i = 0; i %3C n; i++) %7B%0A            array%5Bi%5D = in.nextInt();%0A        %7D%0A        fairRations(array);
 %0A    %7D%0A%7D%0A

Update Fair Rations