mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-11 02:58:13 +08:00
61 lines
4.0 KiB
JSON
61 lines
4.0 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "2313",
|
|
"questionFrontendId": "2173",
|
|
"boundTopicId": null,
|
|
"title": "Longest Winning Streak",
|
|
"titleSlug": "longest-winning-streak",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Hard",
|
|
"likes": 25,
|
|
"dislikes": 1,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"exampleTestcases": "{\"headers\":{\"Matches\":[\"player_id\",\"match_day\",\"result\"]},\"rows\":{\"Matches\":[[1,\"2022-01-17\",\"Win\"],[1,\"2022-01-18\",\"Win\"],[1,\"2022-01-25\",\"Win\"],[1,\"2022-01-31\",\"Draw\"],[1,\"2022-02-08\",\"Win\"],[2,\"2022-02-06\",\"Lose\"],[2,\"2022-02-08\",\"Lose\"],[3,\"2022-03-30\",\"Win\"]]}}",
|
|
"categoryTitle": "Database",
|
|
"contributors": [],
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": null,
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"686\", \"totalSubmission\": \"1.3K\", \"totalAcceptedRaw\": 686, \"totalSubmissionRaw\": 1343, \"acRate\": \"51.1%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Matches\":[\"player_id\",\"match_day\",\"result\"]},\"rows\":{\"Matches\":[[1,\"2022-01-17\",\"Win\"],[1,\"2022-01-18\",\"Win\"],[1,\"2022-01-25\",\"Win\"],[1,\"2022-01-31\",\"Draw\"],[1,\"2022-02-08\",\"Win\"],[2,\"2022-02-06\",\"Lose\"],[2,\"2022-02-08\",\"Lose\"],[3,\"2022-03-30\",\"Win\"]]}}",
|
|
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Matches (player_id int, match_day date, result ENUM('Win', 'Draw', 'Lose'))\"\n ],\n \"mssql\": [\n \"Create table Matches (player_id int, match_day date, result VARCHAR(4) NOT NULL CHECK (result IN ('Win', 'Draw', 'Lose')))\"\n ],\n \"oraclesql\": [\n \"Create table Matches (player_id int, match_day date, result VARCHAR(4) NOT NULL CHECK (result IN ('Win', 'Draw', 'Lose')))\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"\n ],\n \"database\": true\n}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Matches (player_id int, match_day date, result ENUM('Win', 'Draw', 'Lose'))",
|
|
"Truncate table Matches",
|
|
"insert into Matches (player_id, match_day, result) values ('1', '2022-01-17', 'Win')",
|
|
"insert into Matches (player_id, match_day, result) values ('1', '2022-01-18', 'Win')",
|
|
"insert into Matches (player_id, match_day, result) values ('1', '2022-01-25', 'Win')",
|
|
"insert into Matches (player_id, match_day, result) values ('1', '2022-01-31', 'Draw')",
|
|
"insert into Matches (player_id, match_day, result) values ('1', '2022-02-08', 'Win')",
|
|
"insert into Matches (player_id, match_day, result) values ('2', '2022-02-06', 'Lose')",
|
|
"insert into Matches (player_id, match_day, result) values ('2', '2022-02-08', 'Lose')",
|
|
"insert into Matches (player_id, match_day, result) values ('3', '2022-03-30', 'Win')"
|
|
],
|
|
"enableRunCode": true,
|
|
"enableTestMode": false,
|
|
"enableDebugger": false,
|
|
"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>\"]}",
|
|
"libraryUrl": null,
|
|
"adminUrl": null,
|
|
"challengeQuestion": null,
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |