NewThe Learning module is now liveSee what's new
avatar
mayawang04Jun 15, 2026

Snap phone screen - KV store with prefix sum, rejected

Interview Experiences
snap

Snap phone screen - KV store with prefix sum, rejected

Result: Rejected Number of Rounds: 1

Phone screen was the KV store with prefix sum query problem. Standard KV operations (get/set/delete) plus a prefix sum query that returns the sum of all values where the key matches a given prefix.

Trie-based approach for prefix storage. Basic operations took about 20 minutes. Prefix sum query required accumulating values through the trie nodes, which I got working.

The follow-up was optimizing the prefix sum to handle high-frequency updates and range queries. Needed fenwick tree or segment tree. Got the approach conceptually but ran out of time on the implementation.

Rejection 2 days later. The follow-up depth at Snap is real. You have to be fast.

5 YOE

14242.2k

Replies (2)

avatar
emilyzhang07Jun 15, 2026

The fenwick tree follow-up on the KV store is brutal under time pressure. Did the interviewer give any hints or just wait?

78
avatar
mayawang04Jun 15, 2026

Just waited. No hints. Got the approach explained but no implementation complete.

26
avatar
liamchen09Jun 15, 2026

What level were you targeting? L4 or L5?

57
avatar
mayawang04Jun 15, 2026

L4 / SDE2.

63