Longest Progressive Sequence | TCS NQT coding problem (Solved)

Published: 04 March 2021
on channel: Go-Mind
689
15

Hey viewers,
In this video, we will see:
Longest Progressive Sequence - Write a program to find the longest progressive sequence arranged in ascending order.

Input Format:
The first line contains a length of the sequence
The second line contains a sequence delimited by white spaces

Output Format:
Longest progressive sequence.

Example :

1 1 2 2 is a progressive sequence but not 1 2 1

Sample Input:
5
1 2 1 2 2

Sample Output:
1 2 2


Watch video Longest Progressive Sequence | TCS NQT coding problem (Solved) online, duration hours minute second in high quality that is uploaded to the channel Go-Mind 04 March 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 689 times and liked it 15 visitors.