4 ms·
It's typically not counting comparisons, there are none when inserting elements. But sometimes it pretends that comparisons are O(1).
by SamReidHughes 10y ago
It's typically not counting comparisons, there are none when inserting elements. But sometimes it pretends that comparisons are O(1).