2 ms·I think you can augment simple trees to support those operations.by adrianN 8y agoI think you can augment simple trees to support those operations.