Problem Description

Find length of the Longest Increasing Subsequence (not necessarily contiguous).

Input Format

One line: n then n integers.

Output Format

One integer length.

Sample Test Case

Input:
8 10 9 2 5 3 7 101 18
Output:
4

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next