Click or drag to resize
TrieSETLongestPrefixOf Method
Returns the string in the set that is the longest prefix of query, or null, if no such string.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public string LongestPrefixOf(
	string query
)

Parameters

query
Type: SystemString
the query string

Return Value

Type: String
the string in the set that is the longest prefix of query, or null if no such string
Exceptions
ExceptionCondition
NullReferenceExceptionif query is null
See Also