mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-11 02:58:13 +08:00
62 lines
3.7 KiB
JSON
62 lines
3.7 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "2370",
|
|
"questionFrontendId": "2228",
|
|
"categoryTitle": "Database",
|
|
"boundTopicId": 1395841,
|
|
"title": "Users With Two Purchases Within Seven Days",
|
|
"titleSlug": "users-with-two-purchases-within-seven-days",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 0,
|
|
"dislikes": 0,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"contributors": [],
|
|
"langToValidPlayground": null,
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": "数据库",
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"134\", \"totalSubmission\": \"248\", \"totalAcceptedRaw\": 134, \"totalSubmissionRaw\": 248, \"acRate\": \"54.0%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Purchases\":[\"purchase_id\",\"user_id\",\"purchase_date\"]},\"rows\":{\"Purchases\":[[4,2,\"2022-03-13\"],[1,5,\"2022-02-11\"],[3,7,\"2022-06-19\"],[6,2,\"2022-03-20\"],[5,7,\"2022-06-19\"],[2,2,\"2022-06-08\"]]}}",
|
|
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Purchases (purchase_id int, user_id int, purchase_date date)\"\n ],\n \"mssql\": [\n \"Create table Purchases (purchase_id int, user_id int, purchase_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Purchases (purchase_id int, user_id int, purchase_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 Purchases (purchase_id int, user_id int, purchase_date date)",
|
|
"Truncate table Purchases",
|
|
"insert into Purchases (purchase_id, user_id, purchase_date) values ('4', '2', '2022-03-13')",
|
|
"insert into Purchases (purchase_id, user_id, purchase_date) values ('1', '5', '2022-02-11')",
|
|
"insert into Purchases (purchase_id, user_id, purchase_date) values ('3', '7', '2022-06-19')",
|
|
"insert into Purchases (purchase_id, user_id, purchase_date) values ('6', '2', '2022-03-20')",
|
|
"insert into Purchases (purchase_id, user_id, purchase_date) values ('5', '7', '2022-06-19')",
|
|
"insert into Purchases (purchase_id, user_id, purchase_date) values ('2', '2', '2022-06-08')"
|
|
],
|
|
"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\":{\"Purchases\":[\"purchase_id\",\"user_id\",\"purchase_date\"]},\"rows\":{\"Purchases\":[[4,2,\"2022-03-13\"],[1,5,\"2022-02-11\"],[3,7,\"2022-06-19\"],[6,2,\"2022-03-20\"],[5,7,\"2022-06-19\"],[2,2,\"2022-06-08\"]]}}",
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |