[]
Resets the tree values and state. All the values are set to Integer.MAX_VALUE and the states to 0.
public virtual void reset()
Resets the tree values and state. The values are set to the values in 'val'. The states are all set to 0.
public virtual void reset(int[] val)
Type | Name | Description |
---|---|---|
int[] | val | The new values for the leafs, in lexicographical order. |