Depth-First Search
2092. Find All People With Secret
n people; the secret starts with person 0 and firstPerson. Meetings meetings[i] = [x, y, time]: at time, x and y share the secret if either knows it. Meetings at the same time influence each other.…
Loading…