Calculate and show here a [[wp:Longest increasing subsequence|longest increasing subsequence]] of the list:
:
And of the list:
:
Note that a list may have more than one subsequence that is of the maximum length.
;Ref:
# [http://www.youtube.com/watch?v=4fQJGoeW5VE Dynamic Programming #1: Longest Increasing Subsequence] on YouTube
# An efficient solution can be based on [[wp:Patience sorting|Patience sorting]].