Compute the length of the longest common substring of two strings.
Usage:
import { longestComSubstring } from "mazey";const ret = longestComSubstring("fish", "finish");console.log(ret); Copy
import { longestComSubstring } from "mazey";const ret = longestComSubstring("fish", "finish");console.log(ret);
Output:
3 Copy
3
String
Length
Compute the length of the longest common substring of two strings.
Usage:
Output: