4 ms·
Rotate right until there's nothing on the left, then step to the right child, append the former root to a doubly linked list, and repeat?
by cousin_it 5y ago
Rotate right until there's nothing on the left, then step to the right child, append the former root to a doubly linked list, and repeat?