Click or drag to resize
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: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public int Rank(
	int key
)

Parameters

key
Type: SystemInt32
the search key

Return Value

Type: Int32
the 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