1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-01 21:03:27 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

add leetcode problem-cn part1

This commit is contained in:
2022-03-27 20:37:52 +08:00
parent 8e542045d1
commit c554fc6908
1285 changed files with 108123 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
{
"data": {
"question": {
"questionId": "1225",
"questionFrontendId": "1126",
"categoryTitle": "Database",
"boundTopicId": 33222,
"title": "Active Businesses",
"titleSlug": "active-businesses",
"content": null,
"translatedTitle": "查询活跃业务",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 43,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"8K\", \"totalSubmission\": \"11.6K\", \"totalAcceptedRaw\": 7955, \"totalSubmissionRaw\": 11588, \"acRate\": \"68.6%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Events\":[\"business_id\",\"event_type\",\"occurences\"]},\"rows\":{\"Events\":[[1,\"reviews\",7],[3,\"reviews\",3],[1,\"ads\",11],[2,\"ads\",7],[3,\"ads\",6],[1,\"page views\",3],[2,\"page views\",12]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Events (business_id int, event_type varchar(10), occurences int)\"\n ],\n \"mssql\": [\n \"Create table Events (business_id int, event_type varchar(10), occurences int)\"\n ],\n \"oraclesql\": [\n \"Create table Events (business_id int, event_type varchar(10), occurences int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Events (business_id int, event_type varchar(10), occurences int)",
"Truncate table Events",
"insert into Events (business_id, event_type, occurences) values ('1', 'reviews', '7')",
"insert into Events (business_id, event_type, occurences) values ('3', 'reviews', '3')",
"insert into Events (business_id, event_type, occurences) values ('1', 'ads', '11')",
"insert into Events (business_id, event_type, occurences) values ('2', 'ads', '7')",
"insert into Events (business_id, event_type, occurences) values ('3', 'ads', '6')",
"insert into Events (business_id, event_type, occurences) values ('1', 'page views', '3')",
"insert into Events (business_id, event_type, occurences) values ('2', 'page views', '12')"
],
"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\":{\"Events\":[\"business_id\",\"event_type\",\"occurences\"]},\"rows\":{\"Events\":[[1,\"reviews\",7],[3,\"reviews\",3],[1,\"ads\",11],[2,\"ads\",7],[3,\"ads\",6],[1,\"page views\",3],[2,\"page views\",12]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,69 @@
{
"data": {
"question": {
"questionId": "1579",
"questionFrontendId": "1454",
"categoryTitle": "Database",
"boundTopicId": 258463,
"title": "Active Users",
"titleSlug": "active-users",
"content": null,
"translatedTitle": "活跃用户",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 51,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"6.5K\", \"totalSubmission\": \"16.3K\", \"totalAcceptedRaw\": 6452, \"totalSubmissionRaw\": 16313, \"acRate\": \"39.6%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Accounts\":[\"id\",\"name\"],\"Logins\":[\"id\",\"login_date\"]},\"rows\":{\"Accounts\":[[1,\"Winston\"],[7,\"Jonathan\"]],\"Logins\":[[7,\"2020-05-30\"],[1,\"2020-05-30\"],[7,\"2020-05-31\"],[7,\"2020-06-01\"],[7,\"2020-06-02\"],[7,\"2020-06-02\"],[7,\"2020-06-03\"],[1,\"2020-06-07\"],[7,\"2020-06-10\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Accounts (id int, name varchar(10))\",\n \"Create table If Not Exists Logins (id int, login_date date)\"\n ],\n \"mssql\": [\n \"Create table Accounts (id int, name varchar(10))\",\n \"Create table Logins (id int, login_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Accounts (id int, name varchar(10))\",\n \"Create table Logins (id int, login_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 Accounts (id int, name varchar(10))",
"Create table If Not Exists Logins (id int, login_date date)",
"Truncate table Accounts",
"insert into Accounts (id, name) values ('1', 'Winston')",
"insert into Accounts (id, name) values ('7', 'Jonathan')",
"Truncate table Logins",
"insert into Logins (id, login_date) values ('7', '2020-05-30')",
"insert into Logins (id, login_date) values ('1', '2020-05-30')",
"insert into Logins (id, login_date) values ('7', '2020-05-31')",
"insert into Logins (id, login_date) values ('7', '2020-06-01')",
"insert into Logins (id, login_date) values ('7', '2020-06-02')",
"insert into Logins (id, login_date) values ('7', '2020-06-02')",
"insert into Logins (id, login_date) values ('7', '2020-06-03')",
"insert into Logins (id, login_date) values ('1', '2020-06-07')",
"insert into Logins (id, login_date) values ('7', '2020-06-10')"
],
"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\":{\"Accounts\":[\"id\",\"name\"],\"Logins\":[\"id\",\"login_date\"]},\"rows\":{\"Accounts\":[[1,\"Winston\"],[7,\"Jonathan\"]],\"Logins\":[[7,\"2020-05-30\"],[1,\"2020-05-30\"],[7,\"2020-05-31\"],[7,\"2020-06-01\"],[7,\"2020-06-02\"],[7,\"2020-06-02\"],[7,\"2020-06-03\"],[1,\"2020-06-07\"],[7,\"2020-06-10\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,67 @@
{
"data": {
"question": {
"questionId": "1494",
"questionFrontendId": "1355",
"categoryTitle": "Database",
"boundTopicId": 105475,
"title": "Activity Participants",
"titleSlug": "activity-participants",
"content": null,
"translatedTitle": "活动参与者",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 24,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5K\", \"totalSubmission\": \"7.5K\", \"totalAcceptedRaw\": 5015, \"totalSubmissionRaw\": 7512, \"acRate\": \"66.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Friends\": [\"id\", \"name\", \"activity\"], \"Activities\": [\"id\", \"name\"]}, \"rows\": {\"Friends\": [[1, \"Jonathan D.\", \"Eating\"], [2, \"Jade W.\", \"Singing\"], [3, \"Victor J.\", \"Singing\"], [4, \"Elvis Q.\", \"Eating\"], [5, \"Daniel A.\", \"Eating\"], [6, \"Bob B.\", \"Horse Riding\"]], \"Activities\": [[1, \"Eating\"], [2, \"Singing\"], [3, \"Horse Riding\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Friends (id int, name varchar(30), activity varchar(30))\",\n \"Create table If Not Exists Activities (id int, name varchar(30))\"\n ],\n \"mssql\": [\n \"Create table Friends (id int, name varchar(30), activity varchar(30))\",\n \"Create table Activities (id int, name varchar(30))\"\n ],\n \"oraclesql\": [\n \"Create table Friends (id int, name varchar(30), activity varchar(30))\",\n \"Create table Activities (id int, name varchar(30))\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Friends (id int, name varchar(30), activity varchar(30))",
"Create table If Not Exists Activities (id int, name varchar(30))",
"Truncate table Friends",
"insert into Friends (id, name, activity) values ('1', 'Jonathan D.', 'Eating')",
"insert into Friends (id, name, activity) values ('2', 'Jade W.', 'Singing')",
"insert into Friends (id, name, activity) values ('3', 'Victor J.', 'Singing')",
"insert into Friends (id, name, activity) values ('4', 'Elvis Q.', 'Eating')",
"insert into Friends (id, name, activity) values ('5', 'Daniel A.', 'Eating')",
"insert into Friends (id, name, activity) values ('6', 'Bob B.', 'Horse Riding')",
"Truncate table Activities",
"insert into Activities (id, name) values ('1', 'Eating')",
"insert into Activities (id, name) values ('2', 'Singing')",
"insert into Activities (id, name) values ('3', 'Horse Riding')"
],
"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\": {\"Friends\": [\"id\", \"name\", \"activity\"], \"Activities\": [\"id\", \"name\"]}, \"rows\": {\"Friends\": [[1, \"Jonathan D.\", \"Eating\"], [2, \"Jade W.\", \"Singing\"], [3, \"Victor J.\", \"Singing\"], [4, \"Elvis Q.\", \"Eating\"], [5, \"Daniel A.\", \"Eating\"], [6, \"Bob B.\", \"Horse Riding\"]], \"Activities\": [[1, \"Eating\"], [2, \"Singing\"], [3, \"Horse Riding\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,66 @@
{
"data": {
"question": {
"questionId": "1453",
"questionFrontendId": "1322",
"categoryTitle": "Database",
"boundTopicId": 76185,
"title": "Ads Performance",
"titleSlug": "ads-performance",
"content": null,
"translatedTitle": "广告效果",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 33,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"6.8K\", \"totalSubmission\": \"11.4K\", \"totalAcceptedRaw\": 6804, \"totalSubmissionRaw\": 11374, \"acRate\": \"59.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Ads\":[\"ad_id\",\"user_id\",\"action\"]},\"rows\":{\"Ads\":[[1,1,\"Clicked\"],[2,2,\"Clicked\"],[3,3,\"Viewed\"],[5,5,\"Ignored\"],[1,7,\"Ignored\"],[2,7,\"Viewed\"],[3,5,\"Clicked\"],[1,4,\"Viewed\"],[2,11,\"Viewed\"],[1,2,\"Clicked\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Ads (ad_id int, user_id int, action ENUM('Clicked', 'Viewed', 'Ignored'))\"\n ],\n \"mssql\": [\n \"create table Ads (ad_id int, user_id int, action VARCHAR(10) NOT NULL CHECK (action IN ('Clicked', 'Viewed', 'Ignored')))\"\n ],\n \"oraclesql\": [\n \"create table Ads (ad_id int, user_id int, action VARCHAR(10) NOT NULL CHECK (action IN ('Clicked', 'Viewed', 'Ignored')))\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Ads (ad_id int, user_id int, action ENUM('Clicked', 'Viewed', 'Ignored'))",
"Truncate table Ads",
"insert into Ads (ad_id, user_id, action) values ('1', '1', 'Clicked')",
"insert into Ads (ad_id, user_id, action) values ('2', '2', 'Clicked')",
"insert into Ads (ad_id, user_id, action) values ('3', '3', 'Viewed')",
"insert into Ads (ad_id, user_id, action) values ('5', '5', 'Ignored')",
"insert into Ads (ad_id, user_id, action) values ('1', '7', 'Ignored')",
"insert into Ads (ad_id, user_id, action) values ('2', '7', 'Viewed')",
"insert into Ads (ad_id, user_id, action) values ('3', '5', 'Clicked')",
"insert into Ads (ad_id, user_id, action) values ('1', '4', 'Viewed')",
"insert into Ads (ad_id, user_id, action) values ('2', '11', 'Viewed')",
"insert into Ads (ad_id, user_id, action) values ('1', '2', 'Clicked')"
],
"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\":{\"Ads\":[\"ad_id\",\"user_id\",\"action\"]},\"rows\":{\"Ads\":[[1,1,\"Clicked\"],[2,2,\"Clicked\"],[3,3,\"Viewed\"],[5,5,\"Ignored\"],[1,7,\"Ignored\"],[2,7,\"Viewed\"],[3,5,\"Clicked\"],[1,4,\"Viewed\"],[2,11,\"Viewed\"],[1,2,\"Clicked\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,64 @@
{
"data": {
"question": {
"questionId": "1405",
"questionFrontendId": "1270",
"categoryTitle": "Database",
"boundTopicId": 47942,
"title": "All People Report to the Given Manager",
"titleSlug": "all-people-report-to-the-given-manager",
"content": null,
"translatedTitle": "向公司CEO汇报工作的所有人",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 52,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"7.3K\", \"totalSubmission\": \"9.1K\", \"totalAcceptedRaw\": 7331, \"totalSubmissionRaw\": 9122, \"acRate\": \"80.4%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Employees\":[\"employee_id\",\"employee_name\",\"manager_id\"]},\"rows\":{\"Employees\":[[1,\"Boss\",1],[3,\"Alice\",3],[2,\"Bob\",1],[4,\"Daniel\",2],[7,\"Luis\",4],[8,\"John\",3],[9,\"Angela\",8],[77,\"Robert\",1]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employees (employee_id int, employee_name varchar(30), manager_id int)\"\n ],\n \"mssql\": [\n \"Create table Employees (employee_id int, employee_name varchar(30), manager_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Employees (employee_id int, employee_name varchar(30), manager_id int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Employees (employee_id int, employee_name varchar(30), manager_id int)",
"Truncate table Employees",
"insert into Employees (employee_id, employee_name, manager_id) values ('1', 'Boss', '1')",
"insert into Employees (employee_id, employee_name, manager_id) values ('3', 'Alice', '3')",
"insert into Employees (employee_id, employee_name, manager_id) values ('2', 'Bob', '1')",
"insert into Employees (employee_id, employee_name, manager_id) values ('4', 'Daniel', '2')",
"insert into Employees (employee_id, employee_name, manager_id) values ('7', 'Luis', '4')",
"insert into Employees (employee_id, employee_name, manager_id) values ('8', 'John', '3')",
"insert into Employees (employee_id, employee_name, manager_id) values ('9', 'Angela', '8')",
"insert into Employees (employee_id, employee_name, manager_id) values ('77', 'Robert', '1')"
],
"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\":{\"Employees\":[\"employee_id\",\"employee_name\",\"manager_id\"]},\"rows\":{\"Employees\":[[1,\"Boss\",1],[3,\"Alice\",3],[2,\"Bob\",1],[4,\"Daniel\",2],[7,\"Luis\",4],[8,\"John\",3],[9,\"Angela\",8],[77,\"Robert\",1]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,64 @@
{
"data": {
"question": {
"questionId": "1578",
"questionFrontendId": "1445",
"categoryTitle": "Database",
"boundTopicId": 248907,
"title": "Apples & Oranges",
"titleSlug": "apples-oranges",
"content": null,
"translatedTitle": "苹果和桔子",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 20,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5.1K\", \"totalSubmission\": \"5.9K\", \"totalAcceptedRaw\": 5078, \"totalSubmissionRaw\": 5905, \"acRate\": \"86.0%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Sales\":[\"sale_date\",\"fruit\",\"sold_num\"]},\"rows\":{\"Sales\":[[\"2020-05-01\",\"apples\",10],[\"2020-05-01\",\"oranges\",8],[\"2020-05-02\",\"apples\",15],[\"2020-05-02\",\"oranges\",15],[\"2020-05-03\",\"apples\",20],[\"2020-05-03\",\"oranges\",0],[\"2020-05-04\",\"apples\",15],[\"2020-05-04\",\"oranges\",16]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Sales (sale_date date, fruit ENUM('apples', 'oranges'), sold_num int)\"\n ],\n \"mssql\": [\n \"Create Table Sales (sale_date date, fruit varchar(10) NOT NULL CHECK (fruit IN ('apples', 'oranges')), sold_num int)\"\n ],\n \"oraclesql\": [\n \"Create Table Sales (sale_date date, fruit varchar(10) NOT NULL CHECK (fruit IN ('apples', 'oranges')), sold_num 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 Sales (sale_date date, fruit ENUM('apples', 'oranges'), sold_num int)",
"Truncate table Sales",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-01', 'apples', '10')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-01', 'oranges', '8')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-02', 'apples', '15')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-02', 'oranges', '15')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-03', 'apples', '20')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-03', 'oranges', '0')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-04', 'apples', '15')",
"insert into Sales (sale_date, fruit, sold_num) values ('2020-05-04', 'oranges', '16')"
],
"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\":{\"Sales\":[\"sale_date\",\"fruit\",\"sold_num\"]},\"rows\":{\"Sales\":[[\"2020-05-01\",\"apples\",10],[\"2020-05-01\",\"oranges\",8],[\"2020-05-02\",\"apples\",15],[\"2020-05-02\",\"oranges\",15],[\"2020-05-03\",\"apples\",20],[\"2020-05-03\",\"oranges\",0],[\"2020-05-04\",\"apples\",15],[\"2020-05-04\",\"oranges\",16]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,64 @@
{
"data": {
"question": {
"questionId": "1259",
"questionFrontendId": "1149",
"categoryTitle": "Database",
"boundTopicId": 33167,
"title": "Article Views II",
"titleSlug": "article-views-ii",
"content": null,
"translatedTitle": "文章浏览 II",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 22,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"7.2K\", \"totalSubmission\": \"16.2K\", \"totalAcceptedRaw\": 7209, \"totalSubmissionRaw\": 16185, \"acRate\": \"44.5%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Views\":[\"article_id\",\"author_id\",\"viewer_id\",\"view_date\"]},\"rows\":{\"Views\":[[1,3,5,\"2019-08-01\"],[3,4,5,\"2019-08-01\"],[1,3,6,\"2019-08-02\"],[2,7,7,\"2019-08-01\"],[2,7,6,\"2019-08-02\"],[4,7,1,\"2019-07-22\"],[3,4,4,\"2019-07-21\"],[3,4,4,\"2019-07-21\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Views (article_id int, author_id int, viewer_id int, view_date date)\"\n ],\n \"mssql\": [\n \"Create table Views (article_id int, author_id int, viewer_id int, view_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Views (article_id int, author_id int, viewer_id int, view_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 Views (article_id int, author_id int, viewer_id int, view_date date)",
"Truncate table Views",
"insert into Views (article_id, author_id, viewer_id, view_date) values ('1', '3', '5', '2019-08-01')",
"insert into Views (article_id, author_id, viewer_id, view_date) values ('3', '4', '5', '2019-08-01')",
"insert into Views (article_id, author_id, viewer_id, view_date) values ('1', '3', '6', '2019-08-02')",
"insert into Views (article_id, author_id, viewer_id, view_date) values ('2', '7', '7', '2019-08-01')",
"insert into Views (article_id, author_id, viewer_id, view_date) values ('2', '7', '6', '2019-08-02')",
"insert into Views (article_id, author_id, viewer_id, view_date) values ('4', '7', '1', '2019-07-22')",
"insert into Views (article_id, author_id, viewer_id, view_date) values ('3', '4', '4', '2019-07-21')",
"insert into Views (article_id, author_id, viewer_id, view_date) values ('3', '4', '4', '2019-07-21')"
],
"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\":{\"Views\":[\"article_id\",\"author_id\",\"viewer_id\",\"view_date\"]},\"rows\":{\"Views\":[[1,3,5,\"2019-08-01\"],[3,4,5,\"2019-08-01\"],[1,3,6,\"2019-08-02\"],[2,7,7,\"2019-08-01\"],[2,7,6,\"2019-08-02\"],[4,7,1,\"2019-07-22\"],[3,4,4,\"2019-07-21\"],[3,4,4,\"2019-07-21\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,66 @@
{
"data": {
"question": {
"questionId": "1390",
"questionFrontendId": "1251",
"categoryTitle": "Database",
"boundTopicId": 41811,
"title": "Average Selling Price",
"titleSlug": "average-selling-price",
"content": null,
"translatedTitle": "平均售价",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 35,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"9.9K\", \"totalSubmission\": \"12.8K\", \"totalAcceptedRaw\": 9868, \"totalSubmissionRaw\": 12770, \"acRate\": \"77.3%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Prices\":[\"product_id\",\"start_date\",\"end_date\",\"price\"],\"UnitsSold\":[\"product_id\",\"purchase_date\",\"units\"]},\"rows\":{\"Prices\":[[1,\"2019-02-17\",\"2019-02-28\",5],[1,\"2019-03-01\",\"2019-03-22\",20],[2,\"2019-02-01\",\"2019-02-20\",15],[2,\"2019-02-21\",\"2019-03-31\",30]],\"UnitsSold\":[[1,\"2019-02-25\",100],[1,\"2019-03-01\",15],[2,\"2019-02-10\",200],[2,\"2019-03-22\",30]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Prices (product_id int, start_date date, end_date date, price int)\",\n \"Create table If Not Exists UnitsSold (product_id int, purchase_date date, units int)\"\n ],\n \"mssql\": [\n \"Create table Prices (product_id int, start_date date, end_date date, price int)\",\n \"Create table UnitsSold (product_id int, purchase_date date, units int)\"\n ],\n \"oraclesql\": [\n \"Create table Prices (product_id int, start_date date, end_date date, price int)\",\n \"Create table UnitsSold (product_id int, purchase_date date, units 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 Prices (product_id int, start_date date, end_date date, price int)",
"Create table If Not Exists UnitsSold (product_id int, purchase_date date, units int)",
"Truncate table Prices",
"insert into Prices (product_id, start_date, end_date, price) values ('1', '2019-02-17', '2019-02-28', '5')",
"insert into Prices (product_id, start_date, end_date, price) values ('1', '2019-03-01', '2019-03-22', '20')",
"insert into Prices (product_id, start_date, end_date, price) values ('2', '2019-02-01', '2019-02-20', '15')",
"insert into Prices (product_id, start_date, end_date, price) values ('2', '2019-02-21', '2019-03-31', '30')",
"Truncate table UnitsSold",
"insert into UnitsSold (product_id, purchase_date, units) values ('1', '2019-02-25', '100')",
"insert into UnitsSold (product_id, purchase_date, units) values ('1', '2019-03-01', '15')",
"insert into UnitsSold (product_id, purchase_date, units) values ('2', '2019-02-10', '200')",
"insert into UnitsSold (product_id, purchase_date, units) values ('2', '2019-03-22', '30')"
],
"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\":{\"Prices\":[\"product_id\",\"start_date\",\"end_date\",\"price\"],\"UnitsSold\":[\"product_id\",\"purchase_date\",\"units\"]},\"rows\":{\"Prices\":[[1,\"2019-02-17\",\"2019-02-28\",5],[1,\"2019-03-01\",\"2019-03-22\",20],[2,\"2019-02-01\",\"2019-02-20\",15],[2,\"2019-02-21\",\"2019-03-31\",30]],\"UnitsSold\":[[1,\"2019-02-25\",100],[1,\"2019-03-01\",15],[2,\"2019-02-10\",200],[2,\"2019-03-22\",30]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,66 @@
{
"data": {
"question": {
"questionId": "1608",
"questionFrontendId": "1468",
"categoryTitle": "Database",
"boundTopicId": 274215,
"title": "Calculate Salaries",
"titleSlug": "calculate-salaries",
"content": null,
"translatedTitle": "计算税后工资",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 13,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"3.8K\", \"totalSubmission\": \"5.4K\", \"totalAcceptedRaw\": 3780, \"totalSubmissionRaw\": 5418, \"acRate\": \"69.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Salaries\":[\"company_id\",\"employee_id\",\"employee_name\",\"salary\"]},\"rows\":{\"Salaries\":[[1,1,\"Tony\",2000],[1,2,\"Pronub\",21300],[1,3,\"Tyrrox\",10800],[2,1,\"Pam\",300],[2,7,\"Bassem\",450],[2,9,\"Hermione\",700],[3,7,\"Bocaben\",100],[3,2,\"Ognjen\",2200],[3,13,\"Nyancat\",3300],[3,15,\"Morninngcat\",7777]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Salaries (company_id int, employee_id int, employee_name varchar(13), salary int)\"\n ],\n \"mssql\": [\n \"Create table Salaries (company_id int, employee_id int, employee_name varchar(13), salary int)\"\n ],\n \"oraclesql\": [\n \"Create table Salaries (company_id int, employee_id int, employee_name varchar(13), salary int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Salaries (company_id int, employee_id int, employee_name varchar(13), salary int)",
"Truncate table Salaries",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('1', '1', 'Tony', '2000')",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('1', '2', 'Pronub', '21300')",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('1', '3', 'Tyrrox', '10800')",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('2', '1', 'Pam', '300')",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('2', '7', 'Bassem', '450')",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('2', '9', 'Hermione', '700')",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('3', '7', 'Bocaben', '100')",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('3', '2', 'Ognjen', '2200')",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('3', '13', 'Nyancat', '3300')",
"insert into Salaries (company_id, employee_id, employee_name, salary) values ('3', '15', 'Morninngcat', '7777')"
],
"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\":{\"Salaries\":[\"company_id\",\"employee_id\",\"employee_name\",\"salary\"]},\"rows\":{\"Salaries\":[[1,1,\"Tony\",2000],[1,2,\"Pronub\",21300],[1,3,\"Tyrrox\",10800],[2,1,\"Pam\",300],[2,7,\"Bassem\",450],[2,9,\"Hermione\",700],[3,7,\"Bocaben\",100],[3,2,\"Ognjen\",2200],[3,13,\"Nyancat\",3300],[3,15,\"Morninngcat\",7777]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,81 @@
{
"data": {
"question": {
"questionId": "1641",
"questionFrontendId": "1501",
"categoryTitle": "Database",
"boundTopicId": 313071,
"title": "Countries You Can Safely Invest In",
"titleSlug": "countries-you-can-safely-invest-in",
"content": null,
"translatedTitle": "可以放心投资的国家",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 26,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5K\", \"totalSubmission\": \"8.4K\", \"totalAcceptedRaw\": 4997, \"totalSubmissionRaw\": 8385, \"acRate\": \"59.6%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Person\":[\"id\",\"name\",\"phone_number\"],\"Country\":[\"name\",\"country_code\"],\"Calls\":[\"caller_id\",\"callee_id\",\"duration\"]},\"rows\":{\"Person\":[[3,\"Jonathan\",\"051-1234567\"],[12,\"Elvis\",\"051-7654321\"],[1,\"Moncef\",\"212-1234567\"],[2,\"Maroua\",\"212-6523651\"],[7,\"Meir\",\"972-1234567\"],[9,\"Rachel\",\"972-0011100\"]],\"Country\":[[\"Peru\",\"051\"],[\"Israel\",\"972\"],[\"Morocco\",\"212\"],[\"Germany\",\"049\"],[\"Ethiopia\",\"251\"]],\"Calls\":[[1,9,33],[2,9,4],[1,2,59],[3,12,102],[3,12,330],[12,3,5],[7,9,13],[7,1,3],[9,7,1],[1,7,7]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Person (id int, name varchar(15), phone_number varchar(11))\",\n \"Create table If Not Exists Country (name varchar(15), country_code varchar(3))\",\n \"Create table If Not Exists Calls (caller_id int, callee_id int, duration int)\"\n ],\n \"mssql\": [\n \"Create table Person (id int, name varchar(15), phone_number varchar(11))\",\n \"Create table Country (name varchar(15), country_code varchar(3))\",\n \"Create table Calls (caller_id int, callee_id int, duration int)\"\n ],\n \"oraclesql\": [\n \"Create table Person (id int, name varchar(15), phone_number varchar(11))\",\n \"Create table Country (name varchar(15), country_code varchar(3))\",\n \"Create table Calls (caller_id int, callee_id int, duration int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Person (id int, name varchar(15), phone_number varchar(11))",
"Create table If Not Exists Country (name varchar(15), country_code varchar(3))",
"Create table If Not Exists Calls (caller_id int, callee_id int, duration int)",
"Truncate table Person",
"insert into Person (id, name, phone_number) values ('3', 'Jonathan', '051-1234567')",
"insert into Person (id, name, phone_number) values ('12', 'Elvis', '051-7654321')",
"insert into Person (id, name, phone_number) values ('1', 'Moncef', '212-1234567')",
"insert into Person (id, name, phone_number) values ('2', 'Maroua', '212-6523651')",
"insert into Person (id, name, phone_number) values ('7', 'Meir', '972-1234567')",
"insert into Person (id, name, phone_number) values ('9', 'Rachel', '972-0011100')",
"Truncate table Country",
"insert into Country (name, country_code) values ('Peru', '051')",
"insert into Country (name, country_code) values ('Israel', '972')",
"insert into Country (name, country_code) values ('Morocco', '212')",
"insert into Country (name, country_code) values ('Germany', '049')",
"insert into Country (name, country_code) values ('Ethiopia', '251')",
"Truncate table Calls",
"insert into Calls (caller_id, callee_id, duration) values ('1', '9', '33')",
"insert into Calls (caller_id, callee_id, duration) values ('2', '9', '4')",
"insert into Calls (caller_id, callee_id, duration) values ('1', '2', '59')",
"insert into Calls (caller_id, callee_id, duration) values ('3', '12', '102')",
"insert into Calls (caller_id, callee_id, duration) values ('3', '12', '330')",
"insert into Calls (caller_id, callee_id, duration) values ('12', '3', '5')",
"insert into Calls (caller_id, callee_id, duration) values ('7', '9', '13')",
"insert into Calls (caller_id, callee_id, duration) values ('7', '1', '3')",
"insert into Calls (caller_id, callee_id, duration) values ('9', '7', '1')",
"insert into Calls (caller_id, callee_id, duration) values ('1', '7', '7')"
],
"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\":{\"Person\":[\"id\",\"name\",\"phone_number\"],\"Country\":[\"name\",\"country_code\"],\"Calls\":[\"caller_id\",\"callee_id\",\"duration\"]},\"rows\":{\"Person\":[[3,\"Jonathan\",\"051-1234567\"],[12,\"Elvis\",\"051-7654321\"],[1,\"Moncef\",\"212-1234567\"],[2,\"Maroua\",\"212-6523651\"],[7,\"Meir\",\"972-1234567\"],[9,\"Rachel\",\"972-0011100\"]],\"Country\":[[\"Peru\",\"051\"],[\"Israel\",\"972\"],[\"Morocco\",\"212\"],[\"Germany\",\"049\"],[\"Ethiopia\",\"251\"]],\"Calls\":[[1,9,33],[2,9,4],[1,2,59],[3,12,102],[3,12,330],[12,3,5],[7,9,13],[7,1,3],[9,7,1],[1,7,7]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,61 @@
{
"data": {
"question": {
"questionId": "1564",
"questionFrontendId": "1435",
"categoryTitle": "Database",
"boundTopicId": 229874,
"title": "Create a Session Bar Chart",
"titleSlug": "create-a-session-bar-chart",
"content": null,
"translatedTitle": "制作会话柱状图",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 27,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5.2K\", \"totalSubmission\": \"8.4K\", \"totalAcceptedRaw\": 5238, \"totalSubmissionRaw\": 8358, \"acRate\": \"62.7%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Sessions\": [\"session_id\", \"duration\"]}, \"rows\": {\"Sessions\": [[1, 30], [2, 199], [3, 299], [4, 580], [5, 1000]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Sessions (session_id int, duration int)\"\n ],\n \"mssql\": [\n \"Create table Sessions (session_id int, duration int)\"\n ],\n \"oraclesql\": [\n \"Create table Sessions (session_id int, duration int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Sessions (session_id int, duration int)",
"Truncate table Sessions",
"insert into Sessions (session_id, duration) values ('1', '30')",
"insert into Sessions (session_id, duration) values ('2', '199')",
"insert into Sessions (session_id, duration) values ('3', '299')",
"insert into Sessions (session_id, duration) values ('4', '580')",
"insert into Sessions (session_id, duration) values ('5', '1000')"
],
"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\": {\"Sessions\": [\"session_id\", \"duration\"]}, \"rows\": {\"Sessions\": [[1, 30], [2, 199], [3, 299], [4, 580], [5, 1000]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,75 @@
{
"data": {
"question": {
"questionId": "1654",
"questionFrontendId": "1511",
"categoryTitle": "Database",
"boundTopicId": 326422,
"title": "Customer Order Frequency",
"titleSlug": "customer-order-frequency",
"content": null,
"translatedTitle": "消费者下单频率",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 32,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5.6K\", \"totalSubmission\": \"8.2K\", \"totalAcceptedRaw\": 5648, \"totalSubmissionRaw\": 8211, \"acRate\": \"68.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Customers\": [\"customer_id\", \"name\", \"country\"], \"Product\": [\"product_id\", \"description\", \"price\"], \"Orders\": [\"order_id\", \"customer_id\", \"product_id\", \"order_date\", \"quantity\"]}, \"rows\": {\"Customers\": [[1, \"Winston\", \"USA\"], [2, \"Jonathan\", \"Peru\"], [3, \"Moustafa\", \"Egypt\"]], \"Product\": [[10, \"LC Phone\", 300], [20, \"LC T-Shirt\", 10], [30, \"LC Book\", 45], [40, \"LC Keychain\", 2]], \"Orders\": [[1, 1, 10, \"2020-06-10\", 1], [2, 1, 20, \"2020-07-01\", 1], [3, 1, 30, \"2020-07-08\", 2], [4, 2, 10, \"2020-06-15\", 2], [5, 2, 40, \"2020-07-01\", 10], [6, 3, 20, \"2020-06-24\", 2], [7, 3, 30, \"2020-06-25\", 2], [9, 3, 30, \"2020-05-08\", 3]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, name varchar(30), country varchar(30))\",\n \"Create table If Not Exists Product (product_id int, description varchar(30), price int)\\n\",\n \"Create table If Not Exists Orders (order_id int, customer_id int, product_id int, order_date date, quantity int)\\n\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, name varchar(30), country varchar(30))\\n\",\n \"Create table Product (product_id int, description varchar(30), price int)\",\n \"Create table Orders (order_id int, customer_id int, product_id int, order_date date, quantity int)\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, name varchar(30), country varchar(30))\",\n \"Create table Product (product_id int, description varchar(30), price int)\",\n \"Create table Orders (order_id int, customer_id int, product_id int, order_date date, quantity 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 Customers (customer_id int, name varchar(30), country varchar(30))",
"Create table If Not Exists Product (product_id int, description varchar(30), price int)\n",
"Create table If Not Exists Orders (order_id int, customer_id int, product_id int, order_date date, quantity int)\n",
"Truncate table Customers",
"insert into Customers (customer_id, name, country) values ('1', 'Winston', 'USA')",
"insert into Customers (customer_id, name, country) values ('2', 'Jonathan', 'Peru')",
"insert into Customers (customer_id, name, country) values ('3', 'Moustafa', 'Egypt')",
"Truncate table Product",
"insert into Product (product_id, description, price) values ('10', 'LC Phone', '300')",
"insert into Product (product_id, description, price) values ('20', 'LC T-Shirt', '10')",
"insert into Product (product_id, description, price) values ('30', 'LC Book', '45')",
"insert into Product (product_id, description, price) values ('40', 'LC Keychain', '2')",
"Truncate table Orders",
"insert into Orders (order_id, customer_id, product_id, order_date, quantity) values ('1', '1', '10', '2020-06-10', '1')",
"insert into Orders (order_id, customer_id, product_id, order_date, quantity) values ('2', '1', '20', '2020-07-01', '1')",
"insert into Orders (order_id, customer_id, product_id, order_date, quantity) values ('3', '1', '30', '2020-07-08', '2')",
"insert into Orders (order_id, customer_id, product_id, order_date, quantity) values ('4', '2', '10', '2020-06-15', '2')",
"insert into Orders (order_id, customer_id, product_id, order_date, quantity) values ('5', '2', '40', '2020-07-01', '10')",
"insert into Orders (order_id, customer_id, product_id, order_date, quantity) values ('6', '3', '20', '2020-06-24', '2')",
"insert into Orders (order_id, customer_id, product_id, order_date, quantity) values ('7', '3', '30', '2020-06-25', '2')",
"insert into Orders (order_id, customer_id, product_id, order_date, quantity) values ('9', '3', '30', '2020-05-08', '3')"
],
"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\": {\"Customers\": [\"customer_id\", \"name\", \"country\"], \"Product\": [\"product_id\", \"description\", \"price\"], \"Orders\": [\"order_id\", \"customer_id\", \"product_id\", \"order_date\", \"quantity\"]}, \"rows\": {\"Customers\": [[1, \"Winston\", \"USA\"], [2, \"Jonathan\", \"Peru\"], [3, \"Moustafa\", \"Egypt\"]], \"Product\": [[10, \"LC Phone\", 300], [20, \"LC T-Shirt\", 10], [30, \"LC Book\", 45], [40, \"LC Keychain\", 2]], \"Orders\": [[1, 1, 10, \"2020-06-10\", 1], [2, 1, 20, \"2020-07-01\", 1], [3, 1, 30, \"2020-07-08\", 2], [4, 2, 10, \"2020-06-15\", 2], [5, 2, 40, \"2020-07-01\", 10], [6, 3, 20, \"2020-06-24\", 2], [7, 3, 30, \"2020-06-25\", 2], [9, 3, 30, \"2020-05-08\", 3]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,65 @@
{
"data": {
"question": {
"questionId": "1135",
"questionFrontendId": "1045",
"categoryTitle": "Database",
"boundTopicId": 6079,
"title": "Customers Who Bought All Products",
"titleSlug": "customers-who-bought-all-products",
"content": null,
"translatedTitle": "买下所有产品的客户",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 33,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"11.1K\", \"totalSubmission\": \"17.3K\", \"totalAcceptedRaw\": 11097, \"totalSubmissionRaw\": 17316, \"acRate\": \"64.1%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Customer\":[\"customer_id\",\"product_key\"],\"Product\":[\"product_key\"]},\"rows\":{\"Customer\":[[1,5],[2,6],[3,5],[3,6],[1,6]],\"Product\":[[5],[6]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customer (customer_id int, product_key int)\",\n \"Create table Product (product_key int)\"\n ],\n \"mssql\": [\n \"Create table Customer (customer_id int, product_key int)\",\n \"Create table Product (product_key int)\"\n ],\n \"oraclesql\": [\n \"Create table Customer (customer_id int, product_key int)\",\n \"Create table Product (product_key int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Customer (customer_id int, product_key int)",
"Create table Product (product_key int)",
"Truncate table Customer",
"insert into Customer (customer_id, product_key) values ('1', '5')",
"insert into Customer (customer_id, product_key) values ('2', '6')",
"insert into Customer (customer_id, product_key) values ('3', '5')",
"insert into Customer (customer_id, product_key) values ('3', '6')",
"insert into Customer (customer_id, product_key) values ('1', '6')",
"Truncate table Product",
"insert into Product (product_key) values ('5')",
"insert into Product (product_key) values ('6')"
],
"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\":{\"Customer\":[\"customer_id\",\"product_key\"],\"Product\":[\"product_key\"]},\"rows\":{\"Customer\":[[1,5],[2,6],[3,5],[3,6],[1,6]],\"Product\":[[5],[6]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,71 @@
{
"data": {
"question": {
"questionId": "1536",
"questionFrontendId": "1398",
"categoryTitle": "Database",
"boundTopicId": 184968,
"title": "Customers Who Bought Products A and B but Not C",
"titleSlug": "customers-who-bought-products-a-and-b-but-not-c",
"content": null,
"translatedTitle": "购买了产品 A 和产品 B 却没有购买产品 C 的顾客",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 17,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5.5K\", \"totalSubmission\": \"7.3K\", \"totalAcceptedRaw\": 5479, \"totalSubmissionRaw\": 7256, \"acRate\": \"75.5%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"customer_name\"],\"Orders\":[\"order_id\",\"customer_id\",\"product_name\"]},\"rows\":{\"Customers\":[[1,\"Daniel\"],[2,\"Diana\"],[3,\"Elizabeth\"],[4,\"Jhon\"]],\"Orders\":[[10,1,\"A\"],[20,1,\"B\"],[30,1,\"D\"],[40,1,\"C\"],[50,2,\"A\"],[60,3,\"A\"],[70,3,\"B\"],[80,3,\"D\"],[90,4,\"C\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, customer_name varchar(30))\",\n \"Create table If Not Exists Orders (order_id int, customer_id int, product_name varchar(30))\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, customer_name varchar(30))\",\n \"Create table Orders (order_id int, customer_id int, product_name varchar(30))\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, customer_name varchar(30))\",\n \"Create table Orders (order_id int, customer_id int, product_name varchar(30))\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Customers (customer_id int, customer_name varchar(30))",
"Create table If Not Exists Orders (order_id int, customer_id int, product_name varchar(30))",
"Truncate table Customers",
"insert into Customers (customer_id, customer_name) values ('1', 'Daniel')",
"insert into Customers (customer_id, customer_name) values ('2', 'Diana')",
"insert into Customers (customer_id, customer_name) values ('3', 'Elizabeth')",
"insert into Customers (customer_id, customer_name) values ('4', 'Jhon')",
"Truncate table Orders",
"insert into Orders (order_id, customer_id, product_name) values ('10', '1', 'A')",
"insert into Orders (order_id, customer_id, product_name) values ('20', '1', 'B')",
"insert into Orders (order_id, customer_id, product_name) values ('30', '1', 'D')",
"insert into Orders (order_id, customer_id, product_name) values ('40', '1', 'C')",
"insert into Orders (order_id, customer_id, product_name) values ('50', '2', 'A')",
"insert into Orders (order_id, customer_id, product_name) values ('60', '3', 'A')",
"insert into Orders (order_id, customer_id, product_name) values ('70', '3', 'B')",
"insert into Orders (order_id, customer_id, product_name) values ('80', '3', 'D')",
"insert into Orders (order_id, customer_id, product_name) values ('90', '4', 'C')"
],
"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\":{\"Customers\":[\"customer_id\",\"customer_name\"],\"Orders\":[\"order_id\",\"customer_id\",\"product_name\"]},\"rows\":{\"Customers\":[[1,\"Daniel\"],[2,\"Diana\"],[3,\"Elizabeth\"],[4,\"Jhon\"]],\"Orders\":[[10,1,\"A\"],[20,1,\"B\"],[30,1,\"D\"],[40,1,\"C\"],[50,2,\"A\"],[60,3,\"A\"],[70,3,\"B\"],[80,3,\"D\"],[90,4,\"C\"]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,53 @@
{
"data": {
"question": {
"questionId": "1209",
"questionFrontendId": "1188",
"categoryTitle": "Concurrency",
"boundTopicId": 33165,
"title": "Design Bounded Blocking Queue",
"titleSlug": "design-bounded-blocking-queue",
"content": null,
"translatedTitle": "设计有限阻塞队列",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 34,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Concurrency",
"slug": "concurrency",
"translatedName": "多线程",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"4K\", \"totalSubmission\": \"5.7K\", \"totalAcceptedRaw\": 4005, \"totalSubmissionRaw\": 5691, \"acRate\": \"70.4%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "1\n1\n[\"BoundedBlockingQueue\",\"enqueue\",\"dequeue\",\"dequeue\",\"enqueue\",\"enqueue\",\"enqueue\",\"enqueue\",\"dequeue\"]\n[[2],[1],[],[],[0],[2],[3],[4],[]]",
"metaData": "{\n \"name\": \"foobar\",\n \"params\": [\n {\n \"name\": \"numsProducerThread\",\n \"type\": \"integer\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"numsConsumerThread\"\n },\n {\n \"type\": \"string[]\",\n \"name\": \"methods\"\n },\n {\n \"type\": \"integer[]\",\n \"name\": \"params\"\n }\n ],\n \"return\": {\n \"type\": \"integer\"\n },\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"python3\"\n ],\n \"manual\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [],
"enableRunCode": true,
"envInfo": "{\"cpp\":[\"C++\",\"<p>\\u7248\\u672c\\uff1a<code>clang 11<\\/code> \\u91c7\\u7528\\u6700\\u65b0C++ 17\\u6807\\u51c6\\u3002<\\/p>\\r\\n\\r\\n<p>\\u7f16\\u8bd1\\u65f6\\uff0c\\u5c06\\u4f1a\\u91c7\\u7528<code>-O2<\\/code>\\u7ea7\\u4f18\\u5316\\u3002<a href=\\\"https:\\/\\/github.com\\/google\\/sanitizers\\/wiki\\/AddressSanitizer\\\" target=\\\"_blank\\\">AddressSanitizer<\\/a> \\u4e5f\\u88ab\\u5f00\\u542f\\u6765\\u68c0\\u6d4b<code>out-of-bounds<\\/code>\\u548c<code>use-after-free<\\/code>\\u9519\\u8bef\\u3002<\\/p>\\r\\n\\r\\n<p>\\u4e3a\\u4e86\\u4f7f\\u7528\\u65b9\\u4fbf\\uff0c\\u5927\\u90e8\\u5206\\u6807\\u51c6\\u5e93\\u7684\\u5934\\u6587\\u4ef6\\u5df2\\u7ecf\\u88ab\\u81ea\\u52a8\\u5bfc\\u5165\\u3002<\\/p>\"],\"java\":[\"Java\",\"<p>\\u7248\\u672c\\uff1a<code>OpenJDK 17<\\/code>\\u3002\\u53ef\\u4ee5\\u4f7f\\u7528Java 8\\u7684\\u7279\\u6027\\u4f8b\\u5982\\uff0clambda expressions \\u548c stream API\\u3002<\\/p>\\r\\n\\r\\n<p>\\u4e3a\\u4e86\\u65b9\\u4fbf\\u8d77\\u89c1\\uff0c\\u5927\\u90e8\\u5206\\u6807\\u51c6\\u5e93\\u7684\\u5934\\u6587\\u4ef6\\u5df2\\u88ab\\u5bfc\\u5165\\u3002<\\/p>\\r\\n\\r\\n<p>\\u5305\\u542b Pair \\u7c7b: https:\\/\\/docs.oracle.com\\/javase\\/8\\/javafx\\/api\\/javafx\\/util\\/Pair.html <\\/p>\"],\"python\":[\"Python\",\"<p>\\u7248\\u672c\\uff1a <code>Python 2.7.12<\\/code><\\/p>\\r\\n\\r\\n<p>\\u4e3a\\u4e86\\u65b9\\u4fbf\\u8d77\\u89c1\\uff0c\\u5927\\u90e8\\u5206\\u5e38\\u7528\\u5e93\\u5df2\\u7ecf\\u88ab\\u81ea\\u52a8 \\u5bfc\\u5165\\uff0c\\u5982\\uff1a<a href=\\\"https:\\/\\/docs.python.org\\/2\\/library\\/array.html\\\" target=\\\"_blank\\\">array<\\/a>, <a href=\\\"https:\\/\\/docs.python.org\\/2\\/library\\/bisect.html\\\" target=\\\"_blank\\\">bisect<\\/a>, <a href=\\\"https:\\/\\/docs.python.org\\/2\\/library\\/collections.html\\\" target=\\\"_blank\\\">collections<\\/a>\\u3002\\u5982\\u679c\\u60a8\\u9700\\u8981\\u4f7f\\u7528\\u5176\\u4ed6\\u5e93\\u51fd\\u6570\\uff0c\\u8bf7\\u81ea\\u884c\\u5bfc\\u5165\\u3002<\\/p>\\r\\n\\r\\n<p>\\u6ce8\\u610f Python 2.7 <a href=\\\"https:\\/\\/www.python.org\\/dev\\/peps\\/pep-0373\\/\\\" target=\\\"_blank\\\">\\u5c06\\u57282020\\u5e74\\u540e\\u4e0d\\u518d\\u7ef4\\u62a4<\\/a>\\u3002 \\u5982\\u60f3\\u4f7f\\u7528\\u6700\\u65b0\\u7248\\u7684Python\\uff0c\\u8bf7\\u9009\\u62e9Python 3\\u3002<\\/p>\"],\"python3\":[\"Python3\",\"<p>\\u7248\\u672c\\uff1a<code>Python 3.10<\\/code><\\/p>\\r\\n\\r\\n<p>\\u4e3a\\u4e86\\u65b9\\u4fbf\\u8d77\\u89c1\\uff0c\\u5927\\u90e8\\u5206\\u5e38\\u7528\\u5e93\\u5df2\\u7ecf\\u88ab\\u81ea\\u52a8 \\u5bfc\\u5165\\uff0c\\u5982<a href=\\\"https:\\/\\/docs.python.org\\/3\\/library\\/array.html\\\" target=\\\"_blank\\\">array<\\/a>, <a href=\\\"https:\\/\\/docs.python.org\\/3\\/library\\/bisect.html\\\" target=\\\"_blank\\\">bisect<\\/a>, <a href=\\\"https:\\/\\/docs.python.org\\/3\\/library\\/collections.html\\\" target=\\\"_blank\\\">collections<\\/a>\\u3002 \\u5982\\u679c\\u60a8\\u9700\\u8981\\u4f7f\\u7528\\u5176\\u4ed6\\u5e93\\u51fd\\u6570\\uff0c\\u8bf7\\u81ea\\u884c\\u5bfc\\u5165\\u3002<\\/p>\\r\\n\\r\\n<p>\\u5982\\u9700\\u4f7f\\u7528 Map\\/TreeMap \\u6570\\u636e\\u7ed3\\u6784\\uff0c\\u60a8\\u53ef\\u4f7f\\u7528 <a href=\\\"http:\\/\\/www.grantjenks.com\\/docs\\/sortedcontainers\\/\\\" target=\\\"_blank\\\">sortedcontainers<\\/a> \\u5e93\\u3002<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "1\n1\n[\"BoundedBlockingQueue\",\"enqueue\",\"dequeue\",\"dequeue\",\"enqueue\",\"enqueue\",\"enqueue\",\"enqueue\",\"dequeue\"]\n[[2],[1],[],[],[0],[2],[3],[4],[]]\n3\n4\n[\"BoundedBlockingQueue\",\"enqueue\",\"enqueue\",\"enqueue\",\"dequeue\",\"dequeue\",\"dequeue\",\"enqueue\"]\n[[3],[1],[0],[2],[],[],[],[3]]",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,66 @@
{
"data": {
"question": {
"questionId": "1565",
"questionFrontendId": "1440",
"categoryTitle": "Database",
"boundTopicId": 236333,
"title": "Evaluate Boolean Expression",
"titleSlug": "evaluate-boolean-expression",
"content": null,
"translatedTitle": "计算布尔表达式的值",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 22,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"3.4K\", \"totalSubmission\": \"4.9K\", \"totalAcceptedRaw\": 3441, \"totalSubmissionRaw\": 4895, \"acRate\": \"70.3%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Variables\":[\"name\",\"value\"],\"Expressions\":[\"left_operand\",\"operator\",\"right_operand\"]},\"rows\":{\"Variables\":[[\"x\",66],[\"y\",77]],\"Expressions\":[[\"x\",\">\",\"y\"],[\"x\",\"<\",\"y\"],[\"x\",\"=\",\"y\"],[\"y\",\">\",\"x\"],[\"y\",\"<\",\"x\"],[\"x\",\"=\",\"x\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create Table If Not Exists Variables (name varchar(3), value int)\",\n \"Create Table If Not Exists Expressions (left_operand varchar(3), operator ENUM('>', '<', '='), right_operand varchar(3))\"\n ],\n \"mssql\": [\n \"Create Table Variables (name varchar(3), value int)\",\n \"Create Table Expressions (left_operand varchar(3), operator varchar(3) NOT NULL CHECK (operator IN ('>', '<', '=')), right_operand varchar(3))\"\n ],\n \"oraclesql\": [\n \"Create Table Variables (name varchar(3), value int)\",\n \"Create Table Expressions (left_operand varchar(3), operator varchar(3) NOT NULL CHECK (operator IN ('>', '<', '=')), right_operand varchar(3))\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create Table If Not Exists Variables (name varchar(3), value int)",
"Create Table If Not Exists Expressions (left_operand varchar(3), operator ENUM('>', '<', '='), right_operand varchar(3))",
"Truncate table Variables",
"insert into Variables (name, value) values ('x', '66')",
"insert into Variables (name, value) values ('y', '77')",
"Truncate table Expressions",
"insert into Expressions (left_operand, operator, right_operand) values ('x', '>', 'y')",
"insert into Expressions (left_operand, operator, right_operand) values ('x', '<', 'y')",
"insert into Expressions (left_operand, operator, right_operand) values ('x', '=', 'y')",
"insert into Expressions (left_operand, operator, right_operand) values ('y', '>', 'x')",
"insert into Expressions (left_operand, operator, right_operand) values ('y', '<', 'x')",
"insert into Expressions (left_operand, operator, right_operand) values ('x', '=', 'x')"
],
"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\":{\"Variables\":[\"name\",\"value\"],\"Expressions\":[\"left_operand\",\"operator\",\"right_operand\"]},\"rows\":{\"Variables\":[[\"x\",66],[\"y\",77]],\"Expressions\":[[\"x\",\">\",\"y\"],[\"x\",\"<\",\"y\"],[\"x\",\"=\",\"y\"],[\"y\",\">\",\"x\"],[\"y\",\"<\",\"x\"],[\"x\",\"=\",\"x\"]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,73 @@
{
"data": {
"question": {
"questionId": "1546",
"questionFrontendId": "1412",
"categoryTitle": "Database",
"boundTopicId": 211538,
"title": "Find the Quiet Students in All Exams",
"titleSlug": "find-the-quiet-students-in-all-exams",
"content": null,
"translatedTitle": "查找成绩处于中游的学生",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 13,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"3.5K\", \"totalSubmission\": \"6.5K\", \"totalAcceptedRaw\": 3539, \"totalSubmissionRaw\": 6454, \"acRate\": \"54.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Student\": [\"student_id\", \"student_name\"], \"Exam\": [\"exam_id\", \"student_id\", \"score\"]}, \"rows\": {\"Student\": [[1, \"Daniel\"], [2, \"Jade\"], [3, \"Stella\"], [4, \"Jonathan\"], [5, \"Will\"]], \"Exam\": [[10, 1, 70], [10, 2, 80], [10, 3, 90], [20, 1, 80], [30, 1, 70], [30, 3, 80], [30, 4, 90], [40, 1, 60], [40, 2, 70], [40, 4, 80]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Student (student_id int, student_name varchar(30))\",\n \"Create table If Not Exists Exam (exam_id int, student_id int, score int)\"\n ],\n \"mssql\": [\n \"Create table Student (student_id int, student_name varchar(30))\",\n \"Create table Exam (exam_id int, student_id int, score int)\"\n ],\n \"oraclesql\": [\n \"Create table Student (student_id int, student_name varchar(30))\",\n \"Create table Exam (exam_id int, student_id int, score int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Student (student_id int, student_name varchar(30))",
"Create table If Not Exists Exam (exam_id int, student_id int, score int)",
"Truncate table Student",
"insert into Student (student_id, student_name) values ('1', 'Daniel')",
"insert into Student (student_id, student_name) values ('2', 'Jade')",
"insert into Student (student_id, student_name) values ('3', 'Stella')",
"insert into Student (student_id, student_name) values ('4', 'Jonathan')",
"insert into Student (student_id, student_name) values ('5', 'Will')",
"Truncate table Exam",
"insert into Exam (exam_id, student_id, score) values ('10', '1', '70')",
"insert into Exam (exam_id, student_id, score) values ('10', '2', '80')",
"insert into Exam (exam_id, student_id, score) values ('10', '3', '90')",
"insert into Exam (exam_id, student_id, score) values ('20', '1', '80')",
"insert into Exam (exam_id, student_id, score) values ('30', '1', '70')",
"insert into Exam (exam_id, student_id, score) values ('30', '3', '80')",
"insert into Exam (exam_id, student_id, score) values ('30', '4', '90')",
"insert into Exam (exam_id, student_id, score) values ('40', '1', '60')",
"insert into Exam (exam_id, student_id, score) values ('40', '2', '70')",
"insert into Exam (exam_id, student_id, score) values ('40', '4', '80')"
],
"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\": {\"Student\": [\"student_id\", \"student_name\"], \"Exam\": [\"exam_id\", \"student_id\", \"score\"]}, \"rows\": {\"Student\": [[1, \"Daniel\"], [2, \"Jade\"], [3, \"Stella\"], [4, \"Jonathan\"], [5, \"Will\"]], \"Exam\": [[10, 1, 70], [10, 2, 80], [10, 3, 90], [20, 1, 80], [30, 1, 70], [30, 3, 80], [30, 4, 90], [40, 1, 60], [40, 2, 70], [40, 4, 80]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,62 @@
{
"data": {
"question": {
"questionId": "1420",
"questionFrontendId": "1285",
"categoryTitle": "Database",
"boundTopicId": 54484,
"title": "Find the Start and End Number of Continuous Ranges",
"titleSlug": "find-the-start-and-end-number-of-continuous-ranges",
"content": null,
"translatedTitle": "找到连续区间的开始和结束数字",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 66,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5.6K\", \"totalSubmission\": \"6.9K\", \"totalAcceptedRaw\": 5625, \"totalSubmissionRaw\": 6933, \"acRate\": \"81.1%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Logs\":[\"log_id\"]},\"rows\":{\"Logs\":[[1],[2],[3],[7],[8],[10]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Logs (log_id int)\"\n ],\n \"mssql\": [\n \"Create table Logs (log_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Logs (log_id int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Logs (log_id int)",
"Truncate table Logs",
"insert into Logs (log_id) values ('1')",
"insert into Logs (log_id) values ('2')",
"insert into Logs (log_id) values ('3')",
"insert into Logs (log_id) values ('7')",
"insert into Logs (log_id) values ('8')",
"insert into Logs (log_id) values ('10')"
],
"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\":{\"Logs\":[\"log_id\"]},\"rows\":{\"Logs\":[[1],[2],[3],[7],[8],[10]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,62 @@
{
"data": {
"question": {
"questionId": "1438",
"questionFrontendId": "1303",
"categoryTitle": "Database",
"boundTopicId": 64623,
"title": "Find the Team Size",
"titleSlug": "find-the-team-size",
"content": null,
"translatedTitle": "求团队人数",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 39,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"11K\", \"totalSubmission\": \"13.3K\", \"totalAcceptedRaw\": 10970, \"totalSubmissionRaw\": 13328, \"acRate\": \"82.3%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Employee\":[\"employee_id\",\"team_id\"]},\"rows\":{\"Employee\":[[1,8],[2,8],[3,8],[4,7],[5,9],[6,9]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employee (employee_id int, team_id int)\"\n ],\n \"mssql\": [\n \"Create table Employee (employee_id int, team_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Employee (employee_id int, team_id int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Employee (employee_id int, team_id int)",
"Truncate table Employee",
"insert into Employee (employee_id, team_id) values ('1', '8')",
"insert into Employee (employee_id, team_id) values ('2', '8')",
"insert into Employee (employee_id, team_id) values ('3', '8')",
"insert into Employee (employee_id, team_id) values ('4', '7')",
"insert into Employee (employee_id, team_id) values ('5', '9')",
"insert into Employee (employee_id, team_id) values ('6', '9')"
],
"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\":{\"Employee\":[\"employee_id\",\"team_id\"]},\"rows\":{\"Employee\":[[1,8],[2,8],[3,8],[4,7],[5,9],[6,9]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,69 @@
{
"data": {
"question": {
"questionId": "1639",
"questionFrontendId": "1495",
"categoryTitle": "Database",
"boundTopicId": 306836,
"title": "Friendly Movies Streamed Last Month",
"titleSlug": "friendly-movies-streamed-last-month",
"content": null,
"translatedTitle": "上月播放的儿童适宜电影",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 7,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5.1K\", \"totalSubmission\": \"9.5K\", \"totalAcceptedRaw\": 5101, \"totalSubmissionRaw\": 9485, \"acRate\": \"53.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"TVProgram\": [\"program_date\", \"content_id\", \"channel\"], \"Content\": [\"content_id\", \"title\", \"Kids_content\", \"content_type\"]}, \"rows\": {\"TVProgram\": [[\"2020-06-10 08:00\", 1, \"LC-Channel\"], [\"2020-05-11 12:00\", 2, \"LC-Channel\"], [\"2020-05-12 12:00\", 3, \"LC-Channel\"], [\"2020-05-13 14:00\", 4, \"Disney Ch\"], [\"2020-06-18 14:00\", 4, \"Disney Ch\"], [\"2020-07-15 16:00\", 5, \"Disney Ch\"]], \"Content\": [[1, \"Leetcode Movie\", \"N\", \"Movies\"], [2, \"Alg. for Kids\", \"Y\", \"Series\"], [3, \"Database Sols\", \"N\", \"Series\"], [4, \"Aladdin\", \"Y\", \"Movies\"], [5, \"Cinderella\", \"Y\", \"Movies\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists TVProgram (program_date date, content_id int, channel varchar(30))\",\n \"Create table If Not Exists Content (content_id varchar(30), title varchar(30), Kids_content ENUM('Y', 'N'), content_type varchar(30))\"\n ],\n \"mssql\": [\n \"Create table TVProgram (program_date date, content_id int, channel varchar(30))\",\n \"Create table Content (content_id varchar(30), title varchar(30), Kids_content varchar(2) NOT NULL CHECK(Kids_content IN('Y', 'N')), content_type varchar(30))\"\n ],\n \"oraclesql\": [\n \"Create table TVProgram (program_date date, content_id int, channel varchar(30))\",\n \"Create table Content (content_id varchar(30), title varchar(30), Kids_content varchar(2) NOT NULL CHECK(Kids_content IN('Y', 'N')), content_type varchar(30))\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD HH24:MI'\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists TVProgram (program_date date, content_id int, channel varchar(30))",
"Create table If Not Exists Content (content_id varchar(30), title varchar(30), Kids_content ENUM('Y', 'N'), content_type varchar(30))",
"Truncate table TVProgram",
"insert into TVProgram (program_date, content_id, channel) values ('2020-06-10 08:00', '1', 'LC-Channel')",
"insert into TVProgram (program_date, content_id, channel) values ('2020-05-11 12:00', '2', 'LC-Channel')",
"insert into TVProgram (program_date, content_id, channel) values ('2020-05-12 12:00', '3', 'LC-Channel')",
"insert into TVProgram (program_date, content_id, channel) values ('2020-05-13 14:00', '4', 'Disney Ch')",
"insert into TVProgram (program_date, content_id, channel) values ('2020-06-18 14:00', '4', 'Disney Ch')",
"insert into TVProgram (program_date, content_id, channel) values ('2020-07-15 16:00', '5', 'Disney Ch')",
"Truncate table Content",
"insert into Content (content_id, title, Kids_content, content_type) values ('1', 'Leetcode Movie', 'N', 'Movies')",
"insert into Content (content_id, title, Kids_content, content_type) values ('2', 'Alg. for Kids', 'Y', 'Series')",
"insert into Content (content_id, title, Kids_content, content_type) values ('3', 'Database Sols', 'N', 'Series')",
"insert into Content (content_id, title, Kids_content, content_type) values ('4', 'Aladdin', 'Y', 'Movies')",
"insert into Content (content_id, title, Kids_content, content_type) values ('5', 'Cinderella', 'Y', 'Movies')"
],
"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\": {\"TVProgram\": [\"program_date\", \"content_id\", \"channel\"], \"Content\": [\"content_id\", \"title\", \"Kids_content\", \"content_type\"]}, \"rows\": {\"TVProgram\": [[\"2020-06-10 08:00\", 1, \"LC-Channel\"], [\"2020-05-11 12:00\", 2, \"LC-Channel\"], [\"2020-05-12 12:00\", 3, \"LC-Channel\"], [\"2020-05-13 14:00\", 4, \"Disney Ch\"], [\"2020-06-18 14:00\", 4, \"Disney Ch\"], [\"2020-07-15 16:00\", 5, \"Disney Ch\"]], \"Content\": [[1, \"Leetcode Movie\", \"N\", \"Movies\"], [2, \"Alg. for Kids\", \"Y\", \"Series\"], [3, \"Database Sols\", \"N\", \"Series\"], [4, \"Aladdin\", \"Y\", \"Movies\"], [5, \"Cinderella\", \"Y\", \"Movies\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,61 @@
{
"data": {
"question": {
"questionId": "1180",
"questionFrontendId": "512",
"categoryTitle": "Database",
"boundTopicId": 11034,
"title": "Game Play Analysis II",
"titleSlug": "game-play-analysis-ii",
"content": null,
"translatedTitle": "游戏玩法分析 II",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 58,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Game Play Analysis I\", \"titleSlug\": \"game-play-analysis-i\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u6e38\\u620f\\u73a9\\u6cd5\\u5206\\u6790 I\"}, {\"title\": \"Game Play Analysis III\", \"titleSlug\": \"game-play-analysis-iii\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u6e38\\u620f\\u73a9\\u6cd5\\u5206\\u6790 III\"}]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"24.3K\", \"totalSubmission\": \"45.1K\", \"totalAcceptedRaw\": 24314, \"totalSubmissionRaw\": 45146, \"acRate\": \"53.9%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Activity\":[\"player_id\",\"device_id\",\"event_date\",\"games_played\"]},\"rows\":{\"Activity\":[[1,2,\"2016-03-01\",5],[1,2,\"2016-05-02\",6],[2,3,\"2017-06-25\",1],[3,1,\"2016-03-02\",0],[3,4,\"2018-07-03\",5]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Activity (player_id int, device_id int, event_date date, games_played int)\"\n ],\n \"mssql\": [\n \"Create table Activity (player_id int, device_id int, event_date date, games_played int)\"\n ],\n \"oraclesql\": [\n \"Create table Activity (player_id int, device_id int, event_date date, games_played 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 Activity (player_id int, device_id int, event_date date, games_played int)",
"Truncate table Activity",
"insert into Activity (player_id, device_id, event_date, games_played) values ('1', '2', '2016-03-01', '5')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('1', '2', '2016-05-02', '6')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('2', '3', '2017-06-25', '1')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('3', '1', '2016-03-02', '0')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('3', '4', '2018-07-03', '5')"
],
"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\":{\"Activity\":[\"player_id\",\"device_id\",\"event_date\",\"games_played\"]},\"rows\":{\"Activity\":[[1,2,\"2016-03-01\",5],[1,2,\"2016-05-02\",6],[2,3,\"2017-06-25\",1],[3,1,\"2016-03-02\",0],[3,4,\"2018-07-03\",5]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,61 @@
{
"data": {
"question": {
"questionId": "1181",
"questionFrontendId": "534",
"categoryTitle": "Database",
"boundTopicId": 10993,
"title": "Game Play Analysis III",
"titleSlug": "game-play-analysis-iii",
"content": null,
"translatedTitle": "游戏玩法分析 III",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 70,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Game Play Analysis II\", \"titleSlug\": \"game-play-analysis-ii\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u6e38\\u620f\\u73a9\\u6cd5\\u5206\\u6790 II\"}, {\"title\": \"Game Play Analysis IV\", \"titleSlug\": \"game-play-analysis-iv\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u6e38\\u620f\\u73a9\\u6cd5\\u5206\\u6790 IV\"}]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"19.2K\", \"totalSubmission\": \"28.4K\", \"totalAcceptedRaw\": 19245, \"totalSubmissionRaw\": 28394, \"acRate\": \"67.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Activity\":[\"player_id\",\"device_id\",\"event_date\",\"games_played\"]},\"rows\":{\"Activity\":[[1,2,\"2016-03-01\",5],[1,2,\"2016-05-02\",6],[1,3,\"2017-06-25\",1],[3,1,\"2016-03-02\",0],[3,4,\"2018-07-03\",5]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Activity (player_id int, device_id int, event_date date, games_played int)\"\n ],\n \"mssql\": [\n \"Create table Activity (player_id int, device_id int, event_date date, games_played int)\"\n ],\n \"oraclesql\": [\n \"Create table Activity (player_id int, device_id int, event_date date, games_played 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 Activity (player_id int, device_id int, event_date date, games_played int)",
"Truncate table Activity",
"insert into Activity (player_id, device_id, event_date, games_played) values ('1', '2', '2016-03-01', '5')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('1', '2', '2016-05-02', '6')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('1', '3', '2017-06-25', '1')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('3', '1', '2016-03-02', '0')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('3', '4', '2018-07-03', '5')"
],
"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\":{\"Activity\":[\"player_id\",\"device_id\",\"event_date\",\"games_played\"]},\"rows\":{\"Activity\":[[1,2,\"2016-03-01\",5],[1,2,\"2016-05-02\",6],[1,3,\"2017-06-25\",1],[3,1,\"2016-03-02\",0],[3,4,\"2018-07-03\",5]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,61 @@
{
"data": {
"question": {
"questionId": "1182",
"questionFrontendId": "550",
"categoryTitle": "Database",
"boundTopicId": 11038,
"title": "Game Play Analysis IV",
"titleSlug": "game-play-analysis-iv",
"content": null,
"translatedTitle": "游戏玩法分析 IV",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 69,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Game Play Analysis III\", \"titleSlug\": \"game-play-analysis-iii\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u6e38\\u620f\\u73a9\\u6cd5\\u5206\\u6790 III\"}, {\"title\": \"Game Play Analysis V\", \"titleSlug\": \"game-play-analysis-v\", \"difficulty\": \"Hard\", \"translatedTitle\": \"\\u6e38\\u620f\\u73a9\\u6cd5\\u5206\\u6790 V\"}]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"16.8K\", \"totalSubmission\": \"38.5K\", \"totalAcceptedRaw\": 16778, \"totalSubmissionRaw\": 38506, \"acRate\": \"43.6%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Activity\":[\"player_id\",\"device_id\",\"event_date\",\"games_played\"]},\"rows\":{\"Activity\":[[1,2,\"2016-03-01\",5],[1,2,\"2016-03-02\",6],[2,3,\"2017-06-25\",1],[3,1,\"2016-03-02\",0],[3,4,\"2018-07-03\",5]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Activity (player_id int, device_id int, event_date date, games_played int)\"\n ],\n \"mssql\": [\n \"Create table Activity (player_id int, device_id int, event_date date, games_played int)\"\n ],\n \"oraclesql\": [\n \"Create table Activity (player_id int, device_id int, event_date date, games_played 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 Activity (player_id int, device_id int, event_date date, games_played int)",
"Truncate table Activity",
"insert into Activity (player_id, device_id, event_date, games_played) values ('1', '2', '2016-03-01', '5')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('1', '2', '2016-03-02', '6')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('2', '3', '2017-06-25', '1')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('3', '1', '2016-03-02', '0')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('3', '4', '2018-07-03', '5')"
],
"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\":{\"Activity\":[\"player_id\",\"device_id\",\"event_date\",\"games_played\"]},\"rows\":{\"Activity\":[[1,2,\"2016-03-01\",5],[1,2,\"2016-03-02\",6],[2,3,\"2017-06-25\",1],[3,1,\"2016-03-02\",0],[3,4,\"2018-07-03\",5]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,61 @@
{
"data": {
"question": {
"questionId": "1193",
"questionFrontendId": "1097",
"categoryTitle": "Database",
"boundTopicId": 10999,
"title": "Game Play Analysis V",
"titleSlug": "game-play-analysis-v",
"content": null,
"translatedTitle": "游戏玩法分析 V",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 43,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Game Play Analysis IV\", \"titleSlug\": \"game-play-analysis-iv\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u6e38\\u620f\\u73a9\\u6cd5\\u5206\\u6790 IV\"}]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"8.3K\", \"totalSubmission\": \"15.8K\", \"totalAcceptedRaw\": 8261, \"totalSubmissionRaw\": 15804, \"acRate\": \"52.3%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Activity\":[\"player_id\",\"device_id\",\"event_date\",\"games_played\"]},\"rows\":{\"Activity\":[[1,2,\"2016-03-01\",5],[1,2,\"2016-03-02\",6],[2,3,\"2017-06-25\",1],[3,1,\"2016-03-01\",0],[3,4,\"2018-07-03\",5]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Activity (player_id int, device_id int, event_date date, games_played int)\"\n ],\n \"mssql\": [\n \"Create table Activity (player_id int, device_id int, event_date date, games_played int)\"\n ],\n \"oraclesql\": [\n \"Create table Activity (player_id int, device_id int, event_date date, games_played 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 Activity (player_id int, device_id int, event_date date, games_played int)",
"Truncate table Activity",
"insert into Activity (player_id, device_id, event_date, games_played) values ('1', '2', '2016-03-01', '5')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('1', '2', '2016-03-02', '6')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('2', '3', '2017-06-25', '1')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('3', '1', '2016-03-01', '0')",
"insert into Activity (player_id, device_id, event_date, games_played) values ('3', '4', '2018-07-03', '5')"
],
"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\":{\"Activity\":[\"player_id\",\"device_id\",\"event_date\",\"games_played\"]},\"rows\":{\"Activity\":[[1,2,\"2016-03-01\",5],[1,2,\"2016-03-02\",6],[2,3,\"2017-06-25\",1],[3,1,\"2016-03-01\",0],[3,4,\"2018-07-03\",5]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,60 @@
{
"data": {
"question": {
"questionId": "1504",
"questionFrontendId": "1369",
"categoryTitle": "Database",
"boundTopicId": 134820,
"title": "Get the Second Most Recent Activity",
"titleSlug": "get-the-second-most-recent-activity",
"content": null,
"translatedTitle": "获取最近第二次的活动",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 15,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"3.5K\", \"totalSubmission\": \"5.9K\", \"totalAcceptedRaw\": 3513, \"totalSubmissionRaw\": 5863, \"acRate\": \"59.9%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"UserActivity\":[\"username\",\"activity\",\"startDate\",\"endDate\"]},\"rows\":{\"UserActivity\":[[\"Alice\",\"Travel\",\"2020-02-12\",\"2020-02-20\"],[\"Alice\",\"Dancing\",\"2020-02-21\",\"2020-02-23\"],[\"Alice\",\"Travel\",\"2020-02-24\",\"2020-02-28\"],[\"Bob\",\"Travel\",\"2020-02-11\",\"2020-02-18\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists UserActivity (username varchar(30), activity varchar(30), startDate date, endDate date)\"\n ],\n \"mssql\": [\n \"Create table UserActivity (username varchar(30), activity varchar(30), startDate date, endDate date)\"\n ],\n \"oraclesql\": [\n \"Create table UserActivity (username varchar(30), activity varchar(30), startDate date, endDate 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 UserActivity (username varchar(30), activity varchar(30), startDate date, endDate date)",
"Truncate table UserActivity",
"insert into UserActivity (username, activity, startDate, endDate) values ('Alice', 'Travel', '2020-02-12', '2020-02-20')",
"insert into UserActivity (username, activity, startDate, endDate) values ('Alice', 'Dancing', '2020-02-21', '2020-02-23')",
"insert into UserActivity (username, activity, startDate, endDate) values ('Alice', 'Travel', '2020-02-24', '2020-02-28')",
"insert into UserActivity (username, activity, startDate, endDate) values ('Bob', 'Travel', '2020-02-11', '2020-02-18')"
],
"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\":{\"UserActivity\":[\"username\",\"activity\",\"startDate\",\"endDate\"]},\"rows\":{\"UserActivity\":[[\"Alice\",\"Travel\",\"2020-02-12\",\"2020-02-20\"],[\"Alice\",\"Dancing\",\"2020-02-21\",\"2020-02-23\"],[\"Alice\",\"Travel\",\"2020-02-24\",\"2020-02-28\"],[\"Bob\",\"Travel\",\"2020-02-11\",\"2020-02-18\"]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,63 @@
{
"data": {
"question": {
"questionId": "1214",
"questionFrontendId": "1112",
"categoryTitle": "Database",
"boundTopicId": 33180,
"title": "Highest Grade For Each Student",
"titleSlug": "highest-grade-for-each-student",
"content": null,
"translatedTitle": "每位学生的最高成绩",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 41,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"9.7K\", \"totalSubmission\": \"14.9K\", \"totalAcceptedRaw\": 9686, \"totalSubmissionRaw\": 14878, \"acRate\": \"65.1%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Enrollments\":[\"student_id\",\"course_id\",\"grade\"]},\"rows\":{\"Enrollments\":[[2,2,95],[2,3,95],[1,1,90],[1,2,99],[3,1,80],[3,2,75],[3,3,82]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Enrollments (student_id int, course_id int, grade int)\"\n ],\n \"mssql\": [\n \"Create table Enrollments (student_id int, course_id int, grade int)\"\n ],\n \"oraclesql\": [\n \"Create table Enrollments (student_id int, course_id int, grade int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Enrollments (student_id int, course_id int, grade int)",
"Truncate table Enrollments",
"insert into Enrollments (student_id, course_id, grade) values ('2', '2', '95')",
"insert into Enrollments (student_id, course_id, grade) values ('2', '3', '95')",
"insert into Enrollments (student_id, course_id, grade) values ('1', '1', '90')",
"insert into Enrollments (student_id, course_id, grade) values ('1', '2', '99')",
"insert into Enrollments (student_id, course_id, grade) values ('3', '1', '80')",
"insert into Enrollments (student_id, course_id, grade) values ('3', '2', '75')",
"insert into Enrollments (student_id, course_id, grade) values ('3', '3', '82')"
],
"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\":{\"Enrollments\":[\"student_id\",\"course_id\",\"grade\"]},\"rows\":{\"Enrollments\":[[2,2,95],[2,3,95],[1,1,90],[1,2,99],[3,1,80],[3,2,75],[3,3,82]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,62 @@
{
"data": {
"question": {
"questionId": "1291",
"questionFrontendId": "1173",
"categoryTitle": "Database",
"boundTopicId": 33160,
"title": "Immediate Food Delivery I",
"titleSlug": "immediate-food-delivery-i",
"content": null,
"translatedTitle": "即时食物配送 I",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 32,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"10.5K\", \"totalSubmission\": \"14K\", \"totalAcceptedRaw\": 10546, \"totalSubmissionRaw\": 14018, \"acRate\": \"75.2%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Delivery\":[\"delivery_id\",\"customer_id\",\"order_date\",\"customer_pref_delivery_date\"]},\"rows\":{\"Delivery\":[[1,1,\"2019-08-01\",\"2019-08-02\"],[2,5,\"2019-08-02\",\"2019-08-02\"],[3,1,\"2019-08-11\",\"2019-08-11\"],[4,3,\"2019-08-24\",\"2019-08-26\"],[5,4,\"2019-08-21\",\"2019-08-22\"],[6,2,\"2019-08-11\",\"2019-08-13\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Delivery (delivery_id int, customer_id int, order_date date, customer_pref_delivery_date date)\"\n ],\n \"mssql\": [\n \"Create table Delivery (delivery_id int, customer_id int, order_date date, customer_pref_delivery_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Delivery (delivery_id int, customer_id int, order_date date, customer_pref_delivery_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 Delivery (delivery_id int, customer_id int, order_date date, customer_pref_delivery_date date)",
"Truncate table Delivery",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('1', '1', '2019-08-01', '2019-08-02')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('2', '5', '2019-08-02', '2019-08-02')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('3', '1', '2019-08-11', '2019-08-11')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('4', '3', '2019-08-24', '2019-08-26')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('5', '4', '2019-08-21', '2019-08-22')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('6', '2', '2019-08-11', '2019-08-13')"
],
"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\":{\"Delivery\":[\"delivery_id\",\"customer_id\",\"order_date\",\"customer_pref_delivery_date\"]},\"rows\":{\"Delivery\":[[1,1,\"2019-08-01\",\"2019-08-02\"],[2,5,\"2019-08-02\",\"2019-08-02\"],[3,1,\"2019-08-11\",\"2019-08-11\"],[4,3,\"2019-08-24\",\"2019-08-26\"],[5,4,\"2019-08-21\",\"2019-08-22\"],[6,2,\"2019-08-11\",\"2019-08-13\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,63 @@
{
"data": {
"question": {
"questionId": "1292",
"questionFrontendId": "1174",
"categoryTitle": "Database",
"boundTopicId": 33159,
"title": "Immediate Food Delivery II",
"titleSlug": "immediate-food-delivery-ii",
"content": null,
"translatedTitle": "即时食物配送 II",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 17,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"6.4K\", \"totalSubmission\": \"10.2K\", \"totalAcceptedRaw\": 6424, \"totalSubmissionRaw\": 10248, \"acRate\": \"62.7%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Delivery\":[\"delivery_id\",\"customer_id\",\"order_date\",\"customer_pref_delivery_date\"]},\"rows\":{\"Delivery\":[[1,1,\"2019-08-01\",\"2019-08-02\"],[2,2,\"2019-08-02\",\"2019-08-02\"],[3,1,\"2019-08-11\",\"2019-08-12\"],[4,3,\"2019-08-24\",\"2019-08-24\"],[5,3,\"2019-08-21\",\"2019-08-22\"],[6,2,\"2019-08-11\",\"2019-08-13\"],[7,4,\"2019-08-09\",\"2019-08-09\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Delivery (delivery_id int, customer_id int, order_date date, customer_pref_delivery_date date)\"\n ],\n \"mssql\": [\n \"Create table Delivery (delivery_id int, customer_id int, order_date date, customer_pref_delivery_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Delivery (delivery_id int, customer_id int, order_date date, customer_pref_delivery_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 Delivery (delivery_id int, customer_id int, order_date date, customer_pref_delivery_date date)",
"Truncate table Delivery",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('1', '1', '2019-08-01', '2019-08-02')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('2', '2', '2019-08-02', '2019-08-02')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('3', '1', '2019-08-11', '2019-08-12')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('4', '3', '2019-08-24', '2019-08-24')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('5', '3', '2019-08-21', '2019-08-22')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('6', '2', '2019-08-11', '2019-08-13')",
"insert into Delivery (delivery_id, customer_id, order_date, customer_pref_delivery_date) values ('7', '4', '2019-08-09', '2019-08-09')"
],
"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\":{\"Delivery\":[\"delivery_id\",\"customer_id\",\"order_date\",\"customer_pref_delivery_date\"]},\"rows\":{\"Delivery\":[[1,1,\"2019-08-01\",\"2019-08-02\"],[2,2,\"2019-08-02\",\"2019-08-02\"],[3,1,\"2019-08-11\",\"2019-08-12\"],[4,3,\"2019-08-24\",\"2019-08-24\"],[5,3,\"2019-08-21\",\"2019-08-22\"],[6,2,\"2019-08-11\",\"2019-08-13\"],[7,4,\"2019-08-09\",\"2019-08-09\"]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,62 @@
{
"data": {
"question": {
"questionId": "1327",
"questionFrontendId": "1204",
"categoryTitle": "Database",
"boundTopicId": 33152,
"title": "Last Person to Fit in the Bus",
"titleSlug": "last-person-to-fit-in-the-bus",
"content": null,
"translatedTitle": "最后一个能进入电梯的人",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 45,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"7.1K\", \"totalSubmission\": \"9.6K\", \"totalAcceptedRaw\": 7055, \"totalSubmissionRaw\": 9641, \"acRate\": \"73.2%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Queue\":[\"person_id\",\"person_name\",\"weight\",\"turn\"]},\"rows\":{\"Queue\":[[5,\"Alice\",250,1],[4,\"Bob\",175,5],[3,\"Alex\",350,2],[6,\"John Cena\",400,3],[1,\"Winston\",500,6],[2,\"Marie\",200,4]]}}",
"metaData": "{\n \"manual\": false,\n \"mysql\": [\n \"Create table If Not Exists Queue (person_id int, person_name varchar(30), weight int, turn int)\"\n ],\n \"mssql\": [\n \"Create table Queue (person_id int, person_name varchar(30), weight int, turn int)\"\n ],\n \"oraclesql\": [\n \"Create table Queue (person_id int, person_name varchar(30), weight int, turn int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Queue (person_id int, person_name varchar(30), weight int, turn int)",
"Truncate table Queue",
"insert into Queue (person_id, person_name, weight, turn) values ('5', 'Alice', '250', '1')",
"insert into Queue (person_id, person_name, weight, turn) values ('4', 'Bob', '175', '5')",
"insert into Queue (person_id, person_name, weight, turn) values ('3', 'Alex', '350', '2')",
"insert into Queue (person_id, person_name, weight, turn) values ('6', 'John Cena', '400', '3')",
"insert into Queue (person_id, person_name, weight, turn) values ('1', 'Winston', '500', '6')",
"insert into Queue (person_id, person_name, weight, turn) values ('2', 'Marie', '200', '4')"
],
"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\":{\"Queue\":[\"person_id\",\"person_name\",\"weight\",\"turn\"]},\"rows\":{\"Queue\":[[5,\"Alice\",250,1],[4,\"Bob\",175,5],[3,\"Alex\",350,2],[6,\"John Cena\",400,3],[1,\"Winston\",500,6],[2,\"Marie\",200,4]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,75 @@
{
"data": {
"question": {
"questionId": "1462",
"questionFrontendId": "1327",
"categoryTitle": "Database",
"boundTopicId": 79635,
"title": "List the Products Ordered in a Period",
"titleSlug": "list-the-products-ordered-in-a-period",
"content": null,
"translatedTitle": "列出指定时间段内所有的下单产品",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 12,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"6.9K\", \"totalSubmission\": \"10K\", \"totalAcceptedRaw\": 6928, \"totalSubmissionRaw\": 10024, \"acRate\": \"69.1%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Products\": [\"product_id\", \"product_name\", \"product_category\"], \"Orders\": [\"product_id\", \"order_date\", \"unit\"]}, \"rows\": {\"Products\": [[1, \"Leetcode Solutions\", \"Book\"], [2, \"Jewels of Stringology\", \"Book\"], [3, \"HP\", \"Laptop\"], [4, \"Lenovo\", \"Laptop\"], [5, \"Leetcode Kit\", \"T-shirt\"]], \"Orders\": [[1, \"2020-02-05\", 60], [1, \"2020-02-10\", 70], [2, \"2020-01-18\", 30], [2, \"2020-02-11\", 80], [3, \"2020-02-17\", 2], [3, \"2020-02-24\", 3], [4, \"2020-03-01\", 20], [4, \"2020-03-04\", 30], [4, \"2020-03-04\", 60], [5, \"2020-02-25\", 50], [5, \"2020-02-27\", 50], [5, \"2020-03-01\", 50]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Products (product_id int, product_name varchar(40), product_category varchar(40))\",\n \"Create table If Not Exists Orders (product_id int, order_date date, unit int)\"\n ],\n \"mssql\": [\n \"Create table Products (product_id int, product_name varchar(40), product_category varchar(40))\\n\",\n \"Create table Orders (product_id int, order_date date, unit int)\"\n ],\n \"oraclesql\": [\n \"Create table Products (product_id int, product_name varchar(40), product_category varchar(40))\",\n \"Create table Orders (product_id int, order_date date, unit 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 Products (product_id int, product_name varchar(40), product_category varchar(40))",
"Create table If Not Exists Orders (product_id int, order_date date, unit int)",
"Truncate table Products",
"insert into Products (product_id, product_name, product_category) values ('1', 'Leetcode Solutions', 'Book')",
"insert into Products (product_id, product_name, product_category) values ('2', 'Jewels of Stringology', 'Book')",
"insert into Products (product_id, product_name, product_category) values ('3', 'HP', 'Laptop')",
"insert into Products (product_id, product_name, product_category) values ('4', 'Lenovo', 'Laptop')",
"insert into Products (product_id, product_name, product_category) values ('5', 'Leetcode Kit', 'T-shirt')",
"Truncate table Orders",
"insert into Orders (product_id, order_date, unit) values ('1', '2020-02-05', '60')",
"insert into Orders (product_id, order_date, unit) values ('1', '2020-02-10', '70')",
"insert into Orders (product_id, order_date, unit) values ('2', '2020-01-18', '30')",
"insert into Orders (product_id, order_date, unit) values ('2', '2020-02-11', '80')",
"insert into Orders (product_id, order_date, unit) values ('3', '2020-02-17', '2')",
"insert into Orders (product_id, order_date, unit) values ('3', '2020-02-24', '3')",
"insert into Orders (product_id, order_date, unit) values ('4', '2020-03-01', '20')",
"insert into Orders (product_id, order_date, unit) values ('4', '2020-03-04', '30')",
"insert into Orders (product_id, order_date, unit) values ('4', '2020-03-04', '60')",
"insert into Orders (product_id, order_date, unit) values ('5', '2020-02-25', '50')",
"insert into Orders (product_id, order_date, unit) values ('5', '2020-02-27', '50')",
"insert into Orders (product_id, order_date, unit) values ('5', '2020-03-01', '50')"
],
"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\": {\"Products\": [\"product_id\", \"product_name\", \"product_category\"], \"Orders\": [\"product_id\", \"order_date\", \"unit\"]}, \"rows\": {\"Products\": [[1, \"Leetcode Solutions\", \"Book\"], [2, \"Jewels of Stringology\", \"Book\"], [3, \"HP\", \"Laptop\"], [4, \"Lenovo\", \"Laptop\"], [5, \"Leetcode Kit\", \"T-shirt\"]], \"Orders\": [[1, \"2020-02-05\", 60], [1, \"2020-02-10\", 70], [2, \"2020-01-18\", 30], [2, \"2020-02-11\", 80], [3, \"2020-02-17\", 2], [3, \"2020-02-24\", 3], [4, \"2020-03-01\", 20], [4, \"2020-03-04\", 30], [4, \"2020-03-04\", 60], [5, \"2020-02-25\", 50], [5, \"2020-02-27\", 50], [5, \"2020-03-01\", 50]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,74 @@
{
"data": {
"question": {
"questionId": "1269",
"questionFrontendId": "1159",
"categoryTitle": "Database",
"boundTopicId": 33143,
"title": "Market Analysis II",
"titleSlug": "market-analysis-ii",
"content": null,
"translatedTitle": "市场分析 II",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 20,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5K\", \"totalSubmission\": \"10.1K\", \"totalAcceptedRaw\": 5049, \"totalSubmissionRaw\": 10114, \"acRate\": \"49.9%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Users\":[\"user_id\",\"join_date\",\"favorite_brand\"],\"Orders\":[\"order_id\",\"order_date\",\"item_id\",\"buyer_id\",\"seller_id\"],\"Items\":[\"item_id\",\"item_brand\"]},\"rows\":{\"Users\":[[1,\"2019-01-01\",\"Lenovo\"],[2,\"2019-02-09\",\"Samsung\"],[3,\"2019-01-19\",\"LG\"],[4,\"2019-05-21\",\"HP\"]],\"Orders\":[[1,\"2019-08-01\",4,1,2],[2,\"2019-08-02\",2,1,3],[3,\"2019-08-03\",3,2,3],[4,\"2019-08-04\",1,4,2],[5,\"2019-08-04\",1,3,4],[6,\"2019-08-05\",2,2,4]],\"Items\":[[1,\"Samsung\"],[2,\"Lenovo\"],[3,\"LG\"],[4,\"HP\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Users (user_id int, join_date date, favorite_brand varchar(10))\",\n \"Create table If Not Exists Orders (order_id int, order_date date, item_id int, buyer_id int, seller_id int)\",\n \"Create table If Not Exists Items (item_id int, item_brand varchar(10))\"\n ],\n \"mssql\": [\n \"Create table Users (user_id int, join_date date, favorite_brand varchar(10))\",\n \"Create table Orders (order_id int, order_date date, item_id int, buyer_id int, seller_id int)\",\n \"Create table Items (item_id int, item_brand varchar(10))\"\n ],\n \"oraclesql\": [\n \"Create table Users (user_id int, join_date date, favorite_brand varchar(10))\",\n \"Create table Orders (order_id int, order_date date, item_id int, buyer_id int, seller_id int)\",\n \"Create table Items (item_id int, item_brand varchar(10))\",\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 Users (user_id int, join_date date, favorite_brand varchar(10))",
"Create table If Not Exists Orders (order_id int, order_date date, item_id int, buyer_id int, seller_id int)",
"Create table If Not Exists Items (item_id int, item_brand varchar(10))",
"Truncate table Users",
"insert into Users (user_id, join_date, favorite_brand) values ('1', '2019-01-01', 'Lenovo')",
"insert into Users (user_id, join_date, favorite_brand) values ('2', '2019-02-09', 'Samsung')",
"insert into Users (user_id, join_date, favorite_brand) values ('3', '2019-01-19', 'LG')",
"insert into Users (user_id, join_date, favorite_brand) values ('4', '2019-05-21', 'HP')",
"Truncate table Orders",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('1', '2019-08-01', '4', '1', '2')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('2', '2019-08-02', '2', '1', '3')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('3', '2019-08-03', '3', '2', '3')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('4', '2019-08-04', '1', '4', '2')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('5', '2019-08-04', '1', '3', '4')",
"insert into Orders (order_id, order_date, item_id, buyer_id, seller_id) values ('6', '2019-08-05', '2', '2', '4')",
"Truncate table Items",
"insert into Items (item_id, item_brand) values ('1', 'Samsung')",
"insert into Items (item_id, item_brand) values ('2', 'Lenovo')",
"insert into Items (item_id, item_brand) values ('3', 'LG')",
"insert into Items (item_id, item_brand) values ('4', 'HP')"
],
"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\":{\"Users\":[\"user_id\",\"join_date\",\"favorite_brand\"],\"Orders\":[\"order_id\",\"order_date\",\"item_id\",\"buyer_id\",\"seller_id\"],\"Items\":[\"item_id\",\"item_brand\"]},\"rows\":{\"Users\":[[1,\"2019-01-01\",\"Lenovo\"],[2,\"2019-02-09\",\"Samsung\"],[3,\"2019-01-19\",\"LG\"],[4,\"2019-05-21\",\"HP\"]],\"Orders\":[[1,\"2019-08-01\",4,1,2],[2,\"2019-08-02\",2,1,3],[3,\"2019-08-03\",3,2,3],[4,\"2019-08-04\",1,4,2],[5,\"2019-08-04\",1,3,4],[6,\"2019-08-05\",2,2,4]],\"Items\":[[1,\"Samsung\"],[2,\"Lenovo\"],[3,\"LG\"],[4,\"HP\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,73 @@
{
"data": {
"question": {
"questionId": "1384",
"questionFrontendId": "1618",
"categoryTitle": "Algorithms",
"boundTopicId": 447478,
"title": "Maximum Font to Fit a Sentence in a Screen",
"titleSlug": "maximum-font-to-fit-a-sentence-in-a-screen",
"content": null,
"translatedTitle": "找出适应屏幕的最大字号",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 1,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Array",
"slug": "array",
"translatedName": "数组",
"__typename": "TopicTagNode"
},
{
"name": "String",
"slug": "string",
"translatedName": "字符串",
"__typename": "TopicTagNode"
},
{
"name": "Binary Search",
"slug": "binary-search",
"translatedName": "二分查找",
"__typename": "TopicTagNode"
},
{
"name": "Interactive",
"slug": "interactive",
"translatedName": "交互",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"411\", \"totalSubmission\": \"722\", \"totalAcceptedRaw\": 411, \"totalSubmissionRaw\": 722, \"acRate\": \"56.9%\"}",
"hints": [
"Use <i>binary search</i> to find the last valid font."
],
"solution": null,
"status": null,
"sampleTestCase": "\"helloworld\"\n80\n20\n[6,8,10,12,14,16,18,24,36]",
"metaData": "{\n \"name\": \"maxFont\",\n \"params\": [\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"w\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"h\"\n },\n {\n \"type\": \"integer[]\",\n \"name\": \"fonts\"\n }\n ],\n \"return\": {\n \"type\": \"integer\"\n },\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"csharp\",\n \"javascript\",\n \"python3\"\n ],\n \"manual\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [],
"enableRunCode": true,
"envInfo": "{\"cpp\":[\"C++\",\"<p>\\u7248\\u672c\\uff1a<code>clang 11<\\/code> \\u91c7\\u7528\\u6700\\u65b0C++ 17\\u6807\\u51c6\\u3002<\\/p>\\r\\n\\r\\n<p>\\u7f16\\u8bd1\\u65f6\\uff0c\\u5c06\\u4f1a\\u91c7\\u7528<code>-O2<\\/code>\\u7ea7\\u4f18\\u5316\\u3002<a href=\\\"https:\\/\\/github.com\\/google\\/sanitizers\\/wiki\\/AddressSanitizer\\\" target=\\\"_blank\\\">AddressSanitizer<\\/a> \\u4e5f\\u88ab\\u5f00\\u542f\\u6765\\u68c0\\u6d4b<code>out-of-bounds<\\/code>\\u548c<code>use-after-free<\\/code>\\u9519\\u8bef\\u3002<\\/p>\\r\\n\\r\\n<p>\\u4e3a\\u4e86\\u4f7f\\u7528\\u65b9\\u4fbf\\uff0c\\u5927\\u90e8\\u5206\\u6807\\u51c6\\u5e93\\u7684\\u5934\\u6587\\u4ef6\\u5df2\\u7ecf\\u88ab\\u81ea\\u52a8\\u5bfc\\u5165\\u3002<\\/p>\"],\"java\":[\"Java\",\"<p>\\u7248\\u672c\\uff1a<code>OpenJDK 17<\\/code>\\u3002\\u53ef\\u4ee5\\u4f7f\\u7528Java 8\\u7684\\u7279\\u6027\\u4f8b\\u5982\\uff0clambda expressions \\u548c stream API\\u3002<\\/p>\\r\\n\\r\\n<p>\\u4e3a\\u4e86\\u65b9\\u4fbf\\u8d77\\u89c1\\uff0c\\u5927\\u90e8\\u5206\\u6807\\u51c6\\u5e93\\u7684\\u5934\\u6587\\u4ef6\\u5df2\\u88ab\\u5bfc\\u5165\\u3002<\\/p>\\r\\n\\r\\n<p>\\u5305\\u542b Pair \\u7c7b: https:\\/\\/docs.oracle.com\\/javase\\/8\\/javafx\\/api\\/javafx\\/util\\/Pair.html <\\/p>\"],\"python\":[\"Python\",\"<p>\\u7248\\u672c\\uff1a <code>Python 2.7.12<\\/code><\\/p>\\r\\n\\r\\n<p>\\u4e3a\\u4e86\\u65b9\\u4fbf\\u8d77\\u89c1\\uff0c\\u5927\\u90e8\\u5206\\u5e38\\u7528\\u5e93\\u5df2\\u7ecf\\u88ab\\u81ea\\u52a8 \\u5bfc\\u5165\\uff0c\\u5982\\uff1a<a href=\\\"https:\\/\\/docs.python.org\\/2\\/library\\/array.html\\\" target=\\\"_blank\\\">array<\\/a>, <a href=\\\"https:\\/\\/docs.python.org\\/2\\/library\\/bisect.html\\\" target=\\\"_blank\\\">bisect<\\/a>, <a href=\\\"https:\\/\\/docs.python.org\\/2\\/library\\/collections.html\\\" target=\\\"_blank\\\">collections<\\/a>\\u3002\\u5982\\u679c\\u60a8\\u9700\\u8981\\u4f7f\\u7528\\u5176\\u4ed6\\u5e93\\u51fd\\u6570\\uff0c\\u8bf7\\u81ea\\u884c\\u5bfc\\u5165\\u3002<\\/p>\\r\\n\\r\\n<p>\\u6ce8\\u610f Python 2.7 <a href=\\\"https:\\/\\/www.python.org\\/dev\\/peps\\/pep-0373\\/\\\" target=\\\"_blank\\\">\\u5c06\\u57282020\\u5e74\\u540e\\u4e0d\\u518d\\u7ef4\\u62a4<\\/a>\\u3002 \\u5982\\u60f3\\u4f7f\\u7528\\u6700\\u65b0\\u7248\\u7684Python\\uff0c\\u8bf7\\u9009\\u62e9Python 3\\u3002<\\/p>\"],\"csharp\":[\"C#\",\"<p><a href=\\\"https:\\/\\/docs.microsoft.com\\/en-us\\/dotnet\\/csharp\\/whats-new\\/csharp-9\\\" target=\\\"_blank\\\">C# 10<\\/a> \\u8fd0\\u884c\\u5728 .NET 6 \\u4e0a<\\/p>\\r\\n\\r\\n<p>\\u60a8\\u7684\\u4ee3\\u7801\\u5728\\u7f16\\u8bd1\\u65f6\\u9ed8\\u8ba4\\u5f00\\u542f\\u4e86debug\\u6807\\u8bb0(<code>\\/debug:pdbonly<\\/code>)\\u3002<\\/p>\"],\"javascript\":[\"JavaScript\",\"<p>\\u7248\\u672c\\uff1a<code>Node.js 16.13.2<\\/code><\\/p>\\r\\n\\r\\n<p>\\u60a8\\u7684\\u4ee3\\u7801\\u5728\\u6267\\u884c\\u65f6\\u5c06\\u5e26\\u4e0a <code>--harmony<\\/code> \\u6807\\u8bb0\\u6765\\u5f00\\u542f <a href=\\\"http:\\/\\/node.green\\/\\\" target=\\\"_blank\\\">\\u65b0\\u7248ES6\\u7279\\u6027<\\/a>\\u3002<\\/p>\\r\\n\\r\\n<p><a href=\\\"https:\\/\\/lodash.com\\\" target=\\\"_blank\\\">lodash.js<\\/a> \\u5e93\\u5df2\\u7ecf\\u9ed8\\u8ba4\\u88ab\\u5305\\u542b\\u3002<\\/p>\\r\\n\\r\\n<p> \\u5982\\u9700\\u4f7f\\u7528\\u961f\\u5217\\/\\u4f18\\u5148\\u961f\\u5217\\uff0c\\u60a8\\u53ef\\u4f7f\\u7528 <a href=\\\"https:\\/\\/github.com\\/datastructures-js\\/priority-queue\\\" target=\\\"_blank\\\"> datastructures-js\\/priority-queue<\\/a> \\u548c <a href=\\\"https:\\/\\/github.com\\/datastructures-js\\/queue\\\" target=\\\"_blank\\\"> datastructures-js\\/queue<\\/a>\\u3002<\\/p>\"],\"python3\":[\"Python3\",\"<p>\\u7248\\u672c\\uff1a<code>Python 3.10<\\/code><\\/p>\\r\\n\\r\\n<p>\\u4e3a\\u4e86\\u65b9\\u4fbf\\u8d77\\u89c1\\uff0c\\u5927\\u90e8\\u5206\\u5e38\\u7528\\u5e93\\u5df2\\u7ecf\\u88ab\\u81ea\\u52a8 \\u5bfc\\u5165\\uff0c\\u5982<a href=\\\"https:\\/\\/docs.python.org\\/3\\/library\\/array.html\\\" target=\\\"_blank\\\">array<\\/a>, <a href=\\\"https:\\/\\/docs.python.org\\/3\\/library\\/bisect.html\\\" target=\\\"_blank\\\">bisect<\\/a>, <a href=\\\"https:\\/\\/docs.python.org\\/3\\/library\\/collections.html\\\" target=\\\"_blank\\\">collections<\\/a>\\u3002 \\u5982\\u679c\\u60a8\\u9700\\u8981\\u4f7f\\u7528\\u5176\\u4ed6\\u5e93\\u51fd\\u6570\\uff0c\\u8bf7\\u81ea\\u884c\\u5bfc\\u5165\\u3002<\\/p>\\r\\n\\r\\n<p>\\u5982\\u9700\\u4f7f\\u7528 Map\\/TreeMap \\u6570\\u636e\\u7ed3\\u6784\\uff0c\\u60a8\\u53ef\\u4f7f\\u7528 <a href=\\\"http:\\/\\/www.grantjenks.com\\/docs\\/sortedcontainers\\/\\\" target=\\\"_blank\\\">sortedcontainers<\\/a> \\u5e93\\u3002<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "\"helloworld\"\n80\n20\n[6,8,10,12,14,16,18,24,36]\n\"leetcode\"\n1000\n50\n[1,2,4]\n\"easyquestion\"\n100\n100\n[10,15,20,25]",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,60 @@
{
"data": {
"question": {
"questionId": "1317",
"questionFrontendId": "1193",
"categoryTitle": "Database",
"boundTopicId": 27992,
"title": "Monthly Transactions I",
"titleSlug": "monthly-transactions-i",
"content": null,
"translatedTitle": "每月交易 I",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 24,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"7.2K\", \"totalSubmission\": \"11.9K\", \"totalAcceptedRaw\": 7201, \"totalSubmissionRaw\": 11900, \"acRate\": \"60.5%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Transactions\":[\"id\",\"country\",\"state\",\"amount\",\"trans_date\"]},\"rows\":{\"Transactions\":[[121,\"US\",\"approved\",1000,\"2018-12-18\"],[122,\"US\",\"declined\",2000,\"2018-12-19\"],[123,\"US\",\"approved\",2000,\"2019-01-01\"],[124,\"DE\",\"approved\",2000,\"2019-01-07\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Transactions (id int, country varchar(4), state enum('approved', 'declined'), amount int, trans_date date)\"\n ],\n \"mssql\": [\n \"Create table Transactions (id int, country varchar(4), state varchar(10) check(state in ('approved', 'declined')), amount int, trans_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Transactions (id int, country varchar(4), state varchar(10) check(state in ('approved', 'declined')), amount int, trans_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 Transactions (id int, country varchar(4), state enum('approved', 'declined'), amount int, trans_date date)",
"Truncate table Transactions",
"insert into Transactions (id, country, state, amount, trans_date) values ('121', 'US', 'approved', '1000', '2018-12-18')",
"insert into Transactions (id, country, state, amount, trans_date) values ('122', 'US', 'declined', '2000', '2018-12-19')",
"insert into Transactions (id, country, state, amount, trans_date) values ('123', 'US', 'approved', '2000', '2019-01-01')",
"insert into Transactions (id, country, state, amount, trans_date) values ('124', 'DE', 'approved', '2000', '2019-01-07')"
],
"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\":{\"Transactions\":[\"id\",\"country\",\"state\",\"amount\",\"trans_date\"]},\"rows\":{\"Transactions\":[[121,\"US\",\"approved\",1000,\"2018-12-18\"],[122,\"US\",\"declined\",2000,\"2018-12-19\"],[123,\"US\",\"approved\",2000,\"2019-01-01\"],[124,\"DE\",\"approved\",2000,\"2019-01-07\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,66 @@
{
"data": {
"question": {
"questionId": "1328",
"questionFrontendId": "1205",
"categoryTitle": "Database",
"boundTopicId": 30479,
"title": "Monthly Transactions II",
"titleSlug": "monthly-transactions-ii",
"content": null,
"translatedTitle": "每月交易II",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 58,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"6.6K\", \"totalSubmission\": \"14.3K\", \"totalAcceptedRaw\": 6645, \"totalSubmissionRaw\": 14251, \"acRate\": \"46.6%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Transactions\":[\"id\",\"country\",\"state\",\"amount\",\"trans_date\"],\"Chargebacks\":[\"trans_id\",\"trans_date\"]},\"rows\":{\"Transactions\":[[101,\"US\",\"approved\",1000,\"2019-05-18\"],[102,\"US\",\"declined\",2000,\"2019-05-19\"],[103,\"US\",\"approved\",3000,\"2019-06-10\"],[104,\"US\",\"declined\",4000,\"2019-06-13\"],[105,\"US\",\"approved\",5000,\"2019-06-15\"]],\"Chargebacks\":[[102,\"2019-05-29\"],[101,\"2019-06-30\"],[105,\"2019-09-18\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Transactions (id int, country varchar(4), state enum('approved', 'declined'), amount int, trans_date date)\\n\",\n \"Create table If Not Exists Chargebacks (trans_id int, trans_date date)\\n\"\n ],\n \"mssql\": [\n \"Create table Transactions (id int, country varchar(4), state varchar(10) check(state in ('approved', 'declined')), amount int, trans_date date)\",\n \"Create table Chargebacks (trans_id int, trans_date date)\\n\"\n ],\n \"oraclesql\": [\n \"Create table Transactions (id int, country varchar(4), state varchar(10) check(state in ('approved', 'declined')), amount int, trans_date date)\\n\",\n \"Create table Chargebacks (trans_id int, trans_date date)\\n\",\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 Transactions (id int, country varchar(4), state enum('approved', 'declined'), amount int, trans_date date)\n",
"Create table If Not Exists Chargebacks (trans_id int, trans_date date)\n",
"Truncate table Transactions",
"insert into Transactions (id, country, state, amount, trans_date) values ('101', 'US', 'approved', '1000', '2019-05-18')",
"insert into Transactions (id, country, state, amount, trans_date) values ('102', 'US', 'declined', '2000', '2019-05-19')",
"insert into Transactions (id, country, state, amount, trans_date) values ('103', 'US', 'approved', '3000', '2019-06-10')",
"insert into Transactions (id, country, state, amount, trans_date) values ('104', 'US', 'declined', '4000', '2019-06-13')",
"insert into Transactions (id, country, state, amount, trans_date) values ('105', 'US', 'approved', '5000', '2019-06-15')",
"Truncate table Chargebacks",
"insert into Chargebacks (trans_id, trans_date) values ('102', '2019-05-29')",
"insert into Chargebacks (trans_id, trans_date) values ('101', '2019-06-30')",
"insert into Chargebacks (trans_id, trans_date) values ('105', '2019-09-18')"
],
"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\":{\"Transactions\":[\"id\",\"country\",\"state\",\"amount\",\"trans_date\"],\"Chargebacks\":[\"trans_id\",\"trans_date\"]},\"rows\":{\"Transactions\":[[101,\"US\",\"approved\",1000,\"2019-05-18\"],[102,\"US\",\"declined\",2000,\"2019-05-19\"],[103,\"US\",\"approved\",3000,\"2019-06-10\"],[104,\"US\",\"declined\",4000,\"2019-06-13\"],[105,\"US\",\"approved\",5000,\"2019-06-15\"]],\"Chargebacks\":[[102,\"2019-05-29\"],[101,\"2019-06-30\"],[105,\"2019-09-18\"]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,76 @@
{
"data": {
"question": {
"questionId": "1480",
"questionFrontendId": "1341",
"categoryTitle": "Database",
"boundTopicId": 90536,
"title": "Movie Rating",
"titleSlug": "movie-rating",
"content": null,
"translatedTitle": "电影评分",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 16,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"4.1K\", \"totalSubmission\": \"10.7K\", \"totalAcceptedRaw\": 4074, \"totalSubmissionRaw\": 10664, \"acRate\": \"38.2%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\": {\"Movies\": [\"movie_id\", \"title\"], \"Users\": [\"user_id\", \"name\"], \"MovieRating\": [\"movie_id\", \"user_id\", \"rating\", \"created_at\"]}, \"rows\": {\"Movies\": [[1, \"Avengers\"], [2, \"Frozen 2\"], [3, \"Joker\"]], \"Users\": [[1, \"Daniel\"], [2, \"Monica\"], [3, \"Maria\"], [4, \"James\"]], \"MovieRating\": [[1, 1, 3, \"2020-01-12\"], [1, 2, 4, \"2020-02-11\"], [1, 3, 2, \"2020-02-12\"], [1, 4, 1, \"2020-01-01\"], [2, 1, 5, \"2020-02-17\"], [2, 2, 2, \"2020-02-01\"], [2, 3, 2, \"2020-03-01\"], [3, 1, 3, \"2020-02-22\"], [3, 2, 4, \"2020-02-25\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Movies (movie_id int, title varchar(30))\",\n \"Create table If Not Exists Users (user_id int, name varchar(30))\",\n \"Create table If Not Exists MovieRating (movie_id int, user_id int, rating int, created_at date)\"\n ],\n \"mssql\": [\n \"Create table Movies (movie_id int, title varchar(30))\",\n \"Create table Users (user_id int, name varchar(30))\",\n \"Create table MovieRating (movie_id int, user_id int, rating int, created_at date)\"\n ],\n \"oraclesql\": [\n \"Create table Movies (movie_id int, title varchar(30))\",\n \"Create table Users (user_id int, name varchar(30))\",\n \"Create table MovieRating (movie_id int, user_id int, rating int, created_at 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 Movies (movie_id int, title varchar(30))",
"Create table If Not Exists Users (user_id int, name varchar(30))",
"Create table If Not Exists MovieRating (movie_id int, user_id int, rating int, created_at date)",
"Truncate table Movies",
"insert into Movies (movie_id, title) values ('1', 'Avengers')",
"insert into Movies (movie_id, title) values ('2', 'Frozen 2')",
"insert into Movies (movie_id, title) values ('3', 'Joker')",
"Truncate table Users",
"insert into Users (user_id, name) values ('1', 'Daniel')",
"insert into Users (user_id, name) values ('2', 'Monica')",
"insert into Users (user_id, name) values ('3', 'Maria')",
"insert into Users (user_id, name) values ('4', 'James')",
"Truncate table MovieRating",
"insert into MovieRating (movie_id, user_id, rating, created_at) values ('1', '1', '3', '2020-01-12')",
"insert into MovieRating (movie_id, user_id, rating, created_at) values ('1', '2', '4', '2020-02-11')",
"insert into MovieRating (movie_id, user_id, rating, created_at) values ('1', '3', '2', '2020-02-12')",
"insert into MovieRating (movie_id, user_id, rating, created_at) values ('1', '4', '1', '2020-01-01')",
"insert into MovieRating (movie_id, user_id, rating, created_at) values ('2', '1', '5', '2020-02-17')",
"insert into MovieRating (movie_id, user_id, rating, created_at) values ('2', '2', '2', '2020-02-01')",
"insert into MovieRating (movie_id, user_id, rating, created_at) values ('2', '3', '2', '2020-03-01')",
"insert into MovieRating (movie_id, user_id, rating, created_at) values ('3', '1', '3', '2020-02-22')",
"insert into MovieRating (movie_id, user_id, rating, created_at) values ('3', '2', '4', '2020-02-25')"
],
"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\": {\"Movies\": [\"movie_id\", \"title\"], \"Users\": [\"user_id\", \"name\"], \"MovieRating\": [\"movie_id\", \"user_id\", \"rating\", \"created_at\"]}, \"rows\": {\"Movies\": [[1, \"Avengers\"], [2, \"Frozen 2\"], [3, \"Joker\"]], \"Users\": [[1, \"Daniel\"], [2, \"Monica\"], [3, \"Maria\"], [4, \"James\"]], \"MovieRating\": [[1, 1, 3, \"2020-01-12\"], [1, 2, 4, \"2020-02-11\"], [1, 3, 2, \"2020-02-12\"], [1, 4, 1, \"2020-01-01\"], [2, 1, 5, \"2020-02-17\"], [2, 2, 2, \"2020-02-01\"], [2, 3, 2, \"2020-03-01\"], [3, 1, 3, \"2020-02-22\"], [3, 2, 4, \"2020-02-25\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,71 @@
{
"data": {
"question": {
"questionId": "1204",
"questionFrontendId": "1107",
"categoryTitle": "Database",
"boundTopicId": 33149,
"title": "New Users Daily Count",
"titleSlug": "new-users-daily-count",
"content": null,
"translatedTitle": "每日新用户统计",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 30,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"9K\", \"totalSubmission\": \"21.8K\", \"totalAcceptedRaw\": 9048, \"totalSubmissionRaw\": 21840, \"acRate\": \"41.4%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Traffic\":[\"user_id\",\"activity\",\"activity_date\"]},\"rows\":{\"Traffic\":[[1,\"login\",\"2019-05-01\"],[1,\"homepage\",\"2019-05-01\"],[1,\"logout\",\"2019-05-01\"],[2,\"login\",\"2019-06-21\"],[2,\"logout\",\"2019-06-21\"],[3,\"login\",\"2019-01-01\"],[3,\"jobs\",\"2019-01-01\"],[3,\"logout\",\"2019-01-01\"],[4,\"login\",\"2019-06-21\"],[4,\"groups\",\"2019-06-21\"],[4,\"logout\",\"2019-06-21\"],[5,\"login\",\"2019-03-01\"],[5,\"logout\",\"2019-03-01\"],[5,\"login\",\"2019-06-21\"],[5,\"logout\",\"2019-06-21\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Traffic (user_id int, activity ENUM('login', 'logout', 'jobs', 'groups', 'homepage'), activity_date date)\"\n ],\n \"mssql\": [\n \"Create table Traffic (user_id int, activity VARCHAR(10) NOT NULL CHECK (activity IN ('login', 'logout', 'jobs', 'groups', 'homepage')), activity_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Traffic (user_id int, activity VARCHAR(10) NOT NULL CHECK (activity IN ('login', 'logout', 'jobs', 'groups', 'homepage')), activity_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 Traffic (user_id int, activity ENUM('login', 'logout', 'jobs', 'groups', 'homepage'), activity_date date)",
"Truncate table Traffic",
"insert into Traffic (user_id, activity, activity_date) values ('1', 'login', '2019-05-01')",
"insert into Traffic (user_id, activity, activity_date) values ('1', 'homepage', '2019-05-01')",
"insert into Traffic (user_id, activity, activity_date) values ('1', 'logout', '2019-05-01')",
"insert into Traffic (user_id, activity, activity_date) values ('2', 'login', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('2', 'logout', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('3', 'login', '2019-01-01')",
"insert into Traffic (user_id, activity, activity_date) values ('3', 'jobs', '2019-01-01')",
"insert into Traffic (user_id, activity, activity_date) values ('3', 'logout', '2019-01-01')",
"insert into Traffic (user_id, activity, activity_date) values ('4', 'login', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('4', 'groups', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('4', 'logout', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('5', 'login', '2019-03-01')",
"insert into Traffic (user_id, activity, activity_date) values ('5', 'logout', '2019-03-01')",
"insert into Traffic (user_id, activity, activity_date) values ('5', 'login', '2019-06-21')",
"insert into Traffic (user_id, activity, activity_date) values ('5', 'logout', '2019-06-21')"
],
"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\":{\"Traffic\":[\"user_id\",\"activity\",\"activity_date\"]},\"rows\":{\"Traffic\":[[1,\"login\",\"2019-05-01\"],[1,\"homepage\",\"2019-05-01\"],[1,\"logout\",\"2019-05-01\"],[2,\"login\",\"2019-06-21\"],[2,\"logout\",\"2019-06-21\"],[3,\"login\",\"2019-01-01\"],[3,\"jobs\",\"2019-01-01\"],[3,\"logout\",\"2019-01-01\"],[4,\"login\",\"2019-06-21\"],[4,\"groups\",\"2019-06-21\"],[4,\"logout\",\"2019-06-21\"],[5,\"login\",\"2019-03-01\"],[5,\"logout\",\"2019-03-01\"],[5,\"login\",\"2019-06-21\"],[5,\"logout\",\"2019-06-21\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,73 @@
{
"data": {
"question": {
"questionId": "1551",
"questionFrontendId": "1421",
"categoryTitle": "Database",
"boundTopicId": 217289,
"title": "NPV Queries",
"titleSlug": "npv-queries",
"content": null,
"translatedTitle": "净现值查询",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 5,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"4.1K\", \"totalSubmission\": \"5.6K\", \"totalAcceptedRaw\": 4063, \"totalSubmissionRaw\": 5604, \"acRate\": \"72.5%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"NPV\":[\"id\",\"year\",\"npv\"],\"Queries\":[\"id\",\"year\"]},\"rows\":{\"NPV\":[[1,2018,100],[7,2020,30],[13,2019,40],[1,2019,113],[2,2008,121],[3,2009,21],[11,2020,99],[7,2019,0]],\"Queries\":[[1,2019],[2,2008],[3,2009],[7,2018],[7,2019],[7,2020],[13,2019]]}}",
"metaData": "{\n \"mysql\": [\n \"Create Table If Not Exists NPV (id int, year int, npv int)\",\n \"Create Table If Not Exists Queries (id int, year int)\"\n ],\n \"mssql\": [\n \"Create Table NPV (id int, year int, npv int)\",\n \"Create Table Queries (id int, year int)\"\n ],\n \"oraclesql\": [\n \"Create Table NPV (id int, year int, npv int)\",\n \"Create Table Queries (id int, year int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create Table If Not Exists NPV (id int, year int, npv int)",
"Create Table If Not Exists Queries (id int, year int)",
"Truncate table NPV",
"insert into NPV (id, year, npv) values ('1', '2018', '100')",
"insert into NPV (id, year, npv) values ('7', '2020', '30')",
"insert into NPV (id, year, npv) values ('13', '2019', '40')",
"insert into NPV (id, year, npv) values ('1', '2019', '113')",
"insert into NPV (id, year, npv) values ('2', '2008', '121')",
"insert into NPV (id, year, npv) values ('3', '2009', '21')",
"insert into NPV (id, year, npv) values ('11', '2020', '99')",
"insert into NPV (id, year, npv) values ('7', '2019', '0')",
"Truncate table Queries",
"insert into Queries (id, year) values ('1', '2019')",
"insert into Queries (id, year) values ('2', '2008')",
"insert into Queries (id, year) values ('3', '2009')",
"insert into Queries (id, year) values ('7', '2018')",
"insert into Queries (id, year) values ('7', '2019')",
"insert into Queries (id, year) values ('7', '2020')",
"insert into Queries (id, year) values ('13', '2019')"
],
"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\":{\"NPV\":[\"id\",\"year\",\"npv\"],\"Queries\":[\"id\",\"year\"]},\"rows\":{\"NPV\":[[1,2018,100],[7,2020,30],[13,2019,40],[1,2019,113],[2,2008,121],[3,2009,21],[11,2020,99],[7,2019,0]],\"Queries\":[[1,2019],[2,2008],[3,2009],[7,2018],[7,2019],[7,2020],[13,2019]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,67 @@
{
"data": {
"question": {
"questionId": "1377",
"questionFrontendId": "1241",
"categoryTitle": "Database",
"boundTopicId": 39444,
"title": "Number of Comments per Post",
"titleSlug": "number-of-comments-per-post",
"content": null,
"translatedTitle": "每个帖子的评论数",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 43,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"8.2K\", \"totalSubmission\": \"13.8K\", \"totalAcceptedRaw\": 8210, \"totalSubmissionRaw\": 13814, \"acRate\": \"59.4%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Submissions\":[\"sub_id\",\"parent_id\"]},\"rows\":{\"Submissions\":[[1,null],[2,null],[1,null],[12,null],[3,1],[5,2],[3,1],[4,1],[9,1],[10,2],[6,7]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Submissions (sub_id int, parent_id int)\"\n ],\n \"mssql\": [\n \"Create table Submissions (sub_id int, parent_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Submissions (sub_id int, parent_id int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Submissions (sub_id int, parent_id int)",
"Truncate table Submissions",
"insert into Submissions (sub_id, parent_id) values ('1', 'None')",
"insert into Submissions (sub_id, parent_id) values ('2', 'None')",
"insert into Submissions (sub_id, parent_id) values ('1', 'None')",
"insert into Submissions (sub_id, parent_id) values ('12', 'None')",
"insert into Submissions (sub_id, parent_id) values ('3', '1')",
"insert into Submissions (sub_id, parent_id) values ('5', '2')",
"insert into Submissions (sub_id, parent_id) values ('3', '1')",
"insert into Submissions (sub_id, parent_id) values ('4', '1')",
"insert into Submissions (sub_id, parent_id) values ('9', '1')",
"insert into Submissions (sub_id, parent_id) values ('10', '2')",
"insert into Submissions (sub_id, parent_id) values ('6', '7')"
],
"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\":{\"Submissions\":[\"sub_id\",\"parent_id\"]},\"rows\":{\"Submissions\":[[1,null],[2,null],[1,null],[12,null],[3,1],[5,2],[3,1],[4,1],[9,1],[10,2],[6,7]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,76 @@
{
"data": {
"question": {
"questionId": "1467",
"questionFrontendId": "1336",
"categoryTitle": "Database",
"boundTopicId": 82627,
"title": "Number of Transactions per Visit",
"titleSlug": "number-of-transactions-per-visit",
"content": null,
"translatedTitle": "每次访问的交易次数",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 16,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"2.3K\", \"totalSubmission\": \"5.2K\", \"totalAcceptedRaw\": 2283, \"totalSubmissionRaw\": 5173, \"acRate\": \"44.1%\"}",
"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,
"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\":{\"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]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,76 @@
{
"data": {
"question": {
"questionId": "1495",
"questionFrontendId": "1364",
"categoryTitle": "Database",
"boundTopicId": 111951,
"title": "Number of Trusted Contacts of a Customer",
"titleSlug": "number-of-trusted-contacts-of-a-customer",
"content": null,
"translatedTitle": "顾客的可信联系人数量",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 14,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"4.4K\", \"totalSubmission\": \"6.3K\", \"totalAcceptedRaw\": 4370, \"totalSubmissionRaw\": 6341, \"acRate\": \"68.9%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"customer_name\",\"email\"],\"Contacts\":[\"user_id\",\"contact_name\",\"contact_email\"],\"Invoices\":[\"invoice_id\",\"price\",\"user_id\"]},\"rows\":{\"Customers\":[[1,\"Alice\",\"alice@leetcode.com\"],[2,\"Bob\",\"bob@leetcode.com\"],[13,\"John\",\"john@leetcode.com\"],[6,\"Alex\",\"alex@leetcode.com\"]],\"Contacts\":[[1,\"Bob\",\"bob@leetcode.com\"],[1,\"John\",\"john@leetcode.com\"],[1,\"Jal\",\"jal@leetcode.com\"],[2,\"Omar\",\"omar@leetcode.com\"],[2,\"Meir\",\"meir@leetcode.com\"],[6,\"Alice\",\"alice@leetcode.com\"]],\"Invoices\":[[77,100,1],[88,200,1],[99,300,2],[66,400,2],[55,500,13],[44,60,6]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, customer_name varchar(20), email varchar(30))\",\n \"Create table If Not Exists Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))\",\n \"Create table If Not Exists Invoices (invoice_id int, price int, user_id int)\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, customer_name varchar(20), email varchar(30))\",\n \"Create table Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))\",\n \"Create table Invoices (invoice_id int, price int, user_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, customer_name varchar(20), email varchar(30))\",\n \"Create table Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))\",\n \"Create table Invoices (invoice_id int, price int, user_id int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Customers (customer_id int, customer_name varchar(20), email varchar(30))",
"Create table If Not Exists Contacts (user_id int, contact_name varchar(20), contact_email varchar(30))",
"Create table If Not Exists Invoices (invoice_id int, price int, user_id int)",
"Truncate table Customers",
"insert into Customers (customer_id, customer_name, email) values ('1', 'Alice', 'alice@leetcode.com')",
"insert into Customers (customer_id, customer_name, email) values ('2', 'Bob', 'bob@leetcode.com')",
"insert into Customers (customer_id, customer_name, email) values ('13', 'John', 'john@leetcode.com')",
"insert into Customers (customer_id, customer_name, email) values ('6', 'Alex', 'alex@leetcode.com')",
"Truncate table Contacts",
"insert into Contacts (user_id, contact_name, contact_email) values ('1', 'Bob', 'bob@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('1', 'John', 'john@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('1', 'Jal', 'jal@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('2', 'Omar', 'omar@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('2', 'Meir', 'meir@leetcode.com')",
"insert into Contacts (user_id, contact_name, contact_email) values ('6', 'Alice', 'alice@leetcode.com')",
"Truncate table Invoices",
"insert into Invoices (invoice_id, price, user_id) values ('77', '100', '1')",
"insert into Invoices (invoice_id, price, user_id) values ('88', '200', '1')",
"insert into Invoices (invoice_id, price, user_id) values ('99', '300', '2')",
"insert into Invoices (invoice_id, price, user_id) values ('66', '400', '2')",
"insert into Invoices (invoice_id, price, user_id) values ('55', '500', '13')",
"insert into Invoices (invoice_id, price, user_id) values ('44', '60', '6')"
],
"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\":{\"Customers\":[\"customer_id\",\"customer_name\",\"email\"],\"Contacts\":[\"user_id\",\"contact_name\",\"contact_email\"],\"Invoices\":[\"invoice_id\",\"price\",\"user_id\"]},\"rows\":{\"Customers\":[[1,\"Alice\",\"alice@leetcode.com\"],[2,\"Bob\",\"bob@leetcode.com\"],[13,\"John\",\"john@leetcode.com\"],[6,\"Alex\",\"alex@leetcode.com\"]],\"Contacts\":[[1,\"Bob\",\"bob@leetcode.com\"],[1,\"John\",\"john@leetcode.com\"],[1,\"Jal\",\"jal@leetcode.com\"],[2,\"Omar\",\"omar@leetcode.com\"],[2,\"Meir\",\"meir@leetcode.com\"],[6,\"Alice\",\"alice@leetcode.com\"]],\"Invoices\":[[77,100,1],[88,200,1],[99,300,2],[66,400,2],[55,500,13],[44,60,6]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,74 @@
{
"data": {
"question": {
"questionId": "1399",
"questionFrontendId": "1264",
"categoryTitle": "Database",
"boundTopicId": 46132,
"title": "Page Recommendations",
"titleSlug": "page-recommendations",
"content": null,
"translatedTitle": "页面推荐",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 19,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"6.2K\", \"totalSubmission\": \"11K\", \"totalAcceptedRaw\": 6216, \"totalSubmissionRaw\": 10961, \"acRate\": \"56.7%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Friendship\":[\"user1_id\",\"user2_id\"],\"Likes\":[\"user_id\",\"page_id\"]},\"rows\":{\"Friendship\":[[1,2],[1,3],[1,4],[2,3],[2,4],[2,5],[6,1]],\"Likes\":[[1,88],[2,23],[3,24],[4,56],[5,11],[6,33],[2,77],[3,77],[6,88]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Friendship (user1_id int, user2_id int)\",\n \"Create table If Not Exists Likes (user_id int, page_id int)\"\n ],\n \"mssql\": [\n \"Create table Friendship (user1_id int, user2_id int)\",\n \"Create table Likes (user_id int, page_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Friendship (user1_id int, user2_id int)\",\n \"Create table Likes (user_id int, page_id int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Friendship (user1_id int, user2_id int)",
"Create table If Not Exists Likes (user_id int, page_id int)",
"Truncate table Friendship",
"insert into Friendship (user1_id, user2_id) values ('1', '2')",
"insert into Friendship (user1_id, user2_id) values ('1', '3')",
"insert into Friendship (user1_id, user2_id) values ('1', '4')",
"insert into Friendship (user1_id, user2_id) values ('2', '3')",
"insert into Friendship (user1_id, user2_id) values ('2', '4')",
"insert into Friendship (user1_id, user2_id) values ('2', '5')",
"insert into Friendship (user1_id, user2_id) values ('6', '1')",
"Truncate table Likes",
"insert into Likes (user_id, page_id) values ('1', '88')",
"insert into Likes (user_id, page_id) values ('2', '23')",
"insert into Likes (user_id, page_id) values ('3', '24')",
"insert into Likes (user_id, page_id) values ('4', '56')",
"insert into Likes (user_id, page_id) values ('5', '11')",
"insert into Likes (user_id, page_id) values ('6', '33')",
"insert into Likes (user_id, page_id) values ('2', '77')",
"insert into Likes (user_id, page_id) values ('3', '77')",
"insert into Likes (user_id, page_id) values ('6', '88')"
],
"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\":{\"Friendship\":[\"user1_id\",\"user2_id\"],\"Likes\":[\"user_id\",\"page_id\"]},\"rows\":{\"Friendship\":[[1,2],[1,3],[1,4],[2,3],[2,4],[2,5],[6,1]],\"Likes\":[[1,88],[2,23],[3,24],[4,56],[5,11],[6,33],[2,77],[3,77],[6,88]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,62 @@
{
"data": {
"question": {
"questionId": "1278",
"questionFrontendId": "1164",
"categoryTitle": "Database",
"boundTopicId": 33161,
"title": "Product Price at a Given Date",
"titleSlug": "product-price-at-a-given-date",
"content": null,
"translatedTitle": "指定日期的产品价格",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 66,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"7.5K\", \"totalSubmission\": \"12.5K\", \"totalAcceptedRaw\": 7527, \"totalSubmissionRaw\": 12471, \"acRate\": \"60.4%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Products\":[\"product_id\",\"new_price\",\"change_date\"]},\"rows\":{\"Products\":[[1,20,\"2019-08-14\"],[2,50,\"2019-08-14\"],[1,30,\"2019-08-15\"],[1,35,\"2019-08-16\"],[2,65,\"2019-08-17\"],[3,20,\"2019-08-18\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Products (product_id int, new_price int, change_date date)\"\n ],\n \"mssql\": [\n \"Create table Products (product_id int, new_price int, change_date date)\"\n ],\n \"oraclesql\": [\n \"Create table Products (product_id int, new_price int, change_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 Products (product_id int, new_price int, change_date date)",
"Truncate table Products",
"insert into Products (product_id, new_price, change_date) values ('1', '20', '2019-08-14')",
"insert into Products (product_id, new_price, change_date) values ('2', '50', '2019-08-14')",
"insert into Products (product_id, new_price, change_date) values ('1', '30', '2019-08-15')",
"insert into Products (product_id, new_price, change_date) values ('1', '35', '2019-08-16')",
"insert into Products (product_id, new_price, change_date) values ('2', '65', '2019-08-17')",
"insert into Products (product_id, new_price, change_date) values ('3', '20', '2019-08-18')"
],
"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\":{\"Products\":[\"product_id\",\"new_price\",\"change_date\"]},\"rows\":{\"Products\":[[1,20,\"2019-08-14\"],[2,50,\"2019-08-14\"],[1,30,\"2019-08-15\"],[1,35,\"2019-08-16\"],[2,65,\"2019-08-17\"],[3,20,\"2019-08-18\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,64 @@
{
"data": {
"question": {
"questionId": "1153",
"questionFrontendId": "1068",
"categoryTitle": "Database",
"boundTopicId": 7633,
"title": "Product Sales Analysis I",
"titleSlug": "product-sales-analysis-i",
"content": null,
"translatedTitle": "产品销售分析 I",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 22,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"16.2K\", \"totalSubmission\": \"18.7K\", \"totalAcceptedRaw\": 16227, \"totalSubmissionRaw\": 18703, \"acRate\": \"86.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Sales\":[\"sale_id\",\"product_id\",\"year\",\"quantity\",\"price\"],\"Product\":[\"product_id\",\"product_name\"]},\"rows\":{\"Sales\":[[1,100,2008,10,5000],[2,100,2009,12,5000],[7,200,2011,15,9000]],\"Product\":[[100,\"Nokia\"],[200,\"Apple\"],[300,\"Samsung\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Sales (sale_id int, product_id int, year int, quantity int, price int)\",\n \"Create table If Not Exists Product (product_id int, product_name varchar(10))\"\n ],\n \"mssql\": [\n \"Create table Sales (sale_id int, product_id int, year int, quantity int, price int)\",\n \"Create table Product (product_id int, product_name varchar(10))\"\n ],\n \"oraclesql\": [\n \"Create table Sales (sale_id int, product_id int, year int, quantity int, price int)\",\n \"Create table Product (product_id int, product_name varchar(10))\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Sales (sale_id int, product_id int, year int, quantity int, price int)",
"Create table If Not Exists Product (product_id int, product_name varchar(10))",
"Truncate table Sales",
"insert into Sales (sale_id, product_id, year, quantity, price) values ('1', '100', '2008', '10', '5000')",
"insert into Sales (sale_id, product_id, year, quantity, price) values ('2', '100', '2009', '12', '5000')",
"insert into Sales (sale_id, product_id, year, quantity, price) values ('7', '200', '2011', '15', '9000')",
"Truncate table Product",
"insert into Product (product_id, product_name) values ('100', 'Nokia')",
"insert into Product (product_id, product_name) values ('200', 'Apple')",
"insert into Product (product_id, product_name) values ('300', 'Samsung')"
],
"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\":{\"Sales\":[\"sale_id\",\"product_id\",\"year\",\"quantity\",\"price\"],\"Product\":[\"product_id\",\"product_name\"]},\"rows\":{\"Sales\":[[1,100,2008,10,5000],[2,100,2009,12,5000],[7,200,2011,15,9000]],\"Product\":[[100,\"Nokia\"],[200,\"Apple\"],[300,\"Samsung\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,64 @@
{
"data": {
"question": {
"questionId": "1154",
"questionFrontendId": "1069",
"categoryTitle": "Database",
"boundTopicId": 7634,
"title": "Product Sales Analysis II",
"titleSlug": "product-sales-analysis-ii",
"content": null,
"translatedTitle": "产品销售分析 II",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 15,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"13.9K\", \"totalSubmission\": \"17K\", \"totalAcceptedRaw\": 13910, \"totalSubmissionRaw\": 17028, \"acRate\": \"81.7%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Sales\":[\"sale_id\",\"product_id\",\"year\",\"quantity\",\"price\"],\"Product\":[\"product_id\",\"product_name\"]},\"rows\":{\"Sales\":[[1,100,2008,10,5000],[2,100,2009,12,5000],[7,200,2011,15,9000]],\"Product\":[[100,\"Nokia\"],[200,\"Apple\"],[300,\"Samsung\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Sales (sale_id int, product_id int, year int, quantity int, price int)\",\n \"Create table If Not Exists Product (product_id int, product_name varchar(10))\"\n ],\n \"mssql\": [\n \"Create table Sales (sale_id int, product_id int, year int, quantity int, price int)\",\n \"Create table Product (product_id int, product_name varchar(10))\"\n ],\n \"oraclesql\": [\n \"Create table Sales (sale_id int, product_id int, year int, quantity int, price int)\",\n \"Create table Product (product_id int, product_name varchar(10))\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Sales (sale_id int, product_id int, year int, quantity int, price int)",
"Create table If Not Exists Product (product_id int, product_name varchar(10))",
"Truncate table Sales",
"insert into Sales (sale_id, product_id, year, quantity, price) values ('1', '100', '2008', '10', '5000')",
"insert into Sales (sale_id, product_id, year, quantity, price) values ('2', '100', '2009', '12', '5000')",
"insert into Sales (sale_id, product_id, year, quantity, price) values ('7', '200', '2011', '15', '9000')",
"Truncate table Product",
"insert into Product (product_id, product_name) values ('100', 'Nokia')",
"insert into Product (product_id, product_name) values ('200', 'Apple')",
"insert into Product (product_id, product_name) values ('300', 'Samsung')"
],
"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\":{\"Sales\":[\"sale_id\",\"product_id\",\"year\",\"quantity\",\"price\"],\"Product\":[\"product_id\",\"product_name\"]},\"rows\":{\"Sales\":[[1,100,2008,10,5000],[2,100,2009,12,5000],[7,200,2011,15,9000]],\"Product\":[[100,\"Nokia\"],[200,\"Apple\"],[300,\"Samsung\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,64 @@
{
"data": {
"question": {
"questionId": "1155",
"questionFrontendId": "1070",
"categoryTitle": "Database",
"boundTopicId": 7635,
"title": "Product Sales Analysis III",
"titleSlug": "product-sales-analysis-iii",
"content": null,
"translatedTitle": "产品销售分析 III",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 20,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"10.1K\", \"totalSubmission\": \"21.2K\", \"totalAcceptedRaw\": 10129, \"totalSubmissionRaw\": 21201, \"acRate\": \"47.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Sales\":[\"sale_id\",\"product_id\",\"year\",\"quantity\",\"price\"],\"Product\":[\"product_id\",\"product_name\"]},\"rows\":{\"Sales\":[[1,100,2008,10,5000],[2,100,2009,12,5000],[7,200,2011,15,9000]],\"Product\":[[100,\"Nokia\"],[200,\"Apple\"],[300,\"Samsung\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Sales (sale_id int, product_id int, year int, quantity int, price int)\",\n \"Create table If Not Exists Product (product_id int, product_name varchar(10))\"\n ],\n \"mssql\": [\n \"Create table Sales (sale_id int, product_id int, year int, quantity int, price int)\",\n \"Create table Product (product_id int, product_name varchar(10))\"\n ],\n \"oraclesql\": [\n \"Create table Sales (sale_id int, product_id int, year int, quantity int, price int)\",\n \"Create table Product (product_id int, product_name varchar(10))\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Sales (sale_id int, product_id int, year int, quantity int, price int)",
"Create table If Not Exists Product (product_id int, product_name varchar(10))",
"Truncate table Sales",
"insert into Sales (sale_id, product_id, year, quantity, price) values ('1', '100', '2008', '10', '5000')",
"insert into Sales (sale_id, product_id, year, quantity, price) values ('2', '100', '2009', '12', '5000')",
"insert into Sales (sale_id, product_id, year, quantity, price) values ('7', '200', '2011', '15', '9000')",
"Truncate table Product",
"insert into Product (product_id, product_name) values ('100', 'Nokia')",
"insert into Product (product_id, product_name) values ('200', 'Apple')",
"insert into Product (product_id, product_name) values ('300', 'Samsung')"
],
"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\":{\"Sales\":[\"sale_id\",\"product_id\",\"year\",\"quantity\",\"price\"],\"Product\":[\"product_id\",\"product_name\"]},\"rows\":{\"Sales\":[[1,100,2008,10,5000],[2,100,2009,12,5000],[7,200,2011,15,9000]],\"Product\":[[100,\"Nokia\"],[200,\"Apple\"],[300,\"Samsung\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,67 @@
{
"data": {
"question": {
"questionId": "1161",
"questionFrontendId": "1075",
"categoryTitle": "Database",
"boundTopicId": 8825,
"title": "Project Employees I",
"titleSlug": "project-employees-i",
"content": null,
"translatedTitle": "项目员工 I",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 19,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"12.4K\", \"totalSubmission\": \"17.8K\", \"totalAcceptedRaw\": 12416, \"totalSubmissionRaw\": 17814, \"acRate\": \"69.7%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Project\":[\"project_id\",\"employee_id\"],\"Employee\":[\"employee_id\",\"name\",\"experience_years\"]},\"rows\":{\"Project\":[[1,1],[1,2],[1,3],[2,1],[2,4]],\"Employee\":[[1,\"Khaled\",3],[2,\"Ali\",2],[3,\"John\",1],[4,\"Doe\",2]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Project (project_id int, employee_id int)\",\n \"Create table If Not Exists Employee (employee_id int, name varchar(10), experience_years int)\"\n ],\n \"mssql\": [\n \"Create table Project (project_id int, employee_id int)\",\n \"Create table Employee (employee_id int, name varchar(10), experience_years int)\"\n ],\n \"oraclesql\": [\n \"Create table Project (project_id int, employee_id int)\",\n \"Create table Employee (employee_id int, name varchar(10), experience_years int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Project (project_id int, employee_id int)",
"Create table If Not Exists Employee (employee_id int, name varchar(10), experience_years int)",
"Truncate table Project",
"insert into Project (project_id, employee_id) values ('1', '1')",
"insert into Project (project_id, employee_id) values ('1', '2')",
"insert into Project (project_id, employee_id) values ('1', '3')",
"insert into Project (project_id, employee_id) values ('2', '1')",
"insert into Project (project_id, employee_id) values ('2', '4')",
"Truncate table Employee",
"insert into Employee (employee_id, name, experience_years) values ('1', 'Khaled', '3')",
"insert into Employee (employee_id, name, experience_years) values ('2', 'Ali', '2')",
"insert into Employee (employee_id, name, experience_years) values ('3', 'John', '1')",
"insert into Employee (employee_id, name, experience_years) values ('4', 'Doe', '2')"
],
"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\":{\"Project\":[\"project_id\",\"employee_id\"],\"Employee\":[\"employee_id\",\"name\",\"experience_years\"]},\"rows\":{\"Project\":[[1,1],[1,2],[1,3],[2,1],[2,4]],\"Employee\":[[1,\"Khaled\",3],[2,\"Ali\",2],[3,\"John\",1],[4,\"Doe\",2]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,67 @@
{
"data": {
"question": {
"questionId": "1162",
"questionFrontendId": "1076",
"categoryTitle": "Database",
"boundTopicId": 11033,
"title": "Project Employees II",
"titleSlug": "project-employees-ii",
"content": null,
"translatedTitle": "项目员工II",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 35,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"13.3K\", \"totalSubmission\": \"27K\", \"totalAcceptedRaw\": 13316, \"totalSubmissionRaw\": 27044, \"acRate\": \"49.2%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Project\":[\"project_id\",\"employee_id\"],\"Employee\":[\"employee_id\",\"name\",\"experience_years\"]},\"rows\":{\"Project\":[[1,1],[1,2],[1,3],[2,1],[2,4]],\"Employee\":[[1,\"Khaled\",3],[2,\"Ali\",2],[3,\"John\",1],[4,\"Doe\",2]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Project (project_id int, employee_id int)\",\n \"Create table If Not Exists Employee (employee_id int, name varchar(10), experience_years int)\"\n ],\n \"mssql\": [\n \"Create table Project (project_id int, employee_id int)\",\n \"Create table Employee (employee_id int, name varchar(10), experience_years int)\"\n ],\n \"oraclesql\": [\n \"Create table Project (project_id int, employee_id int)\",\n \"Create table Employee (employee_id int, name varchar(10), experience_years int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Project (project_id int, employee_id int)",
"Create table If Not Exists Employee (employee_id int, name varchar(10), experience_years int)",
"Truncate table Project",
"insert into Project (project_id, employee_id) values ('1', '1')",
"insert into Project (project_id, employee_id) values ('1', '2')",
"insert into Project (project_id, employee_id) values ('1', '3')",
"insert into Project (project_id, employee_id) values ('2', '1')",
"insert into Project (project_id, employee_id) values ('2', '4')",
"Truncate table Employee",
"insert into Employee (employee_id, name, experience_years) values ('1', 'Khaled', '3')",
"insert into Employee (employee_id, name, experience_years) values ('2', 'Ali', '2')",
"insert into Employee (employee_id, name, experience_years) values ('3', 'John', '1')",
"insert into Employee (employee_id, name, experience_years) values ('4', 'Doe', '2')"
],
"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\":{\"Project\":[\"project_id\",\"employee_id\"],\"Employee\":[\"employee_id\",\"name\",\"experience_years\"]},\"rows\":{\"Project\":[[1,1],[1,2],[1,3],[2,1],[2,4]],\"Employee\":[[1,\"Khaled\",3],[2,\"Ali\",2],[3,\"John\",1],[4,\"Doe\",2]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,67 @@
{
"data": {
"question": {
"questionId": "1163",
"questionFrontendId": "1077",
"categoryTitle": "Database",
"boundTopicId": 11013,
"title": "Project Employees III",
"titleSlug": "project-employees-iii",
"content": null,
"translatedTitle": "项目员工 III",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 34,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"9.8K\", \"totalSubmission\": \"13.4K\", \"totalAcceptedRaw\": 9753, \"totalSubmissionRaw\": 13445, \"acRate\": \"72.5%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Project\":[\"project_id\",\"employee_id\"],\"Employee\":[\"employee_id\",\"name\",\"experience_years\"]},\"rows\":{\"Project\":[[1,1],[1,2],[1,3],[2,1],[2,4]],\"Employee\":[[1,\"Khaled\",3],[2,\"Ali\",2],[3,\"John\",3],[4,\"Doe\",2]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Project (project_id int, employee_id int)\",\n \"Create table If Not Exists Employee (employee_id int, name varchar(10), experience_years int)\"\n ],\n \"mssql\": [\n \"Create table Project (project_id int, employee_id int)\",\n \"Create table Employee (employee_id int, name varchar(10), experience_years int)\"\n ],\n \"oraclesql\": [\n \"Create table Project (project_id int, employee_id int)\",\n \"Create table Employee (employee_id int, name varchar(10), experience_years int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Project (project_id int, employee_id int)",
"Create table If Not Exists Employee (employee_id int, name varchar(10), experience_years int)",
"Truncate table Project",
"insert into Project (project_id, employee_id) values ('1', '1')",
"insert into Project (project_id, employee_id) values ('1', '2')",
"insert into Project (project_id, employee_id) values ('1', '3')",
"insert into Project (project_id, employee_id) values ('2', '1')",
"insert into Project (project_id, employee_id) values ('2', '4')",
"Truncate table Employee",
"insert into Employee (employee_id, name, experience_years) values ('1', 'Khaled', '3')",
"insert into Employee (employee_id, name, experience_years) values ('2', 'Ali', '2')",
"insert into Employee (employee_id, name, experience_years) values ('3', 'John', '3')",
"insert into Employee (employee_id, name, experience_years) values ('4', 'Doe', '2')"
],
"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\":{\"Project\":[\"project_id\",\"employee_id\"],\"Employee\":[\"employee_id\",\"name\",\"experience_years\"]},\"rows\":{\"Project\":[[1,1],[1,2],[1,3],[2,1],[2,4]],\"Employee\":[[1,\"Khaled\",3],[2,\"Ali\",2],[3,\"John\",3],[4,\"Doe\",2]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,62 @@
{
"data": {
"question": {
"questionId": "1338",
"questionFrontendId": "1211",
"categoryTitle": "Database",
"boundTopicId": 33172,
"title": "Queries Quality and Percentage",
"titleSlug": "queries-quality-and-percentage",
"content": null,
"translatedTitle": "查询结果的质量和占比",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 27,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"9.4K\", \"totalSubmission\": \"14.3K\", \"totalAcceptedRaw\": 9373, \"totalSubmissionRaw\": 14265, \"acRate\": \"65.7%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Queries\":[\"query_name\",\"result\",\"position\",\"rating\"]},\"rows\":{\"Queries\":[[\"Dog\",\"Golden Retriever\",1,5],[\"Dog\",\"German Shepherd\",2,5],[\"Dog\",\"Mule\",200,1],[\"Cat\",\"Shirazi\",5,2],[\"Cat\",\"Siamese\",3,3],[\"Cat\",\"Sphynx\",7,4]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Queries (query_name varchar(30), result varchar(50), position int, rating int)\"\n ],\n \"mssql\": [\n \"create table Queries (query_name varchar(30), result varchar(50), position int, rating int)\"\n ],\n \"oraclesql\": [\n \"create table Queries (query_name varchar(30), result varchar(50), position int, rating int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Queries (query_name varchar(30), result varchar(50), position int, rating int)",
"Truncate table Queries",
"insert into Queries (query_name, result, position, rating) values ('Dog', 'Golden Retriever', '1', '5')",
"insert into Queries (query_name, result, position, rating) values ('Dog', 'German Shepherd', '2', '5')",
"insert into Queries (query_name, result, position, rating) values ('Dog', 'Mule', '200', '1')",
"insert into Queries (query_name, result, position, rating) values ('Cat', 'Shirazi', '5', '2')",
"insert into Queries (query_name, result, position, rating) values ('Cat', 'Siamese', '3', '3')",
"insert into Queries (query_name, result, position, rating) values ('Cat', 'Sphynx', '7', '4')"
],
"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\":{\"Queries\":[\"query_name\",\"result\",\"position\",\"rating\"]},\"rows\":{\"Queries\":[[\"Dog\",\"Golden Retriever\",1,5],[\"Dog\",\"German Shepherd\",2,5],[\"Dog\",\"Mule\",200,1],[\"Cat\",\"Shirazi\",5,2],[\"Cat\",\"Siamese\",3,3],[\"Cat\",\"Sphynx\",7,4]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,59 @@
{
"data": {
"question": {
"questionId": "1607",
"questionFrontendId": "1459",
"categoryTitle": "Database",
"boundTopicId": 266481,
"title": "Rectangles Area",
"titleSlug": "rectangles-area",
"content": null,
"translatedTitle": "矩形面积",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 7,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"2.9K\", \"totalSubmission\": \"4.8K\", \"totalAcceptedRaw\": 2925, \"totalSubmissionRaw\": 4847, \"acRate\": \"60.3%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Points\":[\"id\",\"x_value\",\"y_value\"]},\"rows\":{\"Points\":[[1,2,7],[2,4,8],[3,2,10]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Points (id int, x_value int, y_value int)\"\n ],\n \"mssql\": [\n \"Create table Points (id int, x_value int, y_value int)\"\n ],\n \"oraclesql\": [\n \"Create table Points (id int, x_value int, y_value int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Points (id int, x_value int, y_value int)",
"Truncate table Points",
"insert into Points (id, x_value, y_value) values ('1', '2', '7')",
"insert into Points (id, x_value, y_value) values ('2', '4', '8')",
"insert into Points (id, x_value, y_value) values ('3', '2', '10')"
],
"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\":{\"Points\":[\"id\",\"x_value\",\"y_value\"]},\"rows\":{\"Points\":[[1,2,7],[2,4,8],[3,2,10]]}}",
"__typename": "QuestionNode"
}
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,66 @@
{
"data": {
"question": {
"questionId": "1509",
"questionFrontendId": "1378",
"categoryTitle": "Database",
"boundTopicId": 145923,
"title": "Replace Employee ID With The Unique Identifier",
"titleSlug": "replace-employee-id-with-the-unique-identifier",
"content": null,
"translatedTitle": "使用唯一标识码替换员工ID",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 13,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"8.6K\", \"totalSubmission\": \"9.9K\", \"totalAcceptedRaw\": 8642, \"totalSubmissionRaw\": 9950, \"acRate\": \"86.9%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Employees\":[\"id\",\"name\"],\"EmployeeUNI\":[\"id\",\"unique_id\"]},\"rows\":{\"Employees\":[[1,\"Alice\"],[7,\"Bob\"],[11,\"Meir\"],[90,\"Winston\"],[3,\"Jonathan\"]],\"EmployeeUNI\":[[3,1],[11,2],[90,3]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employees (id int, name varchar(20))\",\n \"Create table If Not Exists EmployeeUNI (id int, unique_id int)\"\n ],\n \"mssql\": [\n \"Create table Employees (id int, name varchar(20))\",\n \"Create table EmployeeUNI (id int, unique_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Employees (id int, name varchar(20))\",\n \"Create table EmployeeUNI (id int, unique_id int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Employees (id int, name varchar(20))",
"Create table If Not Exists EmployeeUNI (id int, unique_id int)",
"Truncate table Employees",
"insert into Employees (id, name) values ('1', 'Alice')",
"insert into Employees (id, name) values ('7', 'Bob')",
"insert into Employees (id, name) values ('11', 'Meir')",
"insert into Employees (id, name) values ('90', 'Winston')",
"insert into Employees (id, name) values ('3', 'Jonathan')",
"Truncate table EmployeeUNI",
"insert into EmployeeUNI (id, unique_id) values ('3', '1')",
"insert into EmployeeUNI (id, unique_id) values ('11', '2')",
"insert into EmployeeUNI (id, unique_id) values ('90', '3')"
],
"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\":{\"Employees\":[\"id\",\"name\"],\"EmployeeUNI\":[\"id\",\"unique_id\"]},\"rows\":{\"Employees\":[[1,\"Alice\"],[7,\"Bob\"],[11,\"Meir\"],[90,\"Winston\"],[3,\"Jonathan\"]],\"EmployeeUNI\":[[3,1],[11,2],[90,3]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,68 @@
{
"data": {
"question": {
"questionId": "1357",
"questionFrontendId": "1225",
"categoryTitle": "Database",
"boundTopicId": 35336,
"title": "Report Contiguous Dates",
"titleSlug": "report-contiguous-dates",
"content": null,
"translatedTitle": "报告系统状态的连续日期",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Hard",
"likes": 45,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"4.3K\", \"totalSubmission\": \"7.9K\", \"totalAcceptedRaw\": 4270, \"totalSubmissionRaw\": 7941, \"acRate\": \"53.8%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Failed\":[\"fail_date\"],\"Succeeded\":[\"success_date\"]},\"rows\":{\"Failed\":[[\"2018-12-28\"],[\"2018-12-29\"],[\"2019-01-04\"],[\"2019-01-05\"]],\"Succeeded\":[[\"2018-12-30\"],[\"2018-12-31\"],[\"2019-01-01\"],[\"2019-01-02\"],[\"2019-01-03\"],[\"2019-01-06\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Failed (fail_date date)\",\n \"Create table If Not Exists Succeeded (success_date date)\"\n ],\n \"mssql\": [\n \"Create table Failed (fail_date date)\",\n \"Create table Succeeded (success_date date)\\n\"\n ],\n \"oraclesql\": [\n \"Create table Failed (fail_date date)\",\n \"Create table Succeeded (success_date date)\\n\",\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 Failed (fail_date date)",
"Create table If Not Exists Succeeded (success_date date)",
"Truncate table Failed",
"insert into Failed (fail_date) values ('2018-12-28')",
"insert into Failed (fail_date) values ('2018-12-29')",
"insert into Failed (fail_date) values ('2019-01-04')",
"insert into Failed (fail_date) values ('2019-01-05')",
"Truncate table Succeeded",
"insert into Succeeded (success_date) values ('2018-12-30')",
"insert into Succeeded (success_date) values ('2018-12-31')",
"insert into Succeeded (success_date) values ('2019-01-01')",
"insert into Succeeded (success_date) values ('2019-01-02')",
"insert into Succeeded (success_date) values ('2019-01-03')",
"insert into Succeeded (success_date) values ('2019-01-06')"
],
"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\":{\"Failed\":[\"fail_date\"],\"Succeeded\":[\"success_date\"]},\"rows\":{\"Failed\":[[\"2018-12-28\"],[\"2018-12-29\"],[\"2019-01-04\"],[\"2019-01-05\"]],\"Succeeded\":[[\"2018-12-30\"],[\"2018-12-31\"],[\"2019-01-01\"],[\"2019-01-02\"],[\"2019-01-03\"],[\"2019-01-06\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,73 @@
{
"data": {
"question": {
"questionId": "1237",
"questionFrontendId": "1132",
"categoryTitle": "Database",
"boundTopicId": 33252,
"title": "Reported Posts II",
"titleSlug": "reported-posts-ii",
"content": null,
"translatedTitle": "报告的记录 II",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 36,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"6.2K\", \"totalSubmission\": \"16K\", \"totalAcceptedRaw\": 6230, \"totalSubmissionRaw\": 15955, \"acRate\": \"39.0%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Actions\":[\"user_id\",\"post_id\",\"action_date\",\"action\",\"extra\"],\"Removals\":[\"post_id\",\"remove_date\"]},\"rows\":{\"Actions\":[[1,1,\"2019-07-01\",\"view\",null],[1,1,\"2019-07-01\",\"like\",null],[1,1,\"2019-07-01\",\"share\",null],[2,2,\"2019-07-04\",\"view\",null],[2,2,\"2019-07-04\",\"report\",\"spam\"],[3,4,\"2019-07-04\",\"view\",null],[3,4,\"2019-07-04\",\"report\",\"spam\"],[4,3,\"2019-07-02\",\"view\",null],[4,3,\"2019-07-02\",\"report\",\"spam\"],[5,2,\"2019-07-03\",\"view\",null],[5,2,\"2019-07-03\",\"report\",\"racism\"],[5,5,\"2019-07-03\",\"view\",null],[5,5,\"2019-07-03\",\"report\",\"racism\"]],\"Removals\":[[2,\"2019-07-20\"],[3,\"2019-07-18\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Actions (user_id int, post_id int, action_date date, action ENUM('view', 'like', 'reaction', 'comment', 'report', 'share'), extra varchar(10))\",\n \"create table if not exists Removals (post_id int, remove_date date)\"\n ],\n \"mssql\": [\n \"create table Actions (user_id int, post_id int, action_date date, action VARCHAR(10) NOT NULL CHECK (action IN ('view', 'like', 'reaction', 'comment', 'report', 'share')), extra varchar(10))\",\n \"create table Removals (post_id int, remove_date date)\"\n ],\n \"oraclesql\": [\n \"create table Actions (user_id int, post_id int, action_date date, action VARCHAR(10) NOT NULL CHECK (action IN ('view', 'like', 'reaction', 'comment', 'report', 'share')), extra varchar(10))\",\n \"create table Removals (post_id int, remove_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 Actions (user_id int, post_id int, action_date date, action ENUM('view', 'like', 'reaction', 'comment', 'report', 'share'), extra varchar(10))",
"create table if not exists Removals (post_id int, remove_date date)",
"Truncate table Actions",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('1', '1', '2019-07-01', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('1', '1', '2019-07-01', 'like', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('1', '1', '2019-07-01', 'share', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('2', '2', '2019-07-04', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('2', '2', '2019-07-04', 'report', 'spam')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('3', '4', '2019-07-04', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('3', '4', '2019-07-04', 'report', 'spam')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('4', '3', '2019-07-02', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('4', '3', '2019-07-02', 'report', 'spam')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('5', '2', '2019-07-03', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('5', '2', '2019-07-03', 'report', 'racism')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('5', '5', '2019-07-03', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('5', '5', '2019-07-03', 'report', 'racism')",
"Truncate table Removals",
"insert into Removals (post_id, remove_date) values ('2', '2019-07-20')",
"insert into Removals (post_id, remove_date) values ('3', '2019-07-18')"
],
"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\":{\"Actions\":[\"user_id\",\"post_id\",\"action_date\",\"action\",\"extra\"],\"Removals\":[\"post_id\",\"remove_date\"]},\"rows\":{\"Actions\":[[1,1,\"2019-07-01\",\"view\",null],[1,1,\"2019-07-01\",\"like\",null],[1,1,\"2019-07-01\",\"share\",null],[2,2,\"2019-07-04\",\"view\",null],[2,2,\"2019-07-04\",\"report\",\"spam\"],[3,4,\"2019-07-04\",\"view\",null],[3,4,\"2019-07-04\",\"report\",\"spam\"],[4,3,\"2019-07-02\",\"view\",null],[4,3,\"2019-07-02\",\"report\",\"spam\"],[5,2,\"2019-07-03\",\"view\",null],[5,2,\"2019-07-03\",\"report\",\"racism\"],[5,5,\"2019-07-03\",\"view\",null],[5,5,\"2019-07-03\",\"report\",\"racism\"]],\"Removals\":[[2,\"2019-07-20\"],[3,\"2019-07-18\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,69 @@
{
"data": {
"question": {
"questionId": "1215",
"questionFrontendId": "1113",
"categoryTitle": "Database",
"boundTopicId": 33153,
"title": "Reported Posts",
"titleSlug": "reported-posts",
"content": null,
"translatedTitle": "报告的记录",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 23,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"9.1K\", \"totalSubmission\": \"17K\", \"totalAcceptedRaw\": 9082, \"totalSubmissionRaw\": 16961, \"acRate\": \"53.5%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Actions\":[\"user_id\",\"post_id\",\"action_date\",\"action\",\"extra\"]},\"rows\":{\"Actions\":[[1,1,\"2019-07-01\",\"view\",null],[1,1,\"2019-07-01\",\"like\",null],[1,1,\"2019-07-01\",\"share\",null],[2,4,\"2019-07-04\",\"view\",null],[2,4,\"2019-07-04\",\"report\",\"spam\"],[3,4,\"2019-07-04\",\"view\",null],[3,4,\"2019-07-04\",\"report\",\"spam\"],[4,3,\"2019-07-02\",\"view\",null],[4,3,\"2019-07-02\",\"report\",\"spam\"],[5,2,\"2019-07-04\",\"view\",null],[5,2,\"2019-07-04\",\"report\",\"racism\"],[5,5,\"2019-07-04\",\"view\",null],[5,5,\"2019-07-04\",\"report\",\"racism\"]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Actions (user_id int, post_id int, action_date date, action ENUM('view', 'like', 'reaction', 'comment', 'report', 'share'), extra varchar(10))\"\n ],\n \"mssql\": [\n \"create table Actions (user_id int, post_id int, action_date date, action VARCHAR(10) NOT NULL CHECK (action IN ('view', 'like', 'reaction', 'comment', 'report', 'share')), extra varchar(10))\"\n ],\n \"oraclesql\": [\n \"create table Actions (user_id int, post_id int, action_date date, action VARCHAR(10) NOT NULL CHECK (action IN ('view', 'like', 'reaction', 'comment', 'report', 'share')), extra varchar(10))\",\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 Actions (user_id int, post_id int, action_date date, action ENUM('view', 'like', 'reaction', 'comment', 'report', 'share'), extra varchar(10))",
"Truncate table Actions",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('1', '1', '2019-07-01', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('1', '1', '2019-07-01', 'like', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('1', '1', '2019-07-01', 'share', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('2', '4', '2019-07-04', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('2', '4', '2019-07-04', 'report', 'spam')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('3', '4', '2019-07-04', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('3', '4', '2019-07-04', 'report', 'spam')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('4', '3', '2019-07-02', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('4', '3', '2019-07-02', 'report', 'spam')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('5', '2', '2019-07-04', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('5', '2', '2019-07-04', 'report', 'racism')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('5', '5', '2019-07-04', 'view', 'None')",
"insert into Actions (user_id, post_id, action_date, action, extra) values ('5', '5', '2019-07-04', 'report', 'racism')"
],
"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\":{\"Actions\":[\"user_id\",\"post_id\",\"action_date\",\"action\",\"extra\"]},\"rows\":{\"Actions\":[[1,1,\"2019-07-01\",\"view\",null],[1,1,\"2019-07-01\",\"like\",null],[1,1,\"2019-07-01\",\"share\",null],[2,4,\"2019-07-04\",\"view\",null],[2,4,\"2019-07-04\",\"report\",\"spam\"],[3,4,\"2019-07-04\",\"view\",null],[3,4,\"2019-07-04\",\"report\",\"spam\"],[4,3,\"2019-07-02\",\"view\",null],[4,3,\"2019-07-02\",\"report\",\"spam\"],[5,2,\"2019-07-04\",\"view\",null],[5,2,\"2019-07-04\",\"report\",\"racism\"],[5,5,\"2019-07-04\",\"view\",null],[5,5,\"2019-07-04\",\"report\",\"racism\"]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,67 @@
{
"data": {
"question": {
"questionId": "1452",
"questionFrontendId": "1321",
"categoryTitle": "Database",
"boundTopicId": 74822,
"title": "Restaurant Growth",
"titleSlug": "restaurant-growth",
"content": null,
"translatedTitle": "餐馆营业额变化增长",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 57,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"5.8K\", \"totalSubmission\": \"9.5K\", \"totalAcceptedRaw\": 5838, \"totalSubmissionRaw\": 9482, \"acRate\": \"61.6%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Customer\":[\"customer_id\",\"name\",\"visited_on\",\"amount\"]},\"rows\":{\"Customer\":[[1,\"Jhon\",\"2019-01-01\",100],[2,\"Daniel\",\"2019-01-02\",110],[3,\"Jade\",\"2019-01-03\",120],[4,\"Khaled\",\"2019-01-04\",130],[5,\"Winston\",\"2019-01-05\",110],[6,\"Elvis\",\"2019-01-06\",140],[7,\"Anna\",\"2019-01-07\",150],[8,\"Maria\",\"2019-01-08\",80],[9,\"Jaze\",\"2019-01-09\",110],[1,\"Jhon\",\"2019-01-10\",130],[3,\"Jade\",\"2019-01-10\",150]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customer (customer_id int, name varchar(20), visited_on date, amount int)\"\n ],\n \"mssql\": [\n \"Create table Customer (customer_id int, name varchar(20), visited_on date, amount int)\"\n ],\n \"oraclesql\": [\n \"Create table Customer (customer_id int, name varchar(20), visited_on 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 Customer (customer_id int, name varchar(20), visited_on date, amount int)",
"Truncate table Customer",
"insert into Customer (customer_id, name, visited_on, amount) values ('1', 'Jhon', '2019-01-01', '100')",
"insert into Customer (customer_id, name, visited_on, amount) values ('2', 'Daniel', '2019-01-02', '110')",
"insert into Customer (customer_id, name, visited_on, amount) values ('3', 'Jade', '2019-01-03', '120')",
"insert into Customer (customer_id, name, visited_on, amount) values ('4', 'Khaled', '2019-01-04', '130')",
"insert into Customer (customer_id, name, visited_on, amount) values ('5', 'Winston', '2019-01-05', '110')",
"insert into Customer (customer_id, name, visited_on, amount) values ('6', 'Elvis', '2019-01-06', '140')",
"insert into Customer (customer_id, name, visited_on, amount) values ('7', 'Anna', '2019-01-07', '150')",
"insert into Customer (customer_id, name, visited_on, amount) values ('8', 'Maria', '2019-01-08', '80')",
"insert into Customer (customer_id, name, visited_on, amount) values ('9', 'Jaze', '2019-01-09', '110')",
"insert into Customer (customer_id, name, visited_on, amount) values ('1', 'Jhon', '2019-01-10', '130')",
"insert into Customer (customer_id, name, visited_on, amount) values ('3', 'Jade', '2019-01-10', '150')"
],
"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\":{\"Customer\":[\"customer_id\",\"name\",\"visited_on\",\"amount\"]},\"rows\":{\"Customer\":[[1,\"Jhon\",\"2019-01-01\",100],[2,\"Daniel\",\"2019-01-02\",110],[3,\"Jade\",\"2019-01-03\",120],[4,\"Khaled\",\"2019-01-04\",130],[5,\"Winston\",\"2019-01-05\",110],[6,\"Elvis\",\"2019-01-06\",140],[7,\"Anna\",\"2019-01-07\",150],[8,\"Maria\",\"2019-01-08\",80],[9,\"Jaze\",\"2019-01-09\",110],[1,\"Jhon\",\"2019-01-10\",130],[3,\"Jade\",\"2019-01-10\",150]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,65 @@
{
"data": {
"question": {
"questionId": "1439",
"questionFrontendId": "1308",
"categoryTitle": "Database",
"boundTopicId": 74773,
"title": "Running Total for Different Genders",
"titleSlug": "running-total-for-different-genders",
"content": null,
"translatedTitle": "不同性别每日分数总计",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 24,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"6.6K\", \"totalSubmission\": \"8.7K\", \"totalAcceptedRaw\": 6586, \"totalSubmissionRaw\": 8722, \"acRate\": \"75.5%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Scores\":[\"player_name\",\"gender\",\"day\",\"score_points\"]},\"rows\":{\"Scores\":[[\"Aron\",\"F\",\"2020-01-01\",17],[\"Alice\",\"F\",\"2020-01-07\",23],[\"Bajrang\",\"M\",\"2020-01-07\",7],[\"Khali\",\"M\",\"2019-12-25\",11],[\"Slaman\",\"M\",\"2019-12-30\",13],[\"Joe\",\"M\",\"2019-12-31\",3],[\"Jose\",\"M\",\"2019-12-18\",2],[\"Priya\",\"F\",\"2019-12-31\",23],[\"Priyanka\",\"F\",\"2019-12-30\",17]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Scores (player_name varchar(20), gender varchar(1), day date, score_points int)\"\n ],\n \"mssql\": [\n \"Create table Scores (player_name varchar(20), gender varchar(1), day date, score_points int)\"\n ],\n \"oraclesql\": [\n \"Create table Scores (player_name varchar(20), gender varchar(1), day date, score_points 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 Scores (player_name varchar(20), gender varchar(1), day date, score_points int)",
"Truncate table Scores",
"insert into Scores (player_name, gender, day, score_points) values ('Aron', 'F', '2020-01-01', '17')",
"insert into Scores (player_name, gender, day, score_points) values ('Alice', 'F', '2020-01-07', '23')",
"insert into Scores (player_name, gender, day, score_points) values ('Bajrang', 'M', '2020-01-07', '7')",
"insert into Scores (player_name, gender, day, score_points) values ('Khali', 'M', '2019-12-25', '11')",
"insert into Scores (player_name, gender, day, score_points) values ('Slaman', 'M', '2019-12-30', '13')",
"insert into Scores (player_name, gender, day, score_points) values ('Joe', 'M', '2019-12-31', '3')",
"insert into Scores (player_name, gender, day, score_points) values ('Jose', 'M', '2019-12-18', '2')",
"insert into Scores (player_name, gender, day, score_points) values ('Priya', 'F', '2019-12-31', '23')",
"insert into Scores (player_name, gender, day, score_points) values ('Priyanka', 'F', '2019-12-30', '17')"
],
"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\":{\"Scores\":[\"player_name\",\"gender\",\"day\",\"score_points\"]},\"rows\":{\"Scores\":[[\"Aron\",\"F\",\"2020-01-01\",17],[\"Alice\",\"F\",\"2020-01-07\",23],[\"Bajrang\",\"M\",\"2020-01-07\",7],[\"Khali\",\"M\",\"2019-12-25\",11],[\"Slaman\",\"M\",\"2019-12-30\",13],[\"Joe\",\"M\",\"2019-12-31\",3],[\"Jose\",\"M\",\"2019-12-18\",2],[\"Priya\",\"F\",\"2019-12-31\",23],[\"Priyanka\",\"F\",\"2019-12-30\",17]]}}",
"__typename": "QuestionNode"
}
}
}

View File

@@ -0,0 +1,65 @@
{
"data": {
"question": {
"questionId": "1172",
"questionFrontendId": "1082",
"categoryTitle": "Database",
"boundTopicId": 11027,
"title": "Sales Analysis I",
"titleSlug": "sales-analysis-i",
"content": null,
"translatedTitle": "销售分析 I ",
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Easy",
"likes": 47,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": null,
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": "数据库",
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"14.7K\", \"totalSubmission\": \"19.3K\", \"totalAcceptedRaw\": 14731, \"totalSubmissionRaw\": 19284, \"acRate\": \"76.4%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Product\":[\"product_id\",\"product_name\",\"unit_price\"],\"Sales\":[\"seller_id\",\"product_id\",\"buyer_id\",\"sale_date\",\"quantity\",\"price\"]},\"rows\":{\"Product\":[[1,\"S8\",1000],[2,\"G4\",800],[3,\"iPhone\",1400]],\"Sales\":[[1,1,1,\"2019-01-21\",2,2000],[1,2,2,\"2019-02-17\",1,800],[2,2,3,\"2019-06-02\",1,800],[3,3,4,\"2019-05-13\",2,2800]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Product (product_id int, product_name varchar(10), unit_price int)\",\n \"Create table If Not Exists Sales (seller_id int, product_id int, buyer_id int, sale_date date, quantity int, price int)\"\n ],\n \"mssql\": [\n \"Create table Product (product_id int, product_name varchar(10), unit_price int)\",\n \"Create table Sales (seller_id int, product_id int, buyer_id int, sale_date date, quantity int, price int)\"\n ],\n \"oraclesql\": [\n \"Create table Product (product_id int, product_name varchar(10), unit_price int)\",\n \"Create table Sales (seller_id int, product_id int, buyer_id int, sale_date date, quantity int, price 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 Product (product_id int, product_name varchar(10), unit_price int)",
"Create table If Not Exists Sales (seller_id int, product_id int, buyer_id int, sale_date date, quantity int, price int)",
"Truncate table Product",
"insert into Product (product_id, product_name, unit_price) values ('1', 'S8', '1000')",
"insert into Product (product_id, product_name, unit_price) values ('2', 'G4', '800')",
"insert into Product (product_id, product_name, unit_price) values ('3', 'iPhone', '1400')",
"Truncate table Sales",
"insert into Sales (seller_id, product_id, buyer_id, sale_date, quantity, price) values ('1', '1', '1', '2019-01-21', '2', '2000')",
"insert into Sales (seller_id, product_id, buyer_id, sale_date, quantity, price) values ('1', '2', '2', '2019-02-17', '1', '800')",
"insert into Sales (seller_id, product_id, buyer_id, sale_date, quantity, price) values ('2', '2', '3', '2019-06-02', '1', '800')",
"insert into Sales (seller_id, product_id, buyer_id, sale_date, quantity, price) values ('3', '3', '4', '2019-05-13', '2', '2800')"
],
"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\":{\"Product\":[\"product_id\",\"product_name\",\"unit_price\"],\"Sales\":[\"seller_id\",\"product_id\",\"buyer_id\",\"sale_date\",\"quantity\",\"price\"]},\"rows\":{\"Product\":[[1,\"S8\",1000],[2,\"G4\",800],[3,\"iPhone\",1400]],\"Sales\":[[1,1,1,\"2019-01-21\",2,2000],[1,2,2,\"2019-02-17\",1,800],[2,2,3,\"2019-06-02\",1,800],[3,3,4,\"2019-05-13\",2,2800]]}}",
"__typename": "QuestionNode"
}
}
}

Some files were not shown because too many files have changed in this diff Show More