0 day streak
Anonymous · shared experience1 Oct 2025 · 6 views

Rippling: Key-value store with begin, commit and rollback

Interview question #Rippling SDE 2 DSA / coding

Problem. Implement an in-memory store for string keys and values with add, get and delete.

Follow-up. Add transaction support with begin, commit and rollback. Gets, puts and deletes inside a transaction must be visible inside it and undone on rollback.

What happened. The candidate kept a temporary map for the open transaction, merged it into the main map on commit and cleared it on rollback. That approach worked, but delete inside a transaction had corner cases that were missed, and the round was scored a no.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.