akshitagit / akshitagit/JavaScript

LONGEST INCREASING SUBSEQUENCE

Aberta
#40 6 comentários 0 reações 1 responsável Reivindicada por @raman-thakur Ver no GitHub
good first issue Hacktoberfest hacktoberfest2020 INTERVIEW-QUESTION Javascript Opensource
Linguagem predominante
JavaScript
Estrelas
90
Forks
106
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.