StaticSETofIntsRank Method |
Returns either the index of the search key in the sorted array
(if the key is in the set) or -1 (if the key is not in the set).
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int Rank(
int key
)
Parameters
- key
- Type: SystemInt32
the search key
Return Value
Type:
Int32the number of keys in this set less than the key (if the key is in the set)
or -1 (if the key is not in the set).
See Also