{ "data": { "question": { "questionId": "3358", "questionFrontendId": "100253", "categoryTitle": "Database", "boundTopicId": 2653965, "title": "Friends With No Mutual Friends", "titleSlug": "friends-with-no-mutual-friends", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 0, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"17\", \"totalSubmission\": \"39\", \"totalAcceptedRaw\": 17, \"totalSubmissionRaw\": 39, \"acRate\": \"43.6%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Friends\":[\"user_id1\",\"user_id2\"]},\"rows\":{\"Friends\":[[1,2],[2,3],[2,4],[1,5],[6,7],[3,4],[2,5],[8,9]]}}", "metaData": "{\"mysql\":[\"Create Table if Not Exists Friends( user_id1 int, user_id2 int)\"],\"mssql\":[\"Create Table Friends( user_id1 int, user_id2 int)\"],\"oraclesql\":[\"Create Table Friends( user_id1 int, user_id2 int)\"],\"database\":true,\"name\":\"friends_with_no_mutual_friends\",\"pythondata\":[\"Friends = pd.DataFrame([], columns=['user_id1', 'user_id2']).astype({'user_id1':'Int64', 'user_id2':'Int64'})\\n\"],\"postgresql\":[\"CREATE TABLE Friends (\\n user_id1 int,\\n user_id2 int\\n);\"],\"database_schema\":{\"Friends\":{\"user_id1\":\"INT\",\"user_id2\":\"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create Table if Not Exists Friends( user_id1 int, user_id2 int)", "Truncate table Friends", "insert into Friends (user_id1, user_id2) values ('1', '2')", "insert into Friends (user_id1, user_id2) values ('2', '3')", "insert into Friends (user_id1, user_id2) values ('2', '4')", "insert into Friends (user_id1, user_id2) values ('1', '5')", "insert into Friends (user_id1, user_id2) values ('6', '7')", "insert into Friends (user_id1, user_id2) values ('3', '4')", "insert into Friends (user_id1, user_id2) values ('2', '5')", "insert into Friends (user_id1, user_id2) values ('8', '9')" ], "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\":{\"Friends\":[\"user_id1\",\"user_id2\"]},\"rows\":{\"Friends\":[[1,2],[2,3],[2,4],[1,5],[6,7],[3,4],[2,5],[8,9]]}}", "__typename": "QuestionNode" } } }