1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode/originData/[no content]change-null-values-in-a-table-to-the-previous-value.json

59 lines
3.7 KiB
JSON
Raw Normal View History

2022-08-29 22:05:38 +08:00
{
"data": {
"question": {
"questionId": "2523",
"questionFrontendId": "2388",
"boundTopicId": null,
"title": "Change Null Values in a Table to the Previous Value",
"titleSlug": "change-null-values-in-a-table-to-the-previous-value",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
2023-12-09 18:42:21 +08:00
"likes": 73,
"dislikes": 26,
2022-08-29 22:05:38 +08:00
"isLiked": null,
"similarQuestions": "[]",
2023-12-09 18:42:21 +08:00
"exampleTestcases": "{\"headers\": {\"CoffeeShop\": [\"id\", \"drink\"]}, \"rows\": {\"CoffeeShop\": [[9, \"Rum and Coke\"], [6, null], [7, null], [3, \"St Germain Spritz\"], [1, \"Orange Margarita\"], [2, null]]}}",
2022-08-29 22:05:38 +08:00
"categoryTitle": "Database",
"contributors": [],
2023-12-09 18:42:21 +08:00
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
2022-08-29 22:05:38 +08:00
"companyTagStats": null,
"codeSnippets": null,
2023-12-09 18:42:21 +08:00
"stats": "{\"totalAccepted\": \"3.3K\", \"totalSubmission\": \"6.5K\", \"totalAcceptedRaw\": 3287, \"totalSubmissionRaw\": 6498, \"acRate\": \"50.6%\"}",
2022-08-29 22:05:38 +08:00
"hints": [],
"solution": null,
"status": null,
2023-12-09 18:42:21 +08:00
"sampleTestCase": "{\"headers\": {\"CoffeeShop\": [\"id\", \"drink\"]}, \"rows\": {\"CoffeeShop\": [[9, \"Rum and Coke\"], [6, null], [7, null], [3, \"St Germain Spritz\"], [1, \"Orange Margarita\"], [2, null]]}}",
"metaData": "{\"mysql\": [\"Create table If Not Exists CoffeeShop (id int, drink varchar(20))\"], \"mssql\": [\"Create table CoffeeShop (id int, drink varchar(20))\"], \"oraclesql\": [\"Create table CoffeeShop (id int, drink varchar(20))\"], \"database\": true, \"name\": \"change_null_values\", \"pythondata\": [\"CoffeeShop = pd.DataFrame([], columns=['id', 'drink']).astype({'id':'Int64', 'drink':'object'})\"], \"postgresql\": [\"Create table If Not Exists CoffeeShop (id int, drink varchar(20))\"], \"database_schema\": {\"CoffeeShop\": {\"id\": \"INT\", \"drink\": \"VARCHAR(20)\"}}}",
2022-08-29 22:05:38 +08:00
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists CoffeeShop (id int, drink varchar(20))",
"Truncate table CoffeeShop",
2023-12-09 18:42:21 +08:00
"insert into CoffeeShop (id, drink) values ('9', 'Rum and Coke')",
2022-08-29 22:05:38 +08:00
"insert into CoffeeShop (id, drink) values ('6', 'None')",
"insert into CoffeeShop (id, drink) values ('7', 'None')",
2023-12-09 18:42:21 +08:00
"insert into CoffeeShop (id, drink) values ('3', 'St Germain Spritz')",
"insert into CoffeeShop (id, drink) values ('1', 'Orange Margarita')",
2022-08-29 22:05:38 +08:00
"insert into CoffeeShop (id, drink) values ('2', 'None')"
],
"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-08-29 22:05:38 +08:00
"libraryUrl": null,
"adminUrl": null,
"challengeQuestion": null,
"__typename": "QuestionNode"
}
}
}