public static void main(String args[]){
        int input[][] ={{1,5,11,21},
                        {6,8,12,22},
                        {7,9,15,26},
                        {11,13,18,28}};
        KthLargestInRowiseColumnWiseSorted2DArray kl = new KthLargestInRowiseColumnWiseSorted2DArray();
        System.out.println(kl.kthLargest(input, 10));
    }
Kth largest in rowwise and column wise sorted array
http://www.geeksforgeeks.org/kth-smallest-element-in-a-row-wise-and-column-wise-sorted-2d-array-set-1/
src/com/interview/misc/KthLargestInRowiseColumnWiseSorted2DArray.java