mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-11 02:58:13 +08:00
58 lines
3.4 KiB
JSON
58 lines
3.4 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "2441",
|
|
"questionFrontendId": "2308",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 1604217,
|
|
"title": "Arrange Table by Gender",
|
|
"titleSlug": "arrange-table-by-gender",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 1,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"45\", \"totalSubmission\": \"54\", \"totalAcceptedRaw\": 45, \"totalSubmissionRaw\": 54, \"acRate\": \"83.3%\"}",
|
|
"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,
|
|
"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>\"]}",
|
|
"book": null,
|
|
"isSubscribed": false,
|
|
"isDailyQuestion": false,
|
|
"dailyRecordStatus": null,
|
|
"editorType": "CKEDITOR",
|
|
"ugcQuestionId": null,
|
|
"style": "LEETCODE",
|
|
"exampleTestcases": "{\"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\"]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |