mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-25 17:50:26 +08:00
63 lines
4.4 KiB
JSON
63 lines
4.4 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "2622",
|
|
"questionFrontendId": "2480",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 1988205,
|
|
"title": "Form a Chemical Bond",
|
|
"titleSlug": "form-a-chemical-bond",
|
|
"content": null,
|
|
"translatedTitle": "形成化学键",
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Easy",
|
|
"likes": 1,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"1.1K\", \"totalSubmission\": \"1.3K\", \"totalAcceptedRaw\": 1054, \"totalSubmissionRaw\": 1268, \"acRate\": \"83.1%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\": {\"Elements\": [\"symbol\", \"type\", \"electrons\"]}, \"rows\": {\"Elements\": [[\"He\", \"Noble\", 0], [\"Na\", \"Metal\", 1], [\"Ca\", \"Metal\", 2], [\"La\", \"Metal\", 3], [\"Cl\", \"Nonmetal\", 1], [\"O\", \"Nonmetal\", 2], [\"N\", \"Nonmetal\", 3]]}}",
|
|
"metaData": "{\"mysql\":[\"Create table If Not Exists Elements (symbol varchar(2), type ENUM('Metal','Nonmetal','Noble'), electrons int)\"],\"mssql\":[\"Create table Elements (symbol varchar(2), type varchar(8) not null check(type in ('Metal','Nonmetal','Noble')), electrons int)\\n\"],\"oraclesql\":[\"Create table Elements (symbol varchar(2), type varchar(8) not null check(type in ('Metal','Nonmetal','Noble')), electrons int)\\n\"],\"database\":true,\"name\":\"form_bond\",\"pythondata\":[\"Elements = pd.DataFrame([], columns=['symbol', 'type', 'electrons']).astype({'symbol':'object', 'type':'object', 'electrons':'Int64'})\"],\"postgresql\":[\"Create table If Not Exists Elements (symbol varchar(2), type VARCHAR(30) CHECK (type IN ('Metal','Nonmetal','Noble')), electrons int)\\n\"],\"database_schema\":{\"Elements\":{\"symbol\":\"VARCHAR(2)\",\"type\":\"ENUM('Metal', 'Nonmetal', 'Noble')\",\"electrons\":\"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Elements (symbol varchar(2), type ENUM('Metal','Nonmetal','Noble'), electrons int)",
|
|
"Truncate table Elements",
|
|
"insert into Elements (symbol, type, electrons) values ('He', 'Noble', '0')",
|
|
"insert into Elements (symbol, type, electrons) values ('Na', 'Metal', '1')",
|
|
"insert into Elements (symbol, type, electrons) values ('Ca', 'Metal', '2')",
|
|
"insert into Elements (symbol, type, electrons) values ('La', 'Metal', '3')",
|
|
"insert into Elements (symbol, type, electrons) values ('Cl', 'Nonmetal', '1')",
|
|
"insert into Elements (symbol, type, electrons) values ('O', 'Nonmetal', '2')",
|
|
"insert into Elements (symbol, type, electrons) values ('N', 'Nonmetal', '3')"
|
|
],
|
|
"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\": {\"Elements\": [\"symbol\", \"type\", \"electrons\"]}, \"rows\": {\"Elements\": [[\"He\", \"Noble\", 0], [\"Na\", \"Metal\", 1], [\"Ca\", \"Metal\", 2], [\"La\", \"Metal\", 3], [\"Cl\", \"Nonmetal\", 1], [\"O\", \"Nonmetal\", 2], [\"N\", \"Nonmetal\", 3]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |