mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
65 lines
5.1 KiB
JSON
65 lines
5.1 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "1439",
|
|
"questionFrontendId": "1308",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 74773,
|
|
"title": "Running Total for Different Genders",
|
|
"titleSlug": "running-total-for-different-genders",
|
|
"content": null,
|
|
"translatedTitle": "不同性别每日分数总计",
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 33,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"13.6K\", \"totalSubmission\": \"18.5K\", \"totalAcceptedRaw\": 13633, \"totalSubmissionRaw\": 18534, \"acRate\": \"73.6%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Scores\":[\"player_name\",\"gender\",\"day\",\"score_points\"]},\"rows\":{\"Scores\":[[\"Aron\",\"F\",\"2020-01-01\",17],[\"Alice\",\"F\",\"2020-01-07\",23],[\"Bajrang\",\"M\",\"2020-01-07\",7],[\"Khali\",\"M\",\"2019-12-25\",11],[\"Slaman\",\"M\",\"2019-12-30\",13],[\"Joe\",\"M\",\"2019-12-31\",3],[\"Jose\",\"M\",\"2019-12-18\",2],[\"Priya\",\"F\",\"2019-12-31\",23],[\"Priyanka\",\"F\",\"2019-12-30\",17]]}}",
|
|
"metaData": "{\"mysql\":[\"Create table If Not Exists Scores (player_name varchar(20), gender varchar(1), day date, score_points int)\"],\"mssql\":[\"Create table Scores (player_name varchar(20), gender varchar(1), day date, score_points int)\"],\"oraclesql\":[\"Create table Scores (player_name varchar(20), gender varchar(1), day date, score_points int)\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"],\"database\":true,\"name\":\"running_total\",\"pythondata\":[\"Scores = pd.DataFrame([], columns=['player_name', 'gender', 'day', 'score_points']).astype({'player_name':'object', 'gender':'object', 'day':'datetime64[ns]', 'score_points':'Int64'})\"],\"postgresql\":[\"\\nCreate table If Not Exists Scores (player_name varchar(20), gender varchar(1), day date, score_points int)\"],\"database_schema\":{\"Scores\":{\"player_name\":\"VARCHAR(20)\",\"gender\":\"VARCHAR(1)\",\"day\":\"DATE\",\"score_points\":\"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Scores (player_name varchar(20), gender varchar(1), day date, score_points int)",
|
|
"Truncate table Scores",
|
|
"insert into Scores (player_name, gender, day, score_points) values ('Aron', 'F', '2020-01-01', '17')",
|
|
"insert into Scores (player_name, gender, day, score_points) values ('Alice', 'F', '2020-01-07', '23')",
|
|
"insert into Scores (player_name, gender, day, score_points) values ('Bajrang', 'M', '2020-01-07', '7')",
|
|
"insert into Scores (player_name, gender, day, score_points) values ('Khali', 'M', '2019-12-25', '11')",
|
|
"insert into Scores (player_name, gender, day, score_points) values ('Slaman', 'M', '2019-12-30', '13')",
|
|
"insert into Scores (player_name, gender, day, score_points) values ('Joe', 'M', '2019-12-31', '3')",
|
|
"insert into Scores (player_name, gender, day, score_points) values ('Jose', 'M', '2019-12-18', '2')",
|
|
"insert into Scores (player_name, gender, day, score_points) values ('Priya', 'F', '2019-12-31', '23')",
|
|
"insert into Scores (player_name, gender, day, score_points) values ('Priyanka', 'F', '2019-12-30', '17')"
|
|
],
|
|
"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\":{\"Scores\":[\"player_name\",\"gender\",\"day\",\"score_points\"]},\"rows\":{\"Scores\":[[\"Aron\",\"F\",\"2020-01-01\",17],[\"Alice\",\"F\",\"2020-01-07\",23],[\"Bajrang\",\"M\",\"2020-01-07\",7],[\"Khali\",\"M\",\"2019-12-25\",11],[\"Slaman\",\"M\",\"2019-12-30\",13],[\"Joe\",\"M\",\"2019-12-31\",3],[\"Jose\",\"M\",\"2019-12-18\",2],[\"Priya\",\"F\",\"2019-12-31\",23],[\"Priyanka\",\"F\",\"2019-12-30\",17]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |