Skip to content

Files

Latest commit

efb0e37 · Feb 7, 2019

History

History

Longest Common Increasing Subsequence

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 7, 2019
Feb 7, 2019

Given two arrays, find length of the longest common increasing subsequence [LCIS] and print one of such sequences (multiple sequences may exist)

arr1[] = {3, 4, 9, 1} and
arr2[] = {5, 3, 8, 9, 10, 2, 1}

Our answer would be {3, 9} as this is the longest common subsequence which is increasing also.