{ "data": { "question": { "questionId": "2098", "questionFrontendId": "1951", "categoryTitle": "Database", "boundTopicId": 908792, "title": "All the Pairs With the Maximum Number of Common Followers", "titleSlug": "all-the-pairs-with-the-maximum-number-of-common-followers", "content": null, "translatedTitle": "查询具有最多共同关注者的所有两两结对组", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 18, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"4.3K\", \"totalSubmission\": \"6.6K\", \"totalAcceptedRaw\": 4310, \"totalSubmissionRaw\": 6598, \"acRate\": \"65.3%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Relations\":[\"user_id\",\"follower_id\"]},\"rows\":{\"Relations\":[[1,3],[2,3],[7,3],[1,4],[2,4],[7,4],[1,5],[2,6],[7,5]]}}", "metaData": "{\"mysql\":[\"Create table If Not Exists Relations (user_id int, follower_id int)\"],\"mssql\":[\"Create table Relations (user_id int, follower_id int)\"],\"oraclesql\":[\"Create table Relations (user_id int, follower_id int)\"],\"database\":true,\"name\":\"find_pairs\",\"pythondata\":[\"Relations = pd.DataFrame([], columns=['user_id', 'follower_id']).astype({'user_id':'Int64', 'follower_id':'Int64'})\"],\"postgresql\":[\"Create table If Not Exists Relations (user_id int, follower_id int)\"],\"database_schema\":{\"Relations\":{\"user_id\":\"INT\",\"follower_id\":\"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Relations (user_id int, follower_id int)", "Truncate table Relations", "insert into Relations (user_id, follower_id) values ('1', '3')", "insert into Relations (user_id, follower_id) values ('2', '3')", "insert into Relations (user_id, follower_id) values ('7', '3')", "insert into Relations (user_id, follower_id) values ('1', '4')", "insert into Relations (user_id, follower_id) values ('2', '4')", "insert into Relations (user_id, follower_id) values ('7', '4')", "insert into Relations (user_id, follower_id) values ('1', '5')", "insert into Relations (user_id, follower_id) values ('2', '6')", "insert into Relations (user_id, follower_id) values ('7', '5')" ], "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>\"],\"pythondata\":[\"Pandas\",\"

Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"

PostgreSQL 16<\\/p>\"]}", "book": null, "isSubscribed": false, "isDailyQuestion": false, "dailyRecordStatus": null, "editorType": "CKEDITOR", "ugcQuestionId": null, "style": "LEETCODE", "exampleTestcases": "{\"headers\":{\"Relations\":[\"user_id\",\"follower_id\"]},\"rows\":{\"Relations\":[[1,3],[2,3],[7,3],[1,4],[2,4],[7,4],[1,5],[2,6],[7,5]]}}", "__typename": "QuestionNode" } } }