public static void main(String args[]) {
        int input1[] = {1, 5, 10, 20, 40, 80};
        int input2[] = {6, 7, 20, 80, 100};
        int input3[] = {3, 4, 15, 20, 30, 70, 80, 120};

        CommonThreeSortedArray cts = new CommonThreeSortedArray();
        List<Integer> result = cts.commonElements(input1, input2, input3);
        result.forEach(i -> System.out.print(i + " "));
    }
Date 01/01/2016
@author Tushar Roy

Given 3 sorted array find common elements in these 3 sorted array.

Time complexity is O(m + n + k)

http://www.geeksforgeeks.org/find-common-elements-three-sorted-arrays/
src/com/interview/array/CommonThreeSortedArray.java