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 摘要。