{ "data": { "question": { "questionId": "602", "questionFrontendId": "602", "categoryTitle": "Database", "boundTopicId": 2640, "title": "Friend Requests II: Who Has the Most Friends", "titleSlug": "friend-requests-ii-who-has-the-most-friends", "content": null, "translatedTitle": "好友申请 II :谁有最多的好友", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 50, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"10.8K\", \"totalSubmission\": \"17.4K\", \"totalAcceptedRaw\": 10802, \"totalSubmissionRaw\": 17422, \"acRate\": \"62.0%\"}", "hints": [ "Being friends is bidirectional. If you accept someone's adding friend request, both you and the other person will have one more friend." ], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"RequestAccepted\":[\"requester_id\",\"accepter_id\",\"accept_date\"]},\"rows\":{\"RequestAccepted\":[[1,2,\"2016/06/03\"],[1,3,\"2016/06/08\"],[2,3,\"2016/06/08\"],[3,4,\"2016/06/09\"]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists RequestAccepted (requester_id int not null, accepter_id int null, accept_date date null)\"\n ],\n \"mssql\": [\n \"Create table RequestAccepted (requester_id int not null, accepter_id int null, accept_date date null)\"\n ],\n \"oraclesql\": [\n \"Create table RequestAccepted (requester_id int not null, accepter_id int null, accept_date date null)\",\n \"Alter SESSION set NLS_DATE_FORMAT = 'YYYY/MM/DD'\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists RequestAccepted (requester_id int not null, accepter_id int null, accept_date date null)", "Truncate table RequestAccepted", "insert into RequestAccepted (requester_id, accepter_id, accept_date) values ('1', '2', '2016/06/03')", "insert into RequestAccepted (requester_id, accepter_id, accept_date) values ('1', '3', '2016/06/08')", "insert into RequestAccepted (requester_id, accepter_id, accept_date) values ('2', '3', '2016/06/08')", "insert into RequestAccepted (requester_id, accepter_id, accept_date) values ('3', '4', '2016/06/09')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"

\\u7248\\u672c\\uff1aMySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"

mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"

Oracle Sql 11.2.<\\/p>\"]}", "book": null, "isSubscribed": false, "isDailyQuestion": false, "dailyRecordStatus": null, "editorType": "CKEDITOR", "ugcQuestionId": null, "style": "LEETCODE", "exampleTestcases": "{\"headers\":{\"RequestAccepted\":[\"requester_id\",\"accepter_id\",\"accept_date\"]},\"rows\":{\"RequestAccepted\":[[1,2,\"2016/06/03\"],[1,3,\"2016/06/08\"],[2,3,\"2016/06/08\"],[3,4,\"2016/06/09\"]]}}", "__typename": "QuestionNode" } } }