package hackerrank;

import java.util.Scanner;

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

@@ -159,109 +159,475 @@
    p
-ublic static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        // TODO:
+rivate static int flatlandSpaceStations(int n, int%5B%5D stations) %7B%0A        int max = 0;%0A        // TODO%0A        return max;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int n = in.nextInt();%0A        int m = in.nextInt();%0A        int%5B%5D stations = new int%5Bn%5D;%0A        for (int i = 0; i %3C m; i++) %7B%0A            stations%5Bi%5D = in.nextInt();%0A        %7D%0A        System.out.println(flatlandSpaceStations(n, stations));
 %0A   

Update Flatland Space Stations