mazey
    Preparing search index...

    Function longestComSubsequence

    • Compute the length of the longest common subsequence of two strings.

      Usage:

      import { longestComSubsequence } from "mazey";

      const ret = longestComSubsequence("fish", "finish");
      console.log(ret);

      Output:

      4
      

      Parameters

      • aStr: string

        The first string.

      • bStr: string

        The second string.

      Returns number

      The length of the longest common subsequence.