Comment on I also have one

<- View Parent
yetAnotherUser@discuss.tchncs.de ⁨1⁩ ⁨week⁩ ago

Nope. Assume the chair fits at most C clothes, with C being a constant.

The efficiency is at worst O© = O(C * 1) = C * O(1) = O(1).

Sure, the more clothes are on top, the longer it takes. But Big O notation is only useful if the N gets very big. And considering that the naximum amount of clothes is likely very small, it can be treated as O(1).

source
Sort:hotnewtop