You must log in or register to comment.
Remember that cache goes stale
Is mom the cache invalidator we deserve?
But not the one you need. When she notices a smell it’s already too late.
Access to the chair cache is O(n) tho
n = 1 and you have O(1)
Mom is way too harsh to call it a messy pile with only 1 cloth on the chair…
True that!
Personally I assemble my clothes in a B+ tree on my desk. I’ve found that the hash lookup algorithm I was using had too many collisions.
What was you hash function? return 1?
shirt.isShortSleeved()