in reply to Longest Increasing Subset

Show your code, we can correct it for you.