Find All People Who Learn a Secret

Asked at Google · Coding Questions · Difficulty: Hard

There are `n` people numbered `0` to `n - 1`. Person `0` and person `firstPerson` both know a secret at time 0. You are given `meetings`, where `meetings[i] = [x, y, t]` means persons `x` and `y` meet at time `t`.

Loading the problem…