Available question text
Given an undirected friendship graph (list of friend pairs), identify/count the friend pairs that share no mutual friends — i.e., their neighbor sets are disjoint. The core challenge is efficiently testing zero intersection of adjacency sets for many pairs (scale with large n/m), typically requiring set/bitset optimization or hashing to avoid O(deg^2) checks.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3058. Friends With No Mutual Friends
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source