D
desktop
In the C++ standard table 69 erase(k) is said to take log(size()) +
count(k).
If there are 4 keys satisfying k we have that count(k) = 4 so why is the
complexity not count(k)*log(size()), since we have to erase count(k)
elements?
Where I assume size() is equal to the number of elements in the tree.
count(k).
If there are 4 keys satisfying k we have that count(k) = 4 so why is the
complexity not count(k)*log(size()), since we have to erase count(k)
elements?
Where I assume size() is equal to the number of elements in the tree.