1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode/originData/[no content]users-with-two-purchases-within-seven-days.json

59 lines
4.2 KiB
JSON
Raw Normal View History

2022-04-24 17:05:32 +08:00
{
"data": {
"question": {
"questionId": "2370",
"questionFrontendId": "2228",
"boundTopicId": null,
"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",
2023-12-09 18:42:21 +08:00
"likes": 55,
"dislikes": 8,
2022-04-24 17:05:32 +08:00
"isLiked": null,
"similarQuestions": "[{\"title\": \"Biggest Window Between Visits\", \"titleSlug\": \"biggest-window-between-visits\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
"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\"]]}}",
"categoryTitle": "Database",
"contributors": [],
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
2023-12-09 18:42:21 +08:00
"stats": "{\"totalAccepted\": \"6.4K\", \"totalSubmission\": \"14.6K\", \"totalAcceptedRaw\": 6384, \"totalSubmissionRaw\": 14571, \"acRate\": \"43.8%\"}",
2022-04-24 17:05:32 +08:00
"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\"]]}}",
2023-12-09 18:42:21 +08:00
"metaData": "{\"mysql\": [\"Create table If Not Exists Purchases (purchase_id int, user_id int, purchase_date date)\"], \"mssql\": [\"Create table Purchases (purchase_id int, user_id int, purchase_date date)\"], \"oraclesql\": [\"Create table Purchases (purchase_id int, user_id int, purchase_date date)\", \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"], \"database\": true, \"name\": \"find_valid_users\", \"pythondata\": [\"Purchases = pd.DataFrame([], columns=['purchase_id', 'user_id', 'purchase_date']).astype({'purchase_id':'Int64', 'user_id':'Int64', 'purchase_date':'datetime64[ns]'})\"], \"postgresql\": [\"Create table If Not Exists Purchases (purchase_id int, user_id int, purchase_date date)\"], \"database_schema\": {\"Purchases\": {\"purchase_id\": \"INT\", \"user_id\": \"INT\", \"purchase_date\": \"DATE\"}}}",
2022-04-24 17:05:32 +08:00
"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,
"enableTestMode": false,
"enableDebugger": false,
2023-12-09 18:42:21 +08:00
"envInfo": "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"], \"pythondata\": [\"Pandas\", \"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0</p>\"], \"postgresql\": [\"PostgreSQL\", \"<p>PostgreSQL 16</p>\"]}",
2022-04-24 17:05:32 +08:00
"libraryUrl": null,
"adminUrl": null,
"challengeQuestion": null,
"__typename": "QuestionNode"
}
}
}