{ "data": { "question": { "questionId": "1607", "questionFrontendId": "1459", "boundTopicId": null, "title": "Rectangles Area", "titleSlug": "rectangles-area", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 92, "dislikes": 158, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Points\":[\"id\",\"x_value\",\"y_value\"]},\"rows\":{\"Points\":[[1,2,7],[2,4,8],[3,2,10]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"16.1K\", \"totalSubmission\": \"23.5K\", \"totalAcceptedRaw\": 16111, \"totalSubmissionRaw\": 23479, \"acRate\": \"68.6%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Points\":[\"id\",\"x_value\",\"y_value\"]},\"rows\":{\"Points\":[[1,2,7],[2,4,8],[3,2,10]]}}", "metaData": "{\"mysql\": [\"Create table If Not Exists Points (id int, x_value int, y_value int)\"], \"mssql\": [\"Create table Points (id int, x_value int, y_value int)\"], \"oraclesql\": [\"Create table Points (id int, x_value int, y_value int)\"], \"database\": true, \"name\": \"rectangles_area\", \"pythondata\": [\"Points = pd.DataFrame([], columns=['id', 'x_value', 'y_value']).astype({'id':'Int64', 'x_value':'Int64', 'y_value':'Int64'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Points (id int, x_value int, y_value int)\"], \"database_schema\": {\"Points\": {\"id\": \"INT\", \"x_value\": \"INT\", \"y_value\": \"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Points (id int, x_value int, y_value int)", "Truncate table Points", "insert into Points (id, x_value, y_value) values ('1', '2', '7')", "insert into Points (id, x_value, y_value) values ('2', '4', '8')", "insert into Points (id, x_value, y_value) values ('3', '2', '10')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.
Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0
\"], \"postgresql\": [\"PostgreSQL\", \"PostgreSQL 16
\"]}", "libraryUrl": null, "adminUrl": null, "challengeQuestion": null, "__typename": "QuestionNode" } } }