Skip to content

Conversation

AvinashYerra
Copy link

Added Longest Increasing Subsequence code
The function then iterates through each element in the input array, comparing it with all preceding elements.
If the current element is greater than the preceding element and the LIS length ending at the current element is less than the LIS length ending at the preceding element plus one, the LIS length for the current element is updated.

fixes #739

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

Successfully merging this pull request may close these issues.

Longest increasing subsequence
1 participant