mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
81 lines
7.3 KiB
JSON
81 lines
7.3 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "1641",
|
|
"questionFrontendId": "1501",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 313071,
|
|
"title": "Countries You Can Safely Invest In",
|
|
"titleSlug": "countries-you-can-safely-invest-in",
|
|
"content": null,
|
|
"translatedTitle": "可以放心投资的国家",
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 64,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"14.8K\", \"totalSubmission\": \"26.2K\", \"totalAcceptedRaw\": 14820, \"totalSubmissionRaw\": 26234, \"acRate\": \"56.5%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Person\":[\"id\",\"name\",\"phone_number\"],\"Country\":[\"name\",\"country_code\"],\"Calls\":[\"caller_id\",\"callee_id\",\"duration\"]},\"rows\":{\"Person\":[[3,\"Jonathan\",\"051-1234567\"],[12,\"Elvis\",\"051-7654321\"],[1,\"Moncef\",\"212-1234567\"],[2,\"Maroua\",\"212-6523651\"],[7,\"Meir\",\"972-1234567\"],[9,\"Rachel\",\"972-0011100\"]],\"Country\":[[\"Peru\",\"051\"],[\"Israel\",\"972\"],[\"Morocco\",\"212\"],[\"Germany\",\"049\"],[\"Ethiopia\",\"251\"]],\"Calls\":[[1,9,33],[2,9,4],[1,2,59],[3,12,102],[3,12,330],[12,3,5],[7,9,13],[7,1,3],[9,7,1],[1,7,7]]}}",
|
|
"metaData": "{\"mysql\":[\"Create table If Not Exists Person (id int, name varchar(15), phone_number varchar(11))\",\"Create table If Not Exists Country (name varchar(15), country_code varchar(3))\",\"Create table If Not Exists Calls (caller_id int, callee_id int, duration int)\"],\"mssql\":[\"Create table Person (id int, name varchar(15), phone_number varchar(11))\",\"Create table Country (name varchar(15), country_code varchar(3))\",\"Create table Calls (caller_id int, callee_id int, duration int)\"],\"oraclesql\":[\"Create table Person (id int, name varchar(15), phone_number varchar(11))\",\"Create table Country (name varchar(15), country_code varchar(3))\",\"Create table Calls (caller_id int, callee_id int, duration int)\"],\"database\":true,\"name\":\"find_safe_countries\",\"pythondata\":[\"Person = pd.DataFrame([], columns=['id', 'name', 'phone_number']).astype({'id':'Int64', 'name':'object', 'phone_number':'object'})\",\"Country = pd.DataFrame([], columns=['name', 'country_code']).astype({'name':'object', 'country_code':'object'})\",\"Calls = pd.DataFrame([], columns=['caller_id', 'callee_id', 'duration']).astype({'caller_id':'Int64', 'callee_id':'Int64', 'duration':'Int64'})\"],\"postgresql\":[\"\\nCreate table If Not Exists Person (id int, name varchar(15), phone_number varchar(11))\\n\",\"Create table If Not Exists Country (name varchar(15), country_code varchar(3))\",\"Create table If Not Exists Calls (caller_id int, callee_id int, duration int)\"],\"database_schema\":{\"Person\":{\"id\":\"INT\",\"name\":\"VARCHAR(15)\",\"phone_number\":\"VARCHAR(11)\"},\"Country\":{\"name\":\"VARCHAR(15)\",\"country_code\":\"VARCHAR(3)\"},\"Calls\":{\"caller_id\":\"INT\",\"callee_id\":\"INT\",\"duration\":\"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Person (id int, name varchar(15), phone_number varchar(11))",
|
|
"Create table If Not Exists Country (name varchar(15), country_code varchar(3))",
|
|
"Create table If Not Exists Calls (caller_id int, callee_id int, duration int)",
|
|
"Truncate table Person",
|
|
"insert into Person (id, name, phone_number) values ('3', 'Jonathan', '051-1234567')",
|
|
"insert into Person (id, name, phone_number) values ('12', 'Elvis', '051-7654321')",
|
|
"insert into Person (id, name, phone_number) values ('1', 'Moncef', '212-1234567')",
|
|
"insert into Person (id, name, phone_number) values ('2', 'Maroua', '212-6523651')",
|
|
"insert into Person (id, name, phone_number) values ('7', 'Meir', '972-1234567')",
|
|
"insert into Person (id, name, phone_number) values ('9', 'Rachel', '972-0011100')",
|
|
"Truncate table Country",
|
|
"insert into Country (name, country_code) values ('Peru', '051')",
|
|
"insert into Country (name, country_code) values ('Israel', '972')",
|
|
"insert into Country (name, country_code) values ('Morocco', '212')",
|
|
"insert into Country (name, country_code) values ('Germany', '049')",
|
|
"insert into Country (name, country_code) values ('Ethiopia', '251')",
|
|
"Truncate table Calls",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('1', '9', '33')",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('2', '9', '4')",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('1', '2', '59')",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('3', '12', '102')",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('3', '12', '330')",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('12', '3', '5')",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('7', '9', '13')",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('7', '1', '3')",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('9', '7', '1')",
|
|
"insert into Calls (caller_id, callee_id, duration) values ('1', '7', '7')"
|
|
],
|
|
"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\":{\"Person\":[\"id\",\"name\",\"phone_number\"],\"Country\":[\"name\",\"country_code\"],\"Calls\":[\"caller_id\",\"callee_id\",\"duration\"]},\"rows\":{\"Person\":[[3,\"Jonathan\",\"051-1234567\"],[12,\"Elvis\",\"051-7654321\"],[1,\"Moncef\",\"212-1234567\"],[2,\"Maroua\",\"212-6523651\"],[7,\"Meir\",\"972-1234567\"],[9,\"Rachel\",\"972-0011100\"]],\"Country\":[[\"Peru\",\"051\"],[\"Israel\",\"972\"],[\"Morocco\",\"212\"],[\"Germany\",\"049\"],[\"Ethiopia\",\"251\"]],\"Calls\":[[1,9,33],[2,9,4],[1,2,59],[3,12,102],[3,12,330],[12,3,5],[7,9,13],[7,1,3],[9,7,1],[1,7,7]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |