Click or drag to resize
IndexMaxPQKeyInsert Method
Associate key with index i.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void Insert(
	int i,
	Key key
)

Parameters

i
Type: SystemInt32
an index
key
Type: Key
the key to associate with index i
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless 0 <= i < maxN
ArgumentExceptionif there already is an item associated with index i
See Also