Problem 3058 · Medium

Friends With No Mutual Friends

SQL teaching model. Treat friendships as undirected pairs, drop duplicates, and keep only the pairs whose two users share no friend.

Open the interactive visualisation