3 ms·
There's no "worse case" for insertion if the api just says list.insert(item). The half-trollish point being that nothing is "obvious". Indeed, list insertion i
by avip 9y ago
There's no "worse case" for insertion if the api just says list.insert(item).
The half-trollish point being that nothing is "obvious". Indeed, list insertion is O(1) in popular programming languages s.a python or JS.