4 ms·
Yes actually. Both c++ and java have red black trees. In c++ it's std::set, in java it's TreeSet. BST supports log(n) min/max/inserts/removes (among other stuf
by ghj 6y ago
Yes actually. Both c++ and java have red black trees. In c++ it's std::set, in java it's TreeSet.
BST supports log(n) min/max/inserts/removes (among other stuff).