Leetcode 602. Friend Requests II: Who Has the Most Friends
Given a table of accepted friend requests (each row representing a bidirectional friendship between requester_id and accepter_id), count each user's distinct friends by aggregating across both columns as an undirected edge. Return the user(s) with the maximum friend count and that count (follow-up: handle ties by returning all users with the max).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.