in reply to Puzzle: Longest Increasing Sequence

Hmm, sounds like a homework problem.

I'll give you a hint. Look up Patience Sorting.

-Mark

  • Comment on Re: Puzzle: Longest Increasing Sequence