Professional Documents
Culture Documents
Asgn 03
Asgn 03
CS14950
Instructions:
1. This paper has 4 questions. Attempt all.
2. You must submit individual code files for every question. Your files should be
named as follow:
<Your_Roll_No.>_CS14950_<AsgnNo>_<Question_Number>.py
For example: 21PY124_CS14950_Asgn03_Q2a.py
3. You must submit the code file in the following link:
www.CS14950_A1.com
Topic: Arrays
Question 01:[10+2(Bonus)]
Given a list of integers, L find the length of the largest strictly increasing
subsequence.
Input: [1,2,5,89,5,6,1,4,5,8,6,2,5,7]
Output: 4
[Bonus/Optional]For the same question also print the subsequence.
Input: [1,7,5,89,5,6,1,4,5,8,23,2,5,7]
Output: [1,4,5,8,23]