Longest Common Subsequence

Asked at Roku · Coding Questions · Difficulty: Medium

Given two strings `text1` and `text2`, return the length of their **longest common subsequence**. If there is no common subsequence, return `0`.

Loading the problem…