Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/t-kalv/longest-increasing-subsequence

Longest Increasing Subsequence
https://github.com/t-kalv/longest-increasing-subsequence

algorithm

Last synced: 10 days ago
JSON representation

Longest Increasing Subsequence

Awesome Lists containing this project

README

        

# Longest-Increasing-Subsequence
Longest Increasing Subsequence

You are given an array of integers. Return the length of the longest increasing subsquence (does not have to be necessarily contiguous) in the array.

E.g. [0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15]

The following input should return 6.