akshitagit / akshitagit/JavaScript

LONGEST INCREASING SUBSEQUENCE

未關閉
#40 6 則留言 0 個 reaction 已指派 1 人 已被 @raman-thakur 認領 在 GitHub 檢視
good first issue Hacktoberfest hacktoberfest2020 INTERVIEW-QUESTION Javascript Opensource
主要語言
JavaScript
星號
90
分支
106
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。