mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
64 lines
4.6 KiB
JSON
64 lines
4.6 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "2313",
|
|
"questionFrontendId": "2173",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 1266410,
|
|
"title": "Longest Winning Streak",
|
|
"titleSlug": "longest-winning-streak",
|
|
"content": null,
|
|
"translatedTitle": "最多连胜的次数",
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Hard",
|
|
"likes": 7,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"1.6K\", \"totalSubmission\": \"2.9K\", \"totalAcceptedRaw\": 1550, \"totalSubmissionRaw\": 2881, \"acRate\": \"53.8%\"}",
|
|
"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": "{\"mysql\":[\"Create table If Not Exists Matches (player_id int, match_day date, result ENUM('Win', 'Draw', 'Lose'))\"],\"mssql\":[\"Create table Matches (player_id int, match_day date, result VARCHAR(4) NOT NULL CHECK (result IN ('Win', 'Draw', 'Lose')))\"],\"oraclesql\":[\"Create table Matches (player_id int, match_day date, result VARCHAR(4) NOT NULL CHECK (result IN ('Win', 'Draw', 'Lose')))\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"],\"database\":true,\"name\":\"longest_winning_streak\",\"pythondata\":[\"Matches = pd.DataFrame([], columns=['player_id', 'match_day', 'result']).astype({'player_id':'Int64', 'match_day':'datetime64[ns]', 'result':'object'})\"],\"postgresql\":[\"Create table If Not Exists Matches (player_id int, match_day date, result VARCHAR(30) CHECK (result IN ('Win', 'Draw', 'Lose')))\\n\"],\"database_schema\":{\"Matches\":{\"player_id\":\"INT\",\"match_day\":\"DATE\",\"result\":\"ENUM('Win', 'Draw', 'Lose')\"}}}",
|
|
"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,
|
|
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
|
|
"book": null,
|
|
"isSubscribed": false,
|
|
"isDailyQuestion": false,
|
|
"dailyRecordStatus": null,
|
|
"editorType": "CKEDITOR",
|
|
"ugcQuestionId": null,
|
|
"style": "LEETCODE",
|
|
"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\"]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |