public static void main(String args[]){
        BitonicSequence bs = new BitonicSequence();
        int[] arr = {1,4,3,7,2,1,8,11,13,0};
        int r = bs.longestSequence(arr);
        System.out.print(r);
    
    }
http://www.geeksforgeeks.org/dynamic-programming-set-15-longest-bitonic-subsequence/
src/com/interview/dynamic/BitonicSequence.java