Compute length of longest increasing subsequence | ByteDance