Driver code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT n = 7 NEW_LINE arr = [ 1 , 9 , 3 , 10 , 4 , 20 , 2 ] NEW_LINE print " Length ▁ of ▁ the ▁ Longest ▁ contiguous ▁ subsequence ▁ is ▁ " , NEW_LINE print findLongestConseqSubseq ( arr , n ) NEW_LINE DEDENT