Click or drag to resize
BinarySearch Methods

The BinarySearch type exposes the following members.

Methods
  NameDescription
Public methodStatic memberIndexOf
Returns the index of the specified key in the specified array.
Public methodStatic memberMainTest

Demo test for the BinarySearch data type.

Reads in a sequence of integers from the whitelist file, specified as a command-line argument; reads in integers from standard input; prints to standard output those integers that do NOT appear in the file.

Public methodStatic memberRank
Returns the index of the specified key in the specified array. This function is poorly named because it does not give the Rank if the array has duplicate keys or if the key is not in the array.
Top
See Also