Distributed interview questions
Practice 6 questions on distributed. Each runs in a real in-browser editor with Jest tests and a worked, diagram-backed solution.
6 questions
- MEDIUM
G/PN-Counter CRDT
Build increment and decrement counters that merge by per-node maxima into a conflict-free convergent total.
25 minJavaScript - MEDIUM
LWW Register / Map CRDT
PREMIUMBuild a last-write-wins map whose entries merge by timestamp with a deterministic node-id tiebreak.
25 minJavaScript - MEDIUM
OR-Set CRDT
Build an observed-remove set where a concurrent add and remove converge with the add winning.
25 minJavaScript - MEDIUM
Vector Clocks
PREMIUMOrder distributed events with vector clocks, detecting whether two events are causal or concurrent.
25 minJavaScript - HARD
Operational Transform (Text)
PREMIUMTransform concurrent insert and delete operations so replicas converge to the same text.
40 minJavaScript - HARD
Sequence CRDT (RGA)
PREMIUMBuild a replicated growable array for text whose positional-id inserts and deletes converge across replicas.
40 minJavaScript