Find the length of the longest common subsequence between two strings
Find the length of the longest increasing subsequence in an array