Splays a tree to move the element with the given value to the root
This is the core operation of splay trees. It uses three types of rotations based on the standard splay tree terminology:
the value to splay to the root
the tree to splay
the tree with target at the root (or closest node if target not found)
Splays a tree to move the element with the given value to the root
This is the core operation of splay trees. It uses three types of rotations based on the standard splay tree terminology: