LongestCommonSubstringLcs Method |
Returns the longest common string of the two specified strings.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static string Lcs(
string s,
string t
)
Parameters
- s
- Type: SystemString
one string - t
- Type: SystemString
the other string
Return Value
Type:
Stringthe longest common string that appears as a substring
in both
s and
t; the empty string
if no such string
See Also