2022-03-27 18:27:43 +08:00
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"question": {
|
|
|
|
"questionId": "2253",
|
|
|
|
"questionFrontendId": "2118",
|
|
|
|
"boundTopicId": null,
|
|
|
|
"title": "Build the Equation",
|
|
|
|
"titleSlug": "build-the-equation",
|
|
|
|
"content": null,
|
|
|
|
"translatedTitle": null,
|
|
|
|
"translatedContent": null,
|
|
|
|
"isPaidOnly": true,
|
|
|
|
"difficulty": "Hard",
|
2023-12-09 18:42:21 +08:00
|
|
|
"likes": 21,
|
|
|
|
"dislikes": 33,
|
2022-03-27 18:27:43 +08:00
|
|
|
"isLiked": null,
|
|
|
|
"similarQuestions": "[]",
|
|
|
|
"exampleTestcases": "{\"headers\":{\"Terms\":[\"power\",\"factor\"]},\"rows\":{\"Terms\":[[2,1],[1,-4],[0,2]]}}\n{\"headers\":{\"Terms\":[\"power\",\"factor\"]},\"rows\":{\"Terms\":[[4,-4],[2,1],[1,-1]]}}",
|
|
|
|
"categoryTitle": "Database",
|
|
|
|
"contributors": [],
|
|
|
|
"topicTags": [
|
|
|
|
{
|
|
|
|
"name": "Database",
|
|
|
|
"slug": "database",
|
|
|
|
"translatedName": null,
|
|
|
|
"__typename": "TopicTagNode"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"companyTagStats": null,
|
|
|
|
"codeSnippets": null,
|
2023-12-09 19:57:46 +08:00
|
|
|
"stats": "{\"totalAccepted\": \"2K\", \"totalSubmission\": \"3.7K\", \"totalAcceptedRaw\": 2042, \"totalSubmissionRaw\": 3728, \"acRate\": \"54.8%\"}",
|
2022-03-27 18:27:43 +08:00
|
|
|
"hints": [],
|
|
|
|
"solution": null,
|
|
|
|
"status": null,
|
|
|
|
"sampleTestCase": "{\"headers\":{\"Terms\":[\"power\",\"factor\"]},\"rows\":{\"Terms\":[[2,1],[1,-4],[0,2]]}}",
|
2023-12-09 18:42:21 +08:00
|
|
|
"metaData": "{\"mysql\": [\"Create table If Not Exists Terms (power int, factor int)\"], \"mssql\": [\"Create table Terms (power int, factor int)\"], \"oraclesql\": [\"Create table Terms (power int, factor int)\"], \"database\": true, \"name\": \"build_the_equation\", \"pythondata\": [\"Terms = pd.DataFrame([], columns=['power', 'factor']).astype({'power':'Int64', 'factor':'Int64'})\"], \"postgresql\": [\"Create table If Not Exists Terms (power int, factor int)\"], \"database_schema\": {\"Terms\": {\"power\": \"INT\", \"factor\": \"INT\"}}}",
|
2022-03-27 18:27:43 +08:00
|
|
|
"judgerAvailable": true,
|
|
|
|
"judgeType": "large",
|
|
|
|
"mysqlSchemas": [
|
|
|
|
"Create table If Not Exists Terms (power int, factor int)",
|
|
|
|
"Truncate table Terms",
|
|
|
|
"insert into Terms (power, factor) values ('2', '1')",
|
|
|
|
"insert into Terms (power, factor) values ('1', '-4')",
|
|
|
|
"insert into Terms (power, factor) values ('0', '2')"
|
|
|
|
],
|
|
|
|
"enableRunCode": true,
|
|
|
|
"enableTestMode": false,
|
|
|
|
"enableDebugger": false,
|
2023-12-09 18:42:21 +08:00
|
|
|
"envInfo": "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"], \"pythondata\": [\"Pandas\", \"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0</p>\"], \"postgresql\": [\"PostgreSQL\", \"<p>PostgreSQL 16</p>\"]}",
|
2022-03-27 18:27:43 +08:00
|
|
|
"libraryUrl": null,
|
|
|
|
"adminUrl": null,
|
|
|
|
"challengeQuestion": null,
|
|
|
|
"__typename": "QuestionNode"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|