3 ms·
However, while it's true that your product is O(1) even in the worst case, when you look closer it's actually O(1) + O(1) even in the best case, as you have to
by schmorptron 6y ago
However, while it's true that your product is O(1) even in the worst case, when you look closer it's actually O(1) + O(1) even in the best case, as you have to open the Shitdrawer to even get the the most recently used item. Do you have any solution to this?
- sdenton4 6y agoShitfloor?
- james_pm 6y agoMy kids already invented that. If you want theirs, come ask. Includes unlimited eye rolls and muttering.
- ThePadawan 6y agoI would recommend not looking closer!
- drran 6y agoO(1)+O(1) is just O(11). Not a big problem.