Returns the indices corresponding to the argument characters.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int[] ToIndices(
string s
)
Parameters
- s
- Type: SystemString
the characters
Return Value
Type:
Int32the indices corresponding to the characters
s
ExceptionsException | Condition |
---|
ArgumentException | unless every character in s
is a character in this alphabet |
See Also