Click or drag to resize
LongestCommonSubstringLcs Method
Returns the longest common string of the two specified strings.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static string Lcs(
	string s,
	string t
)

Parameters

s
Type: SystemString
one string
t
Type: SystemString
the other string

Return Value

Type: String
the longest common string that appears as a substring in both s and t; the empty string if no such string
See Also