if it's big it's definitely not O(1)
post
I use an open wire shelf like this


And it works great as an ADHD friendly solution for me. Completely solved my clothes-all-over-the-floor problem, since I can't put them on my chair (I need my chair free for light therapy in the mornings)
If the chair is for light therapy do you use a chaise longue for heavy therapy?
Whats gonna be O(n^n) is the number of belts on you ass should you not start organizing now.
you momma: DEFRAG THIS ROOM!!
SSDs don't need defrag!
You want to think your pile is O(1) for retrieval, but it's actually O(n).
Meanwhile, the closet actually is O(1) for retrieval, but you don't want to spend the time for the bulk insert it requires beforehand.
- O(n) worst case
- O(log(n)) average case
- O(1) best case
- O(2) median case
That last one: it's a LIFO stack. You might not immediately wear what you threw on last night, but probably would wear the thong under that
Yeah I was going to say - unless your pile is ordered and indexed then it is not a cache and is more like random access.
Now if you store things in vertical stacks only accessible from above... Yeah I keep my clothes on the drying rack so I spend 0 time storing anything lol
Not using a chair to store semi dirty clothes is absurd. Wearing shorts two days in a row saves a lot of laundry.
it really only has a time complexity of O(1) for the first few items though. beyond that it increases to O(n) again
Well you're supposed to keep the structure an array, not let it become a stack.
all 16 comments