Skip to content

Commit 0533309

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents dfacb20 + d85e2ba commit 0533309

File tree

987 files changed

+84922
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

987 files changed

+84922
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "1958",
5+
"questionFrontendId": "1809",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 687194,
8+
"title": "Ad-Free Sessions",
9+
"titleSlug": "ad-free-sessions",
10+
"content": null,
11+
"translatedTitle": "没有广告的剧集",
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Easy",
15+
"likes": 7,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [
22+
{
23+
"name": "Database",
24+
"slug": "database",
25+
"translatedName": "数据库",
26+
"__typename": "TopicTagNode"
27+
}
28+
],
29+
"companyTagStats": null,
30+
"codeSnippets": null,
31+
"stats": "{\"totalAccepted\": \"2.8K\", \"totalSubmission\": \"4.5K\", \"totalAcceptedRaw\": 2798, \"totalSubmissionRaw\": 4511, \"acRate\": \"62.0%\"}",
32+
"hints": [],
33+
"solution": null,
34+
"status": null,
35+
"sampleTestCase": "{\"headers\":{\"Playback\":[\"session_id\",\"customer_id\",\"start_time\",\"end_time\"],\"Ads\":[\"ad_id\",\"customer_id\",\"timestamp\"]},\"rows\":{\"Playback\":[[1,1,1,5],[2,1,15,23],[3,2,10,12],[4,2,17,28],[5,2,2,8]],\"Ads\":[[1,1,5],[2,2,17],[3,2,20]]}}",
36+
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Playback(session_id int,customer_id int,start_time int,end_time int)\",\n \"Create table If Not Exists Ads (ad_id int, customer_id int, timestamp int)\"\n ],\n \"mssql\": [\n \"Create table Playback(session_id int,customer_id int,start_time int,end_time int)\",\n \"Create table Ads (ad_id int, customer_id int, timestamp int)\"\n ],\n \"oraclesql\": [\n \"Create table Playback(session_id int,customer_id int,start_time int,end_time int)\",\n \"Create table Ads (ad_id int, customer_id int, timestamp int)\"\n ],\n \"database\": true\n}",
37+
"judgerAvailable": true,
38+
"judgeType": "large",
39+
"mysqlSchemas": [
40+
"Create table If Not Exists Playback(session_id int,customer_id int,start_time int,end_time int)",
41+
"Create table If Not Exists Ads (ad_id int, customer_id int, timestamp int)",
42+
"Truncate table Playback",
43+
"insert into Playback (session_id, customer_id, start_time, end_time) values ('1', '1', '1', '5')",
44+
"insert into Playback (session_id, customer_id, start_time, end_time) values ('2', '1', '15', '23')",
45+
"insert into Playback (session_id, customer_id, start_time, end_time) values ('3', '2', '10', '12')",
46+
"insert into Playback (session_id, customer_id, start_time, end_time) values ('4', '2', '17', '28')",
47+
"insert into Playback (session_id, customer_id, start_time, end_time) values ('5', '2', '2', '8')",
48+
"Truncate table Ads",
49+
"insert into Ads (ad_id, customer_id, timestamp) values ('1', '1', '5')",
50+
"insert into Ads (ad_id, customer_id, timestamp) values ('2', '2', '17')",
51+
"insert into Ads (ad_id, customer_id, timestamp) values ('3', '2', '20')"
52+
],
53+
"enableRunCode": true,
54+
"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>\"]}",
55+
"book": null,
56+
"isSubscribed": false,
57+
"isDailyQuestion": false,
58+
"dailyRecordStatus": null,
59+
"editorType": "CKEDITOR",
60+
"ugcQuestionId": null,
61+
"style": "LEETCODE",
62+
"exampleTestcases": "{\"headers\":{\"Playback\":[\"session_id\",\"customer_id\",\"start_time\",\"end_time\"],\"Ads\":[\"ad_id\",\"customer_id\",\"timestamp\"]},\"rows\":{\"Playback\":[[1,1,1,5],[2,1,15,23],[3,2,10,12],[4,2,17,28],[5,2,2,8]],\"Ads\":[[1,1,5],[2,2,17],[3,2,20]]}}",
63+
"__typename": "QuestionNode"
64+
}
65+
}
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "1774",
5+
"questionFrontendId": "1634",
6+
"categoryTitle": "Algorithms",
7+
"boundTopicId": 465561,
8+
"title": "Add Two Polynomials Represented as Linked Lists",
9+
"titleSlug": "add-two-polynomials-represented-as-linked-lists",
10+
"content": null,
11+
"translatedTitle": "求两个多项式链表的和",
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Medium",
15+
"likes": 4,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [
22+
{
23+
"name": "Linked List",
24+
"slug": "linked-list",
25+
"translatedName": "链表",
26+
"__typename": "TopicTagNode"
27+
},
28+
{
29+
"name": "Math",
30+
"slug": "math",
31+
"translatedName": "数学",
32+
"__typename": "TopicTagNode"
33+
},
34+
{
35+
"name": "Two Pointers",
36+
"slug": "two-pointers",
37+
"translatedName": "双指针",
38+
"__typename": "TopicTagNode"
39+
}
40+
],
41+
"companyTagStats": null,
42+
"codeSnippets": null,
43+
"stats": "{\"totalAccepted\": \"827\", \"totalSubmission\": \"1.5K\", \"totalAcceptedRaw\": 827, \"totalSubmissionRaw\": 1474, \"acRate\": \"56.1%\"}",
44+
"hints": [
45+
"Process both linked lists at the same time",
46+
"If the current power of the two heads is equal, add this power with the sum of the coefficients to the answer list.",
47+
"If one head has a larger power, add this power to the answer list and move only this head."
48+
],
49+
"solution": null,
50+
"status": null,
51+
"sampleTestCase": "[[1,1]]\n[[1,0]]",
52+
"metaData": "{\n \"name\": \"addPoly\",\n \"params\": [\n {\n \"type\": \"integer[][]\",\n \"name\": \"poly1\"\n },\n {\n \"type\": \"integer[][]\",\n \"name\": \"poly2\"\n }\n ],\n \"return\": {\n \"type\": \"integer\"\n },\n \"manual\": true,\n \"languages\": [\n \"cpp\",\n \"java\",\n \"javascript\",\n \"python3\",\n \"python\",\n \"csharp\"\n ]\n}",
53+
"judgerAvailable": true,
54+
"judgeType": "large",
55+
"mysqlSchemas": [],
56+
"enableRunCode": true,
57+
"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>\"]}",
58+
"book": null,
59+
"isSubscribed": false,
60+
"isDailyQuestion": false,
61+
"dailyRecordStatus": null,
62+
"editorType": "CKEDITOR",
63+
"ugcQuestionId": null,
64+
"style": "LEETCODE",
65+
"exampleTestcases": "[[1,1]]\n[[1,0]]\n[[2,2],[4,1],[3,0]]\n[[3,2],[-4,1],[-1,0]]\n[[1,2]]\n[[-1,2]]",
66+
"__typename": "QuestionNode"
67+
}
68+
}
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"data": {
3+
"question": {
4+
"questionId": "1763",
5+
"questionFrontendId": "1623",
6+
"categoryTitle": "Database",
7+
"boundTopicId": 451071,
8+
"title": "All Valid Triplets That Can Represent a Country",
9+
"titleSlug": "all-valid-triplets-that-can-represent-a-country",
10+
"content": null,
11+
"translatedTitle": "三人国家代表队",
12+
"translatedContent": null,
13+
"isPaidOnly": true,
14+
"difficulty": "Easy",
15+
"likes": 13,
16+
"dislikes": 0,
17+
"isLiked": null,
18+
"similarQuestions": "[]",
19+
"contributors": [],
20+
"langToValidPlayground": null,
21+
"topicTags": [
22+
{
23+
"name": "Database",
24+
"slug": "database",
25+
"translatedName": "数据库",
26+
"__typename": "TopicTagNode"
27+
}
28+
],
29+
"companyTagStats": null,
30+
"codeSnippets": null,
31+
"stats": "{\"totalAccepted\": \"4.4K\", \"totalSubmission\": \"5.6K\", \"totalAcceptedRaw\": 4361, \"totalSubmissionRaw\": 5566, \"acRate\": \"78.4%\"}",
32+
"hints": [],
33+
"solution": null,
34+
"status": null,
35+
"sampleTestCase": "{\"headers\":{\"SchoolA\":[\"student_id\",\"student_name\"],\"SchoolB\":[\"student_id\",\"student_name\"],\"SchoolC\":[\"student_id\",\"student_name\"]},\"rows\":{\"SchoolA\":[[1,\"Alice\"],[2,\"Bob\"]],\"SchoolB\":[[3,\"Tom\"]],\"SchoolC\":[[3,\"Tom\"],[2,\"Jerry\"],[10,\"Alice\"]]}}",
36+
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists SchoolA (student_id int, student_name varchar(20))\",\n \"Create table If Not Exists SchoolB (student_id int, student_name varchar(20))\",\n \"Create table If Not Exists SchoolC (student_id int, student_name varchar(20))\"\n ],\n \"mssql\": [\n \"Create table SchoolA (student_id int, student_name varchar(20))\",\n \"Create table SchoolB (student_id int, student_name varchar(20))\",\n \"Create table SchoolC (student_id int, student_name varchar(20))\"\n ],\n \"oraclesql\": [\n \"Create table SchoolA (student_id int, student_name varchar(20))\",\n \"Create table SchoolB (student_id int, student_name varchar(20))\",\n \"Create table SchoolC (student_id int, student_name varchar(20))\"\n ],\n \"database\": true\n}",
37+
"judgerAvailable": true,
38+
"judgeType": "large",
39+
"mysqlSchemas": [
40+
"Create table If Not Exists SchoolA (student_id int, student_name varchar(20))",
41+
"Create table If Not Exists SchoolB (student_id int, student_name varchar(20))",
42+
"Create table If Not Exists SchoolC (student_id int, student_name varchar(20))",
43+
"Truncate table SchoolA",
44+
"insert into SchoolA (student_id, student_name) values ('1', 'Alice')",
45+
"insert into SchoolA (student_id, student_name) values ('2', 'Bob')",
46+
"Truncate table SchoolB",
47+
"insert into SchoolB (student_id, student_name) values ('3', 'Tom')",
48+
"Truncate table SchoolC",
49+
"insert into SchoolC (student_id, student_name) values ('3', 'Tom')",
50+
"insert into SchoolC (student_id, student_name) values ('2', 'Jerry')",
51+
"insert into SchoolC (student_id, student_name) values ('10', 'Alice')"
52+
],
53+
"enableRunCode": true,
54+
"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>\"]}",
55+
"book": null,
56+
"isSubscribed": false,
57+
"isDailyQuestion": false,
58+
"dailyRecordStatus": null,
59+
"editorType": "CKEDITOR",
60+
"ugcQuestionId": null,
61+
"style": "LEETCODE",
62+
"exampleTestcases": "{\"headers\":{\"SchoolA\":[\"student_id\",\"student_name\"],\"SchoolB\":[\"student_id\",\"student_name\"],\"SchoolC\":[\"student_id\",\"student_name\"]},\"rows\":{\"SchoolA\":[[1,\"Alice\"],[2,\"Bob\"]],\"SchoolB\":[[3,\"Tom\"]],\"SchoolC\":[[3,\"Tom\"],[2,\"Jerry\"],[10,\"Alice\"]]}}",
63+
"__typename": "QuestionNode"
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)