{ "data": { "question": { "questionId": "2097", "questionFrontendId": "1949", "boundTopicId": null, "title": "Strong Friendship", "titleSlug": "strong-friendship", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 72, "dislikes": 26, "isLiked": null, "similarQuestions": "[{\"title\": \"Page Recommendations\", \"titleSlug\": \"page-recommendations\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Page Recommendations II\", \"titleSlug\": \"page-recommendations-ii\", \"difficulty\": \"Hard\", \"translatedTitle\": null}, {\"title\": \"Leetcodify Friends Recommendations\", \"titleSlug\": \"leetcodify-friends-recommendations\", \"difficulty\": \"Hard\", \"translatedTitle\": null}]", "exampleTestcases": "{\"headers\":{\"Friendship\":[\"user1_id\",\"user2_id\"]},\"rows\":{\"Friendship\":[[1,2],[1,3],[2,3],[1,4],[2,4],[1,5],[2,5],[1,7],[3,7],[1,6],[3,6],[2,6]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"4.3K\", \"totalSubmission\": \"7.2K\", \"totalAcceptedRaw\": 4277, \"totalSubmissionRaw\": 7156, \"acRate\": \"59.8%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Friendship\":[\"user1_id\",\"user2_id\"]},\"rows\":{\"Friendship\":[[1,2],[1,3],[2,3],[1,4],[2,4],[1,5],[2,5],[1,7],[3,7],[1,6],[3,6],[2,6]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Friendship (user1_id int, user2_id int)\"\n ],\n \"mssql\": [\n \"Create table Friendship (user1_id int, user2_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Friendship (user1_id int, user2_id int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Friendship (user1_id int, user2_id int)", "Truncate table Friendship", "insert into Friendship (user1_id, user2_id) values ('1', '2')", "insert into Friendship (user1_id, user2_id) values ('1', '3')", "insert into Friendship (user1_id, user2_id) values ('2', '3')", "insert into Friendship (user1_id, user2_id) values ('1', '4')", "insert into Friendship (user1_id, user2_id) values ('2', '4')", "insert into Friendship (user1_id, user2_id) values ('1', '5')", "insert into Friendship (user1_id, user2_id) values ('2', '5')", "insert into Friendship (user1_id, user2_id) values ('1', '7')", "insert into Friendship (user1_id, user2_id) values ('3', '7')", "insert into Friendship (user1_id, user2_id) values ('1', '6')", "insert into Friendship (user1_id, user2_id) values ('3', '6')", "insert into Friendship (user1_id, user2_id) values ('2', '6')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.