0602. Friend Requests II: Who Has the Most Friends
Description
+--------------+-------------+------------+
| requester\_id | accepter\_id | accept\_date|
|--------------|-------------|------------|
| 1 | 2 | 2016\_06-03 |
| 1 | 3 | 2016-06-08 |
| 2 | 3 | 2016-06-08 |
| 3 | 4 | 2016-06-09 |
+--------------+-------------+------------+
This table holds the data of friend acceptance, while **requester\_id** and **accepter\_id** both are the id of a person.Result table:
+------+------+
| id | num |
|------|------|
| 3 | 3 |
+------+------+
The person with id '3' is a friend of people '1', '2' and '4', so he has 3 friends in total, which is the most number than any others.ac
Last updated