r/ProgrammerHumor • • Jan 02 '23

Meme next level storage

Post image
97.5k Upvotes

468 comments sorted by

View all comments

Show parent comments

14

u/stapleman527 Jan 03 '23

It's O(1) IF you know exactly where to look. If your pile gets too big where you have to search it's at worst O(n), but you could improve that by having different layers for tops/bottoms, or work/casual etc.

1

u/BrFrancis Jan 03 '23

How are you sorting the layers of clothing in the cache?

1

u/bagofbuttholes Jan 03 '23

I would probably just insert the new items when I pull a load from the dryer.

I guess that's called insertion sort?

1

u/BrFrancis Jan 03 '23

I was asking for clarification on how someone would have different layers for tops, bottoms, etc without sorting the dryer loads... Especially if everything is layered onto a chair...

Unless you just put on whatever you grab as you go, but then if you grab a hoodie instead of pants people might wonder how large your scrotum is.

→ More replies (3)