LeetCode MEDIUM 1101 The Earliest Moment When Everyone Become Friends Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: The Earliest Moment When Everyone Become Friends
- Main tags:
Array,Union-Find,Sorting
What the problem is really asking
There are n people labeled from 0 to n - 1. The input is a list of friendship events. Each event has a timestamp and two people, meaning those two people become direct friends at that moment.