Problem Description

Read n integers. Output length of longest increasing subsequence.

Input Format

First line n. Second line 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