Post

folded my clothes and put them in a pile and deadass thought "this is just like a data structure" not a stack, not a queue. a secret third thing. a laundry pile.

0 reposts21 likes

d̶a̶t̶a̶ ̶w̶a̶r̶e̶h̶o̶u̶s̶e̶ d̶a̶t̶a̶ ̶l̶a̶k̶e̶ data laundry pile

last in, any out. O(1) access. O(n) build. Amortized table doubling brings insert to O(1) — might need to switch locations or add another pile.

Being fuckin' awesome, that's what. Better than my data structure, the clean laundry heap. O(0) to build, O(n^2) retrieval (because it seems like I examine everything multiple times before finding what I'm looking for).