1949. Strong Friendship
https://leetcode.com/problems/strong-friendship
Description
Table: Friendship
A friendship between a pair of friends x
and y
is strong if x
and y
have at least three common friends.
Write an SQL query to find all the strong friendships.
Note that the result table should not contain duplicates with user1_id < user2_id
.
Return the result table in any order.
The query result format is in the following example:
ac
Previous1948. Delete Duplicate Folders in SystemNext1950. Maximum of Minimum Values in All Subarrays
Last updated