Longest increasing subsequence -> Dynamic Programming (www.infoarena.ro)