NewThe Learning module is now liveSee what's new
avatar
User-bm9auOct 13, 2026

Snowflake onsite, LRU cache with a resize twist

Interview Experiences
snowflake

Snowflake onsite, LRU cache with a resize twist

Snowflake VO last week, 3 rounds, still waiting to hear back.

Coding was Dynamic LRU Cache. Normal LRU with a hashmap + doubly linked list, plus a resize method that keeps evicting from the tail when you shrink it. Interviewer asked how I'd make it thread safe at the end, I said one lock around everything and he seemed ok with it.

SD was an audit log service where users can only query their own account's logs. Spent most of the time on storage and partitioning, kinda ran short before we got to retention.

BQ was the usual proudest project / conflict / failure.

Anyone know how long they usually take after onsite? The waiting is killing me lol

25484k

Replies (5)

avatar
User-jtudwOct 13, 2026

Good luck, the waiting is the worst part.

97
avatar
liam.davisOct 13, 2026

When you shrink, did you evict in a loop or just drop a chunk off the tail at once?

71
avatar
ryan.zhouOct 13, 2026

Loop, popping from the tail til size fits. Simple enough that I didn't overthink it.

98
avatar
nehadesai1203Oct 13, 2026

Heard back about a week after mine, but it was a reject with no reason so idk if that helps lol

50
avatar
ryan.zhouOct 13, 2026

lol not the comforting answer I was hoping for

132
avatar
User-e525oOct 13, 2026

Had the audit log one too a while back. Retention came up for me as well, I also ran out of time there.

29
avatar
priyashah94Oct 13, 2026

Did he push on the lock thing at all? I'd have guessed they want something finer grained than one big lock.

17
avatar
ryan.zhouOct 13, 2026

Not really, asked about contention for a sec and moved on. Think he mostly wanted to see I knew get also mutates the order.

42
No more replies