mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 06:51:41 +08:00
61 lines
3.9 KiB
JSON
61 lines
3.9 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "3746",
|
|
"questionFrontendId": "3401",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 3033181,
|
|
"title": "Find Circular Gift Exchange Chains",
|
|
"titleSlug": "find-circular-gift-exchange-chains",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Hard",
|
|
"likes": 0,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"16\", \"totalSubmission\": \"23\", \"totalAcceptedRaw\": 16, \"totalSubmissionRaw\": 23, \"acRate\": \"69.6%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"SecretSanta\":[\"giver_id\",\"receiver_id\",\"gift_value\"]},\"rows\":{\"SecretSanta\":[[1,2,20],[2,3,30],[3,1,40],[4,5,25],[5,4,35]]}}",
|
|
"metaData": "{\"mysql\":[\"CREATE TABLE SecretSanta (\\n giver_id INT,\\n receiver_id INT,\\n gift_value INT\\n)\\n\"],\"mssql\":[\"CREATE TABLE SecretSanta (\\n giver_id INT,\\n receiver_id INT,\\n gift_value INT\\n)\\n\"],\"oraclesql\":[\"CREATE TABLE SecretSanta (\\n giver_id NUMBER,\\n receiver_id NUMBER,\\n gift_value NUMBER\\n)\\n\"],\"database\":true,\"name\":\"find_gift_chains\",\"pythondata\":[\"SecretSanta = pd.DataFrame(columns=[\\\"giver_id\\\", \\\"receiver_id\\\", \\\"gift_value\\\"]).astype({\\\"giver_id\\\": \\\"int\\\", \\\"receiver_id\\\": \\\"int\\\", \\\"gift_value\\\": \\\"int\\\"})\\n\"],\"postgresql\":[\"CREATE TABLE SecretSanta (\\n giver_id INT,\\n receiver_id INT,\\n gift_value INT\\n)\\n\"],\"database_schema\":{\"SecretSanta\":{\"giver_id\":\"INT\",\"receiver_id\":\"INT\",\"gift_value\":\"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"CREATE TABLE SecretSanta (\n giver_id INT,\n receiver_id INT,\n gift_value INT\n)\n",
|
|
"Truncate table SecretSanta",
|
|
"insert into SecretSanta (giver_id, receiver_id, gift_value) values ('1', '2', '20')",
|
|
"insert into SecretSanta (giver_id, receiver_id, gift_value) values ('2', '3', '30')",
|
|
"insert into SecretSanta (giver_id, receiver_id, gift_value) values ('3', '1', '40')",
|
|
"insert into SecretSanta (giver_id, receiver_id, gift_value) values ('4', '5', '25')",
|
|
"insert into SecretSanta (giver_id, receiver_id, gift_value) values ('5', '4', '35')"
|
|
],
|
|
"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.2.2 and NumPy 1.26.4<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
|
|
"book": null,
|
|
"isSubscribed": false,
|
|
"isDailyQuestion": false,
|
|
"dailyRecordStatus": null,
|
|
"editorType": "CKEDITOR",
|
|
"ugcQuestionId": null,
|
|
"style": "LEETCODE",
|
|
"exampleTestcases": "{\"headers\":{\"SecretSanta\":[\"giver_id\",\"receiver_id\",\"gift_value\"]},\"rows\":{\"SecretSanta\":[[1,2,20],[2,3,30],[3,1,40],[4,5,25],[5,4,35]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |