Longest Increasing Subsequence (LIS): Find the length of the longest subsequence of a given sequence such that all elements of the subsequence are sorted in increasing order.

Don`t copy text!