Very Similar to LIS


#1

Those who’re stuck, if you have tried Longest Increasing Subsequence problem, this problem can be solved in a similar manner.