Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day 30 ques 1 Number of Longest Increasing Subsequence #617

Open
prerna-rn opened this issue Jan 27, 2024 · 3 comments
Open

Day 30 ques 1 Number of Longest Increasing Subsequence #617

prerna-rn opened this issue Jan 27, 2024 · 3 comments

Comments

@prerna-rn
Copy link
Contributor

Given an integer array nums, return the number of longest increasing subsequences.

Notice that the sequence has to be strictly increasing.

Example 1:

Input: nums = [1,3,5,4,7]
Output: 2
Explanation: The two longest increasing subsequences are [1, 3, 4, 7] and [1, 3, 5, 7].

Example 2:

Input: nums = [2,2,2,2,2]
Output: 5
Explanation: The length of the longest increasing subsequence is 1, and there are 5 increasing subsequences of length 1, so output 5.

Constraints:

1 <= nums.length <= 2000
-10^6 <= nums[i] <= 10^6

https://leetcode.com/problems/number-of-longest-increasing-subsequence/description/

@Tech-neophyte
Copy link
Contributor

Please assign this ques to me @bh-g

@Anomasingh
Copy link
Contributor

Anomasingh commented Jan 27, 2024

Please assign this question to me @bh-g

@avanimathur
Copy link
Contributor

Please assign it to me @bh-g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants