Text this: Linear-time algorithm for sliding tokens on trees.