copy method

TreapOfString copy()
override

Returns a copy of this treap.

This is an O(1) operation as it only copies the root reference.

Implementation

TreapOfString copy() => TreapOfString._(base.copy());