Given an un-ordered set, such as: 1,2,3,4,0,5,6,7,-1,-2,-3;
Find the longest ascending sub set in it.
The expected result for the above example set is : 1,2,3,4,5,6,7
How to implement it?
This problem is called Longest increasing subsequence and you can read about it here.