mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
73 lines
5.6 KiB
JSON
73 lines
5.6 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "1467",
|
|
"questionFrontendId": "1336",
|
|
"boundTopicId": null,
|
|
"title": "Number of Transactions per Visit",
|
|
"titleSlug": "number-of-transactions-per-visit",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Hard",
|
|
"likes": 59,
|
|
"dislikes": 244,
|
|
"isLiked": null,
|
|
"similarQuestions": "[{\"title\": \"Find the Missing IDs\", \"titleSlug\": \"find-the-missing-ids\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
|
"exampleTestcases": "{\"headers\":{\"Visits\":[\"user_id\",\"visit_date\"],\"Transactions\":[\"user_id\",\"transaction_date\",\"amount\"]},\"rows\":{\"Visits\":[[1,\"2020-01-01\"],[2,\"2020-01-02\"],[12,\"2020-01-01\"],[19,\"2020-01-03\"],[1,\"2020-01-02\"],[2,\"2020-01-03\"],[1,\"2020-01-04\"],[7,\"2020-01-11\"],[9,\"2020-01-25\"],[8,\"2020-01-28\"]],\"Transactions\":[[1,\"2020-01-02\",120],[2,\"2020-01-03\",22],[7,\"2020-01-11\",232],[1,\"2020-01-04\",7],[9,\"2020-01-25\",33],[9,\"2020-01-25\",66],[8,\"2020-01-28\",1],[9,\"2020-01-25\",99]]}}",
|
|
"categoryTitle": "Database",
|
|
"contributors": [],
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": null,
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"8.8K\", \"totalSubmission\": \"17K\", \"totalAcceptedRaw\": 8757, \"totalSubmissionRaw\": 17045, \"acRate\": \"51.4%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Visits\":[\"user_id\",\"visit_date\"],\"Transactions\":[\"user_id\",\"transaction_date\",\"amount\"]},\"rows\":{\"Visits\":[[1,\"2020-01-01\"],[2,\"2020-01-02\"],[12,\"2020-01-01\"],[19,\"2020-01-03\"],[1,\"2020-01-02\"],[2,\"2020-01-03\"],[1,\"2020-01-04\"],[7,\"2020-01-11\"],[9,\"2020-01-25\"],[8,\"2020-01-28\"]],\"Transactions\":[[1,\"2020-01-02\",120],[2,\"2020-01-03\",22],[7,\"2020-01-11\",232],[1,\"2020-01-04\",7],[9,\"2020-01-25\",33],[9,\"2020-01-25\",66],[8,\"2020-01-28\",1],[9,\"2020-01-25\",99]]}}",
|
|
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Visits (user_id int, visit_date date)\",\n \"Create table If Not Exists Transactions (user_id int, transaction_date date, amount int)\"\n ],\n \"mssql\": [\n \"Create table Visits (user_id int, visit_date date)\",\n \"Create table Transactions (user_id int, transaction_date date, amount int)\"\n ],\n \"oraclesql\": [\n \"Create table Visits (user_id int, visit_date date)\",\n \"Create table Transactions (user_id int, transaction_date date, amount int)\",\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 Visits (user_id int, visit_date date)",
|
|
"Create table If Not Exists Transactions (user_id int, transaction_date date, amount int)",
|
|
"Truncate table Visits",
|
|
"insert into Visits (user_id, visit_date) values ('1', '2020-01-01')",
|
|
"insert into Visits (user_id, visit_date) values ('2', '2020-01-02')",
|
|
"insert into Visits (user_id, visit_date) values ('12', '2020-01-01')",
|
|
"insert into Visits (user_id, visit_date) values ('19', '2020-01-03')",
|
|
"insert into Visits (user_id, visit_date) values ('1', '2020-01-02')",
|
|
"insert into Visits (user_id, visit_date) values ('2', '2020-01-03')",
|
|
"insert into Visits (user_id, visit_date) values ('1', '2020-01-04')",
|
|
"insert into Visits (user_id, visit_date) values ('7', '2020-01-11')",
|
|
"insert into Visits (user_id, visit_date) values ('9', '2020-01-25')",
|
|
"insert into Visits (user_id, visit_date) values ('8', '2020-01-28')",
|
|
"Truncate table Transactions",
|
|
"insert into Transactions (user_id, transaction_date, amount) values ('1', '2020-01-02', '120')",
|
|
"insert into Transactions (user_id, transaction_date, amount) values ('2', '2020-01-03', '22')",
|
|
"insert into Transactions (user_id, transaction_date, amount) values ('7', '2020-01-11', '232')",
|
|
"insert into Transactions (user_id, transaction_date, amount) values ('1', '2020-01-04', '7')",
|
|
"insert into Transactions (user_id, transaction_date, amount) values ('9', '2020-01-25', '33')",
|
|
"insert into Transactions (user_id, transaction_date, amount) values ('9', '2020-01-25', '66')",
|
|
"insert into Transactions (user_id, transaction_date, amount) values ('8', '2020-01-28', '1')",
|
|
"insert into Transactions (user_id, transaction_date, amount) values ('9', '2020-01-25', '99')"
|
|
],
|
|
"enableRunCode": true,
|
|
"enableTestMode": false,
|
|
"enableDebugger": false,
|
|
"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>\"]}",
|
|
"libraryUrl": null,
|
|
"adminUrl": null,
|
|
"challengeQuestion": null,
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |