DP_LCIS_print.java
public static void main(String[] args)
    {
        int arr1[] = {3, 4, 9, 1};
        int arr2[] = {5, 3, 8, 9, 10, 2, 1};
 
        int n = arr1.length;
        int m = arr2.length;
 
        System.out.println("\nLength of LCIS is "+
                          LCIS(arr1, n, arr2, m));
    }
/* Driver program to test above function */
Driver program to test above function
Driver program to test above function
public static void main(String[] args)
    {
        int arr1[] = {3, 4, 9, 1};
        int arr2[] = {5, 3, 8, 9, 10, 2, 1};
        int n = arr1.length;
        int m = arr2.length;
        System.out.println("\nLength of LCIS is "+
                          LCIS(arr1, n, arr2, m));
    }
public static void main ( String [ ] args ) { int arr1 [ ] = { 3 , 4 , 9 , 1 } ; int arr2 [ ] = { 5 , 3 , 8 , 9 , 10 , 2 , 1 } ; int n = arr1 . length ; int m = arr2 . length ; System . out . println ( "\nLength of LCIS is " + LCIS ( arr1 , n , arr2 , m ) ) ; }
Driver program to test above function
Driver program to test above function