1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/originData/[no content]user-purchase-platform.json

62 lines
4.7 KiB
JSON

{
"data": {
"question": {
"questionId": "1226",
"questionFrontendId": "1127",
"categoryTitle": "Database",
"boundTopicId": 33151,
"title": "User Purchase Platform",
"titleSlug": "user-purchase-platform",
"content": null,
"translatedTitle": "用户购买平台",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 75,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"8.4K\", \"totalSubmission\": \"19.6K\", \"totalAcceptedRaw\": 8404, \"totalSubmissionRaw\": 19631, \"acRate\": \"42.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Spending\":[\"user_id\",\"spend_date\",\"platform\",\"amount\"]},\"rows\":{\"Spending\":[[1,\"2019-07-01\",\"mobile\",100],[1,\"2019-07-01\",\"desktop\",100],[2,\"2019-07-01\",\"mobile\",100],[2,\"2019-07-02\",\"mobile\",100],[3,\"2019-07-01\",\"desktop\",100],[3,\"2019-07-02\",\"desktop\",100]]}}",
"metaData": "{\"mysql\":[\"Create table If Not Exists Spending (user_id int, spend_date date, platform ENUM('desktop', 'mobile'), amount int)\"],\"mssql\":[\"create table Spending (user_id int, spend_date date, platform VARCHAR(10) NOT NULL CHECK (platform IN ('desktop', 'mobile')), amount int)\"],\"oraclesql\":[\"create table Spending (user_id int, spend_date date, platform VARCHAR(10) NOT NULL CHECK (platform IN ('desktop', 'mobile')), amount int)\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"],\"database\":true,\"name\":\"user_purchase\",\"pythondata\":[\"Spending = pd.DataFrame([], columns=['user_id', 'spend_date', 'platform', 'amount']).astype({'user_id':'Int64', 'spend_date':'datetime64[ns]', 'platform':'object', 'amount':'Int64'})\\n\"],\"postgresql\":[\"Create table If Not Exists Spending (user_id int, spend_date date, platform VARCHAR(10) CHECK (platform IN ('desktop', 'mobile')), amount int)\\n\"],\"database_schema\":{\"Spending\":{\"user_id\":\"INT\",\"spend_date\":\"DATE\",\"platform\":\"ENUM('desktop', 'mobile')\",\"amount\":\"INT\"}}}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Spending (user_id int, spend_date date, platform ENUM('desktop', 'mobile'), amount int)",
"Truncate table Spending",
"insert into Spending (user_id, spend_date, platform, amount) values ('1', '2019-07-01', 'mobile', '100')",
"insert into Spending (user_id, spend_date, platform, amount) values ('1', '2019-07-01', 'desktop', '100')",
"insert into Spending (user_id, spend_date, platform, amount) values ('2', '2019-07-01', 'mobile', '100')",
"insert into Spending (user_id, spend_date, platform, amount) values ('2', '2019-07-02', 'mobile', '100')",
"insert into Spending (user_id, spend_date, platform, amount) values ('3', '2019-07-01', 'desktop', '100')",
"insert into Spending (user_id, spend_date, platform, amount) values ('3', '2019-07-02', 'desktop', '100')"
],
"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\":{\"Spending\":[\"user_id\",\"spend_date\",\"platform\",\"amount\"]},\"rows\":{\"Spending\":[[1,\"2019-07-01\",\"mobile\",100],[1,\"2019-07-01\",\"desktop\",100],[2,\"2019-07-01\",\"mobile\",100],[2,\"2019-07-02\",\"mobile\",100],[3,\"2019-07-01\",\"desktop\",100],[3,\"2019-07-02\",\"desktop\",100]]}}",
"__typename": "QuestionNode"
}
}
}