Click or drag to resize
TrieSTValueLongestPrefixOf Method
Returns the string in the symbol table 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 symbol table that is the longest prefix of query or null if no such string
Exceptions
ExceptionCondition
ArgumentNullExceptionif query is null
See Also