1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-03 06:22:54 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-06-18 16:20:32 +08:00
parent 6ba311f0f3
commit 8891b38740
50 changed files with 16483 additions and 11625 deletions

View File

@@ -0,0 +1,55 @@
{
"data": {
"question": {
"questionId": "2441",
"questionFrontendId": "2308",
"boundTopicId": null,
"title": "Arrange Table by Gender",
"titleSlug": "arrange-table-by-gender",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 7,
"dislikes": 4,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": null,
"categoryTitle": "Database",
"contributors": [],
"topicTags": [],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"123\", \"totalSubmission\": \"162\", \"totalAcceptedRaw\": 123, \"totalSubmissionRaw\": 162, \"acRate\": \"75.9%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Genders\": [\"user_id\", \"gender\"]}, \"rows\": {\"Genders\": [[4, \"male\"], [7, \"female\"], [2, \"other\"], [5, \"male\"], [3, \"female\"], [8, \"male\"], [6, \"other\"], [1, \"other\"], [9, \"female\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Genders (user_id int, gender ENUM('female', 'other', 'male'))\"\n ],\n \"mssql\": [\n \"Create table Genders (user_id int, gender VARCHAR(6) NOT NULL CHECK (gender IN ('female', 'other', 'male')))\"\n ],\n \"oraclesql\": [\n \"Create table Genders (user_id int, gender VARCHAR(6) NOT NULL CHECK (gender IN ('female', 'other', 'male')))\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Genders (user_id int, gender ENUM('female', 'other', 'male'))",
"Truncate table Genders",
"insert into Genders (user_id, gender) values ('4', 'male')",
"insert into Genders (user_id, gender) values ('7', 'female')",
"insert into Genders (user_id, gender) values ('2', 'other')",
"insert into Genders (user_id, gender) values ('5', 'male')",
"insert into Genders (user_id, gender) values ('3', 'female')",
"insert into Genders (user_id, gender) values ('8', 'male')",
"insert into Genders (user_id, gender) values ('6', 'other')",
"insert into Genders (user_id, gender) values ('1', 'other')",
"insert into Genders (user_id, gender) values ('9', 'female')"
],
"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"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,59 @@
{
"data": {
"question": {
"questionId": "2440",
"questionFrontendId": "2298",
"boundTopicId": null,
"title": "Tasks Count in the Weekend",
"titleSlug": "tasks-count-in-the-weekend",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 6,
"dislikes": 2,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": null,
"categoryTitle": "Database",
"contributors": [],
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"255\", \"totalSubmission\": \"314\", \"totalAcceptedRaw\": 255, \"totalSubmissionRaw\": 314, \"acRate\": \"81.2%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Tasks\": [\"task_id\", \"assignee_id\", \"submit_date\"]}, \"rows\": {\"Tasks\": [[1, 1, \"2022-06-13\"], [2, 6, \"2022-06-14\"], [3, 6, \"2022-06-15\"], [4, 3, \"2022-06-18\"], [5, 5, \"2022-06-19\"], [6, 7, \"2022-06-19\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Tasks (task_id int, assignee_id int, submit_date date)\"\n ],\n \"mssql\": [\n \"Create table Tasks (task_id int, assignee_id int, submit_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Tasks (task_id int, assignee_id int, submit_date date)\",\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 Tasks (task_id int, assignee_id int, submit_date date)",
"Truncate table Tasks",
"insert into Tasks (task_id, assignee_id, submit_date) values ('1', '1', '2022-06-13')",
"insert into Tasks (task_id, assignee_id, submit_date) values ('2', '6', '2022-06-14')",
"insert into Tasks (task_id, assignee_id, submit_date) values ('3', '6', '2022-06-15')",
"insert into Tasks (task_id, assignee_id, submit_date) values ('4', '3', '2022-06-18')",
"insert into Tasks (task_id, assignee_id, submit_date) values ('5', '5', '2022-06-19')",
"insert into Tasks (task_id, assignee_id, submit_date) values ('6', '7', '2022-06-19')"
],
"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"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long