{ "data": { "question": { "questionId": "3259", "questionFrontendId": "3054", "categoryTitle": "Database", "boundTopicId": 2653971, "title": "Binary Tree Nodes", "titleSlug": "binary-tree-nodes", "content": null, "translatedTitle": "二叉树节点", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 0, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"491\", \"totalSubmission\": \"620\", \"totalAcceptedRaw\": 491, \"totalSubmissionRaw\": 620, \"acRate\": \"79.2%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Tree\":[\"N\",\"P\"]},\"rows\":{\"Tree\":[[1,2],[3,2],[6,8],[9,8],[2,5],[8,5],[5,null]]}}", "metaData": "{\"mysql\":[\"Create table If Not Exists Tree (N int,P int)\"],\"mssql\":[\"Create table Tree (N int,P int)\"],\"oraclesql\":[\"Create table Tree (N int,P int)\"],\"database\":true,\"name\":\"binary_tree_nodes\",\"pythondata\":[\"Tree = pd.DataFrame([], columns=['N', 'P']).astype({'N':'Int64', 'P':'Int64'})\"],\"postgresql\":[\"Create table If Not Exists Tree (N int,P int)\\n\"],\"database_schema\":{\"Tree\":{\"N\":\"INT\",\"P\":\"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Tree (N int,P int)", "Truncate table Tree", "insert into Tree (N, P) values ('1', '2')", "insert into Tree (N, P) values ('3', '2')", "insert into Tree (N, P) values ('6', '8')", "insert into Tree (N, P) values ('9', '8')", "insert into Tree (N, P) values ('2', '5')", "insert into Tree (N, P) values ('8', '5')", "insert into Tree (N, P) values ('5', NULL)" ], "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.2.2 and NumPy 1.26.4<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"

PostgreSQL 16<\\/p>\"]}", "book": null, "isSubscribed": false, "isDailyQuestion": false, "dailyRecordStatus": null, "editorType": "CKEDITOR", "ugcQuestionId": null, "style": "LEETCODE", "exampleTestcases": "{\"headers\":{\"Tree\":[\"N\",\"P\"]},\"rows\":{\"Tree\":[[1,2],[3,2],[6,8],[9,8],[2,5],[8,5],[5,null]]}}", "__typename": "QuestionNode" } } }