akshitagit / akshitagit/JavaScript

LONGEST INCREASING SUBSEQUENCE

Đang mở
#40 6 bình luận 0 reaction 1 người được giao Được @raman-thakur nhận Xem trên GitHub
good first issue Hacktoberfest hacktoberfest2020 INTERVIEW-QUESTION Javascript Opensource
Ngôn ngữ chính
JavaScript
Star
90
Fork
106
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.