JavaScript icon indicating copy to clipboard operation
JavaScript copied to clipboard

LONGEST INCREASING SUBSEQUENCE

Open akshitagupta15june opened this issue 4 years ago • 6 comments

Find the length of the longest subsequence in a given array A of integers such that all elements of the subsequence are sorted in strictly ascending order. Input Format

The first line contains a single integer n. Next line contains n space separated numbers denoting the elements of the array. Constraints

0 < n< 105 0 < Ai < 105 Output Format

Print a single line containing a single integer denoting the length of the longest increasing subsequence. Sample Input

6 50 3 10 7 40 80

Sample Output

4

Explanation

The longest subsequence in test case is - 3,7,40,80

akshitagupta15june avatar Sep 26 '20 04:09 akshitagupta15june

I would like to work on this as a part of hacktober fest 2020. Can you please assign it to me.

dolonmandal avatar Sep 26 '20 12:09 dolonmandal

Yes Ofcourse

akshitagupta15june avatar Sep 26 '20 12:09 akshitagupta15june

should it be strictly javascript or can I use c++?

dolonmandal avatar Sep 26 '20 12:09 dolonmandal

If you want to add in cpp then please go to cpp repo Where there is the same issue raised

akshitagupta15june avatar Sep 26 '20 12:09 akshitagupta15june

i can do this using java script!!

can you pls assign it to me for the hacktober fest 2020???

raman-thakur avatar Sep 26 '20 13:09 raman-thakur

ok assigning

akshitagupta15june avatar Sep 26 '20 17:09 akshitagupta15june