Loading the puzzle…
The puzzle IDE is built for a laptop or larger screen. You can read everything here, but selecting code is easier with a mouse and a wider window.
Interview question: design a publish/subscribe event bus. One edge case to handle: a subscriber's handler adds another subscriber while a value is being delivered.
In packages/rxjs/src/subject.ts, a Subject has two subscribers, A and B,
subscribed in that order. When A receives a value, its handler subscribes a
third subscriber, C, to the same Subject. Then next(1) is called once. Which
subscribers receive 1? Select one option.
One of the listed options.
Each hint revealed before you solve takes 20 points off this puzzle's score.
Solve this puzzle to see the solution and a full explanation.
Pick one of the options.