mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-04-18 08:39:41 +08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
053330914a
算法题(国内版)/originData
[no content]ad-free-sessions.json[no content]add-two-polynomials-represented-as-linked-lists.json[no content]all-valid-triplets-that-can-represent-a-country.json[no content]average-time-of-process-per-machine.json[no content]bank-account-summary.json[no content]biggest-window-between-visits.json[no content]binary-search-tree-iterator-ii.json[no content]build-binary-expression-tree-from-infix-expression.json[no content]buildings-with-an-ocean-view.json[no content]change-the-root-of-a-binary-tree.json[no content]check-if-string-is-decomposable-into-value-equal-substrings.json[no content]check-if-two-expression-trees-are-equivalent.json[no content]checking-existence-of-edge-length-limited-paths-ii.json[no content]convert-date-format.json[no content]correct-a-binary-tree.json[no content]count-apples-and-oranges.json[no content]count-pairs-in-two-arrays.json[no content]count-pairs-of-equal-substrings-with-minimum-difference.json[no content]count-salary-categories.json[no content]count-ways-to-distribute-candies.json[no content]cutting-ribbons.json[no content]depth-of-bst-given-insertion-order.json[no content]design-an-expression-tree-with-evaluate-function.json[no content]design-most-recently-used-queue.json[no content]diameter-of-n-ary-tree.json[no content]distinct-numbers-in-each-subarray.json[no content]dot-product-of-two-sparse-vectors.json[no content]faulty-sensor.json[no content]find-customers-with-positive-revenue-this-year.json[no content]find-distance-in-a-binary-tree.json[no content]find-interview-candidates.json[no content]find-nearest-right-node-in-binary-tree.json[no content]find-the-index-of-the-large-integer.json[no content]find-the-missing-ids.json[no content]find-the-subtasks-that-did-not-execute.json[no content]find-users-with-valid-e-mails.json[no content]fix-product-name-format.json[no content]game-of-nim.json[no content]grand-slam-titles.json[no content]group-employees-of-the-same-salary.json[no content]guess-the-majority-in-a-hidden-array.json[no content]hopper-company-queries-i.json[no content]hopper-company-queries-ii.json[no content]hopper-company-queries-iii.json[no content]implement-trie-ii-prefix-tree.json[no content]invalid-tweets.json[no content]kth-smallest-subarray-sum.json[no content]largest-subarray-length-k.json[no content]league-statistics.json[no content]leetcodify-friends-recommendations.json[no content]leetcodify-similar-friends.json[no content]leetflex-banned-accounts.json[no content]longest-common-subsequence-between-sorted-arrays.json[no content]longest-palindromic-subsequence-ii.json[no content]longest-word-with-all-prefixes.json[no content]lowest-common-ancestor-of-a-binary-tree-ii.json[no content]lowest-common-ancestor-of-a-binary-tree-iii.json[no content]lowest-common-ancestor-of-a-binary-tree-iv.json[no content]maximize-the-beauty-of-the-garden.json[no content]maximum-number-of-accepted-invitations.json[no content]maximum-number-of-people-that-can-be-caught-in-tag.json[no content]maximum-of-minimum-values-in-all-subarrays.json[no content]maximum-subarray-sum-after-one-operation.json[no content]maximum-transaction-each-day.json[no content]minimize-product-sum-of-two-arrays.json[no content]minimum-path-cost-in-a-hidden-grid.json[no content]next-palindrome-using-same-digits.json[no content]number-of-calls-between-two-persons.json[no content]number-of-distinct-substrings-in-a-string.json[no content]orders-with-maximum-quantity-above-average.json[no content]page-recommendations-ii.json[no content]percentage-of-users-attended-a-contest.json[no content]primary-department-for-each-employee.json[no content]product-of-two-run-length-encoded-arrays.json[no content]products-price-for-each-store.json[no content]products-worth-over-invoices.json[no content]put-boxes-into-the-warehouse-i.json[no content]put-boxes-into-the-warehouse-ii.json[no content]remove-duplicates-from-an-unsorted-linked-list.json[no content]sellers-with-no-sales.json[no content]shortest-path-in-a-hidden-grid.json[no content]sort-features-by-popularity.json[no content]sort-linked-list-already-sorted-using-absolute-values.json[no content]strings-differ-by-one-character.json[no content]sum-of-special-evenly-spaced-elements-in-array.json[no content]suspicious-bank-accounts.json[no content]the-most-frequently-ordered-products-for-each-customer.json[no content]the-most-recent-orders-for-each-product.json[no content]the-most-recent-three-orders.json[no content]the-most-similar-path-in-a-graph.json[no content]the-number-of-employees-which-report-to-each-employee.json[no content]unique-orders-and-customers-per-month.json[no content]warehouse-manager.jsonadd-minimum-number-of-rungs.jsonalert-using-same-key-card-three-or-more-times-in-a-one-hour-period.jsonarithmetic-subarrays.jsonaverage-waiting-time.jsonbank-account-summary-ii.jsonbest-team-with-no-conflicts.jsonbuild-array-from-permutation.json
66
算法题(国内版)/originData/[no content]ad-free-sessions.json
Normal file
66
算法题(国内版)/originData/[no content]ad-free-sessions.json
Normal file
@ -0,0 +1,66 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1958",
|
||||
"questionFrontendId": "1809",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 687194,
|
||||
"title": "Ad-Free Sessions",
|
||||
"titleSlug": "ad-free-sessions",
|
||||
"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\": \"2.8K\", \"totalSubmission\": \"4.5K\", \"totalAcceptedRaw\": 2798, \"totalSubmissionRaw\": 4511, \"acRate\": \"62.0%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"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]]}}",
|
||||
"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}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Playback(session_id int,customer_id int,start_time int,end_time int)",
|
||||
"Create table If Not Exists Ads (ad_id int, customer_id int, timestamp int)",
|
||||
"Truncate table Playback",
|
||||
"insert into Playback (session_id, customer_id, start_time, end_time) values ('1', '1', '1', '5')",
|
||||
"insert into Playback (session_id, customer_id, start_time, end_time) values ('2', '1', '15', '23')",
|
||||
"insert into Playback (session_id, customer_id, start_time, end_time) values ('3', '2', '10', '12')",
|
||||
"insert into Playback (session_id, customer_id, start_time, end_time) values ('4', '2', '17', '28')",
|
||||
"insert into Playback (session_id, customer_id, start_time, end_time) values ('5', '2', '2', '8')",
|
||||
"Truncate table Ads",
|
||||
"insert into Ads (ad_id, customer_id, timestamp) values ('1', '1', '5')",
|
||||
"insert into Ads (ad_id, customer_id, timestamp) values ('2', '2', '17')",
|
||||
"insert into Ads (ad_id, customer_id, timestamp) values ('3', '2', '20')"
|
||||
],
|
||||
"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\":{\"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]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1774",
|
||||
"questionFrontendId": "1634",
|
||||
"categoryTitle": "Algorithms",
|
||||
"boundTopicId": 465561,
|
||||
"title": "Add Two Polynomials Represented as Linked Lists",
|
||||
"titleSlug": "add-two-polynomials-represented-as-linked-lists",
|
||||
"content": null,
|
||||
"translatedTitle": "求两个多项式链表的和",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 4,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Linked List",
|
||||
"slug": "linked-list",
|
||||
"translatedName": "链表",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Math",
|
||||
"slug": "math",
|
||||
"translatedName": "数学",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Two Pointers",
|
||||
"slug": "two-pointers",
|
||||
"translatedName": "双指针",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"827\", \"totalSubmission\": \"1.5K\", \"totalAcceptedRaw\": 827, \"totalSubmissionRaw\": 1474, \"acRate\": \"56.1%\"}",
|
||||
"hints": [
|
||||
"Process both linked lists at the same time",
|
||||
"If the current power of the two heads is equal, add this power with the sum of the coefficients to the answer list.",
|
||||
"If one head has a larger power, add this power to the answer list and move only this head."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "[[1,1]]\n[[1,0]]",
|
||||
"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}",
|
||||
"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": "[[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]]",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1763",
|
||||
"questionFrontendId": "1623",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 451071,
|
||||
"title": "All Valid Triplets That Can Represent a Country",
|
||||
"titleSlug": "all-valid-triplets-that-can-represent-a-country",
|
||||
"content": null,
|
||||
"translatedTitle": "三人国家代表队",
|
||||
"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\": \"4.4K\", \"totalSubmission\": \"5.6K\", \"totalAcceptedRaw\": 4361, \"totalSubmissionRaw\": 5566, \"acRate\": \"78.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"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\"]]}}",
|
||||
"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}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists SchoolA (student_id int, student_name varchar(20))",
|
||||
"Create table If Not Exists SchoolB (student_id int, student_name varchar(20))",
|
||||
"Create table If Not Exists SchoolC (student_id int, student_name varchar(20))",
|
||||
"Truncate table SchoolA",
|
||||
"insert into SchoolA (student_id, student_name) values ('1', 'Alice')",
|
||||
"insert into SchoolA (student_id, student_name) values ('2', 'Bob')",
|
||||
"Truncate table SchoolB",
|
||||
"insert into SchoolB (student_id, student_name) values ('3', 'Tom')",
|
||||
"Truncate table SchoolC",
|
||||
"insert into SchoolC (student_id, student_name) values ('3', 'Tom')",
|
||||
"insert into SchoolC (student_id, student_name) values ('2', 'Jerry')",
|
||||
"insert into SchoolC (student_id, student_name) values ('10', 'Alice')"
|
||||
],
|
||||
"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\":{\"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\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1801",
|
||||
"questionFrontendId": "1661",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 491034,
|
||||
"title": "Average Time of Process per Machine",
|
||||
"titleSlug": "average-time-of-process-per-machine",
|
||||
"content": null,
|
||||
"translatedTitle": "每台机器的进程平均运行时间",
|
||||
"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\": \"3.9K\", \"totalSubmission\": \"5.2K\", \"totalAcceptedRaw\": 3919, \"totalSubmissionRaw\": 5249, \"acRate\": \"74.7%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Activity\":[\"machine_id\",\"process_id\",\"activity_type\",\"timestamp\"]},\"rows\":{\"Activity\":[[0,0,\"start\",0.712],[0,0,\"end\",1.52],[0,1,\"start\",3.14],[0,1,\"end\",4.12],[1,0,\"start\",0.55],[1,0,\"end\",1.55],[1,1,\"start\",0.43],[1,1,\"end\",1.42],[2,0,\"start\",4.1],[2,0,\"end\",4.512],[2,1,\"start\",2.5],[2,1,\"end\",5]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Activity (machine_id int, process_id int, activity_type ENUM('start', 'end'), timestamp float)\"\n ],\n \"mssql\": [\n \"create table Activity (machine_id int, process_id int, activity_type varchar(15) not null check(activity_type in ('start', 'end')), timestamp float)\"\n ],\n \"oraclesql\": [\n \"create table Activity (machine_id int, process_id int, activity_type varchar(15) not null check(activity_type in ('start', 'end')), timestamp float)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Activity (machine_id int, process_id int, activity_type ENUM('start', 'end'), timestamp float)",
|
||||
"Truncate table Activity",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('0', '0', 'start', '0.712')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('0', '0', 'end', '1.52')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('0', '1', 'start', '3.14')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('0', '1', 'end', '4.12')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('1', '0', 'start', '0.55')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('1', '0', 'end', '1.55')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('1', '1', 'start', '0.43')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('1', '1', 'end', '1.42')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('2', '0', 'start', '4.1')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('2', '0', 'end', '4.512')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('2', '1', 'start', '2.5')",
|
||||
"insert into Activity (machine_id, process_id, activity_type, timestamp) values ('2', '1', 'end', '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\":[\"machine_id\",\"process_id\",\"activity_type\",\"timestamp\"]},\"rows\":{\"Activity\":[[0,0,\"start\",0.712],[0,0,\"end\",1.52],[0,1,\"start\",3.14],[0,1,\"end\",4.12],[1,0,\"start\",0.55],[1,0,\"end\",1.55],[1,1,\"start\",0.43],[1,1,\"end\",1.42],[2,0,\"start\",4.1],[2,0,\"end\",4.512],[2,1,\"start\",2.5],[2,1,\"end\",5]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
65
算法题(国内版)/originData/[no content]bank-account-summary.json
Normal file
65
算法题(国内版)/originData/[no content]bank-account-summary.json
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1702",
|
||||
"questionFrontendId": "1555",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 383362,
|
||||
"title": "Bank Account Summary",
|
||||
"titleSlug": "bank-account-summary",
|
||||
"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\": \"3.7K\", \"totalSubmission\": \"8.4K\", \"totalAcceptedRaw\": 3732, \"totalSubmissionRaw\": 8414, \"acRate\": \"44.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Users\": [\"user_id\", \"user_name\", \"credit\"], \"Transactions\": [\"trans_id\", \"paid_by\", \"paid_to\", \"amount\", \"transacted_on\"]}, \"rows\": {\"Users\": [[1, \"Moustafa\", 100], [2, \"Jonathan\", 200], [3, \"Winston\", 10000], [4, \"Luis\", 800]], \"Transactions\": [[1, 1, 3, 400, \"2020-08-01\"], [2, 3, 2, 500, \"2020-08-02\"], [3, 2, 1, 200, \"2020-08-03\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Users (user_id int, user_name varchar(20), credit int)\\n\",\n \"Create table If Not Exists Transactions (trans_id int, paid_by int, paid_to int, amount int, transacted_on date)\"\n ],\n \"mssql\": [\n \"Create table Users (user_id int, user_name varchar(20), credit int)\\n\",\n \"Create table Transactions (trans_id int, paid_by int, paid_to int, amount int, transacted_on date)\\n\"\n ],\n \"oraclesql\": [\n \"Create table Users (user_id int, user_name varchar(20), credit int)\\n\",\n \"Create table Transactions (trans_id int, paid_by int, paid_to int, amount int, transacted_on date)\\n\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\\n\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Users (user_id int, user_name varchar(20), credit int)\n",
|
||||
"Create table If Not Exists Transactions (trans_id int, paid_by int, paid_to int, amount int, transacted_on date)",
|
||||
"Truncate table Users",
|
||||
"insert into Users (user_id, user_name, credit) values ('1', 'Moustafa', '100')",
|
||||
"insert into Users (user_id, user_name, credit) values ('2', 'Jonathan', '200')",
|
||||
"insert into Users (user_id, user_name, credit) values ('3', 'Winston', '10000')",
|
||||
"insert into Users (user_id, user_name, credit) values ('4', 'Luis', '800')",
|
||||
"Truncate table Transactions",
|
||||
"insert into Transactions (trans_id, paid_by, paid_to, amount, transacted_on) values ('1', '1', '3', '400', '2020-08-01')",
|
||||
"insert into Transactions (trans_id, paid_by, paid_to, amount, transacted_on) values ('2', '3', '2', '500', '2020-08-02')",
|
||||
"insert into Transactions (trans_id, paid_by, paid_to, amount, transacted_on) values ('3', '2', '1', '200', '2020-08-03')"
|
||||
],
|
||||
"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\", \"user_name\", \"credit\"], \"Transactions\": [\"trans_id\", \"paid_by\", \"paid_to\", \"amount\", \"transacted_on\"]}, \"rows\": {\"Users\": [[1, \"Moustafa\", 100], [2, \"Jonathan\", 200], [3, \"Winston\", 10000], [4, \"Luis\", 800]], \"Transactions\": [[1, 1, 3, 400, \"2020-08-01\"], [2, 3, 2, 500, \"2020-08-02\"], [3, 2, 1, 200, \"2020-08-03\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1852",
|
||||
"questionFrontendId": "1709",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 544992,
|
||||
"title": "Biggest Window Between Visits",
|
||||
"titleSlug": "biggest-window-between-visits",
|
||||
"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\": \"2.3K\", \"totalSubmission\": \"3.1K\", \"totalAcceptedRaw\": 2251, \"totalSubmissionRaw\": 3120, \"acRate\": \"72.1%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"UserVisits\":[\"user_id\",\"visit_date\"]},\"rows\":{\"UserVisits\":[[\"1\",\"2020-11-28\"],[\"1\",\"2020-10-20\"],[\"1\",\"2020-12-3\"],[\"2\",\"2020-10-5\"],[\"2\",\"2020-12-9\"],[\"3\",\"2020-11-11\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists UserVisits(user_id int, visit_date date)\"\n ],\n \"mssql\": [\n \"Create table UserVisits(user_id int, visit_date date)\"\n ],\n \"oraclesql\": [\n \"Create table UserVisits(user_id int, visit_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 UserVisits(user_id int, visit_date date)",
|
||||
"Truncate table UserVisits",
|
||||
"insert into UserVisits (user_id, visit_date) values ('1', '2020-11-28')",
|
||||
"insert into UserVisits (user_id, visit_date) values ('1', '2020-10-20')",
|
||||
"insert into UserVisits (user_id, visit_date) values ('1', '2020-12-3')",
|
||||
"insert into UserVisits (user_id, visit_date) values ('2', '2020-10-5')",
|
||||
"insert into UserVisits (user_id, visit_date) values ('2', '2020-12-9')",
|
||||
"insert into UserVisits (user_id, visit_date) values ('3', '2020-11-11')"
|
||||
],
|
||||
"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\":{\"UserVisits\":[\"user_id\",\"visit_date\"]},\"rows\":{\"UserVisits\":[[\"1\",\"2020-11-28\"],[\"1\",\"2020-10-20\"],[\"1\",\"2020-12-3\"],[\"2\",\"2020-10-5\"],[\"2\",\"2020-12-9\"],[\"3\",\"2020-11-11\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
74
算法题(国内版)/originData/[no content]build-binary-expression-tree-from-infix-expression.json
Normal file
74
算法题(国内版)/originData/[no content]build-binary-expression-tree-from-infix-expression.json
Normal file
@ -0,0 +1,74 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1736",
|
||||
"questionFrontendId": "1597",
|
||||
"categoryTitle": "Algorithms",
|
||||
"boundTopicId": 426138,
|
||||
"title": "Build Binary Expression Tree From Infix Expression",
|
||||
"titleSlug": "build-binary-expression-tree-from-infix-expression",
|
||||
"content": null,
|
||||
"translatedTitle": "根据中缀表达式构造二叉表达式树",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 14,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Stack",
|
||||
"slug": "stack",
|
||||
"translatedName": "栈",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Tree",
|
||||
"slug": "tree",
|
||||
"translatedName": "树",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "String",
|
||||
"slug": "string",
|
||||
"translatedName": "字符串",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Binary Tree",
|
||||
"slug": "binary-tree",
|
||||
"translatedName": "二叉树",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"387\", \"totalSubmission\": \"569\", \"totalAcceptedRaw\": 387, \"totalSubmissionRaw\": 569, \"acRate\": \"68.0%\"}",
|
||||
"hints": [
|
||||
"Convert infix expression to postfix expression.",
|
||||
"Build an expression tree from the postfix expression."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "\"3*4-2*5\"",
|
||||
"metaData": "{\n \"name\": \"expTree\",\n \"params\": [\n {\n \"name\": \"s\",\n \"type\": \"string\"\n }\n ],\n \"return\": {\n \"type\": \"TreeNode\"\n },\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"python3\",\n \"csharp\",\n \"javascript\"\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": "\"3*4-2*5\"\n\"2-3/(5*2)+1\"\n\"1+2+3+4+5\"",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,68 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1810",
|
||||
"questionFrontendId": "1666",
|
||||
"categoryTitle": "Algorithms",
|
||||
"boundTopicId": 498717,
|
||||
"title": "Change the Root of a Binary Tree",
|
||||
"titleSlug": "change-the-root-of-a-binary-tree",
|
||||
"content": null,
|
||||
"translatedTitle": "改变二叉树的根节点",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 7,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Tree",
|
||||
"slug": "tree",
|
||||
"translatedName": "树",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Depth-First Search",
|
||||
"slug": "depth-first-search",
|
||||
"translatedName": "深度优先搜索",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Binary Tree",
|
||||
"slug": "binary-tree",
|
||||
"translatedName": "二叉树",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"342\", \"totalSubmission\": \"524\", \"totalAcceptedRaw\": 342, \"totalSubmissionRaw\": 524, \"acRate\": \"65.3%\"}",
|
||||
"hints": [
|
||||
"Start traversing from the leaf. Always go up till you reach the root.",
|
||||
"Change pointers as asked, make the current node's parent its left child, and make the left child the right one if needed."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "[3,5,1,6,2,0,8,null,null,7,4]\n7",
|
||||
"metaData": "{\n \"name\": \"foobar\",\n \"params\": [\n {\n \"name\": \"root\",\n \"type\": \"TreeNode\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"leaf\"\n }\n ],\n \"return\": {\n \"type\": \"integer\"\n },\n \"manual\": true,\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"csharp\",\n \"javascript\",\n \"python3\"\n ]\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": "[3,5,1,6,2,0,8,null,null,7,4]\n7\n[3,5,1,6,2,0,8,null,null,7,4]\n0",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
57
算法题(国内版)/originData/[no content]check-if-string-is-decomposable-into-value-equal-substrings.json
Normal file
57
算法题(国内版)/originData/[no content]check-if-string-is-decomposable-into-value-equal-substrings.json
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,68 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1750",
|
||||
"questionFrontendId": "1612",
|
||||
"categoryTitle": "Algorithms",
|
||||
"boundTopicId": 439130,
|
||||
"title": "Check If Two Expression Trees are Equivalent",
|
||||
"titleSlug": "check-if-two-expression-trees-are-equivalent",
|
||||
"content": null,
|
||||
"translatedTitle": "检查两棵二叉表达式树是否等价",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 8,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Tree",
|
||||
"slug": "tree",
|
||||
"translatedName": "树",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Depth-First Search",
|
||||
"slug": "depth-first-search",
|
||||
"translatedName": "深度优先搜索",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Binary Tree",
|
||||
"slug": "binary-tree",
|
||||
"translatedName": "二叉树",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"580\", \"totalSubmission\": \"793\", \"totalAcceptedRaw\": 580, \"totalSubmissionRaw\": 793, \"acRate\": \"73.1%\"}",
|
||||
"hints": [
|
||||
"Count for each variable how many times it appeared in the first tree.",
|
||||
"Do the same for the second tree and check if the count is the same for both tree."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "[x]\n[x]",
|
||||
"metaData": "{\n \"name\": \"checkEquivalence\",\n \"params\": [\n {\n \"name\": \"root1\",\n \"type\": \"TreeNode\"\n },\n {\n \"type\": \"TreeNode\",\n \"name\": \"root2\"\n }\n ],\n \"return\": {\n \"type\": \"boolean\"\n },\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"csharp\",\n \"python3\",\n \"javascript\"\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": "[x]\n[x]\n[+,a,+,null,null,b,c]\n[+,+,a,b,c]\n[+,a,+,null,null,b,c]\n[+,+,a,b,d]",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
69
算法题(国内版)/originData/[no content]checking-existence-of-edge-length-limited-paths-ii.json
Normal file
69
算法题(国内版)/originData/[no content]checking-existence-of-edge-length-limited-paths-ii.json
Normal file
File diff suppressed because one or more lines are too long
59
算法题(国内版)/originData/[no content]convert-date-format.json
Normal file
59
算法题(国内版)/originData/[no content]convert-date-format.json
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "2004",
|
||||
"questionFrontendId": "1853",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 763907,
|
||||
"title": "Convert Date Format",
|
||||
"titleSlug": "convert-date-format",
|
||||
"content": null,
|
||||
"translatedTitle": "转换日期格式",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 4,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.9K\", \"totalSubmission\": \"3K\", \"totalAcceptedRaw\": 1907, \"totalSubmissionRaw\": 3041, \"acRate\": \"62.7%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Days\":[\"day\"]},\"rows\":{\"Days\":[[\"2022-04-12\"],[\"2021-08-09\"],[\"2020-06-26\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Days (day date)\"\n ],\n \"mssql\": [\n \"Create table Days (day date)\"\n ],\n \"oraclesql\": [\n \"Create table Days (day 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 Days (day date)",
|
||||
"Truncate table Days",
|
||||
"insert into Days (day) values ('2022-04-12')",
|
||||
"insert into Days (day) values ('2021-08-09')",
|
||||
"insert into Days (day) values ('2020-06-26')"
|
||||
],
|
||||
"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\":{\"Days\":[\"day\"]},\"rows\":{\"Days\":[[\"2022-04-12\"],[\"2021-08-09\"],[\"2020-06-26\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
79
算法题(国内版)/originData/[no content]correct-a-binary-tree.json
Normal file
79
算法题(国内版)/originData/[no content]correct-a-binary-tree.json
Normal file
@ -0,0 +1,79 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1796",
|
||||
"questionFrontendId": "1660",
|
||||
"categoryTitle": "Algorithms",
|
||||
"boundTopicId": 489697,
|
||||
"title": "Correct a Binary Tree",
|
||||
"titleSlug": "correct-a-binary-tree",
|
||||
"content": null,
|
||||
"translatedTitle": "纠正二叉树",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 8,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Tree",
|
||||
"slug": "tree",
|
||||
"translatedName": "树",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Depth-First Search",
|
||||
"slug": "depth-first-search",
|
||||
"translatedName": "深度优先搜索",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Breadth-First Search",
|
||||
"slug": "breadth-first-search",
|
||||
"translatedName": "广度优先搜索",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Hash Table",
|
||||
"slug": "hash-table",
|
||||
"translatedName": "哈希表",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Binary Tree",
|
||||
"slug": "binary-tree",
|
||||
"translatedName": "二叉树",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"600\", \"totalSubmission\": \"815\", \"totalAcceptedRaw\": 600, \"totalSubmissionRaw\": 815, \"acRate\": \"73.6%\"}",
|
||||
"hints": [
|
||||
"If you traverse the tree from right to left, the invalid node will point to a node that has already been visited."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "[1,2,3]\n2\n3",
|
||||
"metaData": "{\n \"name\": \"correctBinaryTree\",\n \"params\": [\n {\n \"name\": \"root\",\n \"type\": \"TreeNode\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"fromNode\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"toNode\"\n }\n ],\n \"return\": {\n \"type\": \"TreeNode\"\n },\n \"manual\": true,\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"csharp\",\n \"javascript\",\n \"python3\"\n ]\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": "[1,2,3]\n2\n3\n[8,3,1,7,null,9,4,2,null,null,null,5,6]\n7\n4",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1862",
|
||||
"questionFrontendId": "1715",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 558351,
|
||||
"title": "Count Apples and Oranges",
|
||||
"titleSlug": "count-apples-and-oranges",
|
||||
"content": null,
|
||||
"translatedTitle": "苹果和橘子的个数",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 6,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"2.4K\", \"totalSubmission\": \"3.4K\", \"totalAcceptedRaw\": 2441, \"totalSubmissionRaw\": 3381, \"acRate\": \"72.2%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Boxes\":[\"box_id\",\"chest_id\",\"apple_count\",\"orange_count\"],\"Chests\":[\"chest_id\",\"apple_count\",\"orange_count\"]},\"rows\":{\"Boxes\":[[2,null,6,15],[18,14,4,15],[19,3,8,4],[12,2,19,20],[20,6,12,9],[8,6,9,9],[3,14,16,7]],\"Chests\":[[6,5,6],[14,20,10],[2,8,8],[3,19,4],[16,19,19]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Boxes (box_id int, chest_id int, apple_count int, orange_count int)\",\n \"Create table If Not Exists Chests (chest_id int, apple_count int, orange_count int)\"\n ],\n \"mssql\": [\n \"Create table Boxes (box_id int, chest_id int, apple_count int, orange_count int)\",\n \"Create table Chests (chest_id int, apple_count int, orange_count int)\"\n ],\n \"oraclesql\": [\n \"Create table Boxes (box_id int, chest_id int, apple_count int, orange_count int)\",\n \"Create table Chests (chest_id int, apple_count int, orange_count int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Boxes (box_id int, chest_id int, apple_count int, orange_count int)",
|
||||
"Create table If Not Exists Chests (chest_id int, apple_count int, orange_count int)",
|
||||
"Truncate table Boxes",
|
||||
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('2', 'None', '6', '15')",
|
||||
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('18', '14', '4', '15')",
|
||||
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('19', '3', '8', '4')",
|
||||
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('12', '2', '19', '20')",
|
||||
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('20', '6', '12', '9')",
|
||||
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('8', '6', '9', '9')",
|
||||
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('3', '14', '16', '7')",
|
||||
"Truncate table Chests",
|
||||
"insert into Chests (chest_id, apple_count, orange_count) values ('6', '5', '6')",
|
||||
"insert into Chests (chest_id, apple_count, orange_count) values ('14', '20', '10')",
|
||||
"insert into Chests (chest_id, apple_count, orange_count) values ('2', '8', '8')",
|
||||
"insert into Chests (chest_id, apple_count, orange_count) values ('3', '19', '4')",
|
||||
"insert into Chests (chest_id, apple_count, orange_count) values ('16', '19', '19')"
|
||||
],
|
||||
"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\":{\"Boxes\":[\"box_id\",\"chest_id\",\"apple_count\",\"orange_count\"],\"Chests\":[\"chest_id\",\"apple_count\",\"orange_count\"]},\"rows\":{\"Boxes\":[[2,null,6,15],[18,14,4,15],[19,3,8,4],[12,2,19,20],[20,6,12,9],[8,6,9,9],[3,14,16,7]],\"Chests\":[[6,5,6],[14,20,10],[2,8,8],[3,19,4],[16,19,19]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
68
算法题(国内版)/originData/[no content]count-pairs-of-equal-substrings-with-minimum-difference.json
Normal file
68
算法题(国内版)/originData/[no content]count-pairs-of-equal-substrings-with-minimum-difference.json
Normal file
File diff suppressed because one or more lines are too long
60
算法题(国内版)/originData/[no content]count-salary-categories.json
Normal file
60
算法题(国内版)/originData/[no content]count-salary-categories.json
Normal file
@ -0,0 +1,60 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "2057",
|
||||
"questionFrontendId": "1907",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 841394,
|
||||
"title": "Count Salary Categories",
|
||||
"titleSlug": "count-salary-categories",
|
||||
"content": null,
|
||||
"translatedTitle": "按分类统计薪水",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 8,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.2K\", \"totalSubmission\": \"2K\", \"totalAcceptedRaw\": 1228, \"totalSubmissionRaw\": 1989, \"acRate\": \"61.7%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Accounts\":[\"account_id\",\"income\"]},\"rows\":{\"Accounts\":[[3,108939],[2,12747],[8,87709],[6,91796]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Accounts (account_id int, income int)\"\n ],\n \"mssql\": [\n \"Create table Accounts (account_id int, income int)\"\n ],\n \"oraclesql\": [\n \"Create table Accounts (account_id int, income int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Accounts (account_id int, income int)",
|
||||
"Truncate table Accounts",
|
||||
"insert into Accounts (account_id, income) values ('3', '108939')",
|
||||
"insert into Accounts (account_id, income) values ('2', '12747')",
|
||||
"insert into Accounts (account_id, income) values ('8', '87709')",
|
||||
"insert into Accounts (account_id, income) values ('6', '91796')"
|
||||
],
|
||||
"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\":[\"account_id\",\"income\"]},\"rows\":{\"Accounts\":[[3,108939],[2,12747],[8,87709],[6,91796]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
62
算法题(国内版)/originData/[no content]cutting-ribbons.json
Normal file
62
算法题(国内版)/originData/[no content]cutting-ribbons.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
82
算法题(国内版)/originData/[no content]design-an-expression-tree-with-evaluate-function.json
Normal file
82
算法题(国内版)/originData/[no content]design-an-expression-tree-with-evaluate-function.json
Normal file
@ -0,0 +1,82 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1768",
|
||||
"questionFrontendId": "1628",
|
||||
"categoryTitle": "Algorithms",
|
||||
"boundTopicId": 456506,
|
||||
"title": "Design an Expression Tree With Evaluate Function",
|
||||
"titleSlug": "design-an-expression-tree-with-evaluate-function",
|
||||
"content": null,
|
||||
"translatedTitle": "设计带解析函数的表达式树",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 14,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Stack",
|
||||
"slug": "stack",
|
||||
"translatedName": "栈",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Tree",
|
||||
"slug": "tree",
|
||||
"translatedName": "树",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Design",
|
||||
"slug": "design",
|
||||
"translatedName": "设计",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Math",
|
||||
"slug": "math",
|
||||
"translatedName": "数学",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Binary Tree",
|
||||
"slug": "binary-tree",
|
||||
"translatedName": "二叉树",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"556\", \"totalSubmission\": \"678\", \"totalAcceptedRaw\": 556, \"totalSubmissionRaw\": 678, \"acRate\": \"82.0%\"}",
|
||||
"hints": [
|
||||
"Apply the concept of Polymorphism to get a good design",
|
||||
"Implement the Node class using NumericNode and OperatorNode classes.",
|
||||
"NumericNode only maintains the value and evaluate returns this value.",
|
||||
"OperatorNode Maintains the left and right nodes representing the left and right operands, and the evaluate function applies the operator to them."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "[\"3\",\"4\",\"+\",\"2\",\"*\",\"7\",\"/\"]",
|
||||
"metaData": "{\n \"name\": \"buildTree\",\n \"params\": [\n {\n \"name\": \"s\",\n \"type\": \"string[]\"\n }\n ],\n \"return\": {\n \"type\": \"integer\"\n },\n \"manual\": true,\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"csharp\",\n \"javascript\",\n \"python3\"\n ]\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": "[\"3\",\"4\",\"+\",\"2\",\"*\",\"7\",\"/\"]\n[\"4\",\"5\",\"2\",\"7\",\"+\",\"-\",\"*\"]",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
62
算法题(国内版)/originData/[no content]diameter-of-n-ary-tree.json
Normal file
62
算法题(国内版)/originData/[no content]diameter-of-n-ary-tree.json
Normal file
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
63
算法题(国内版)/originData/[no content]faulty-sensor.json
Normal file
63
算法题(国内版)/originData/[no content]faulty-sensor.json
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,63 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1974",
|
||||
"questionFrontendId": "1821",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 715089,
|
||||
"title": "Find Customers With Positive Revenue this Year",
|
||||
"titleSlug": "find-customers-with-positive-revenue-this-year",
|
||||
"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\": \"3.6K\", \"totalSubmission\": \"4K\", \"totalAcceptedRaw\": 3637, \"totalSubmissionRaw\": 4023, \"acRate\": \"90.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"year\",\"revenue\"]},\"rows\":{\"Customers\":[[\"1\",\"2018\",\"50\"],[\"1\",\"2021\",\"30\"],[\"1\",\"2020\",\"70\"],[\"2\",\"2021\",\"-50\"],[\"3\",\"2018\",\"10\"],[\"3\",\"2016\",\"50\"],[\"4\",\"2021\",\"20\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, year int, revenue int)\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, year int, revenue int)\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, year int, revenue int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Customers (customer_id int, year int, revenue int)",
|
||||
"Truncate table Customers",
|
||||
"insert into Customers (customer_id, year, revenue) values ('1', '2018', '50')",
|
||||
"insert into Customers (customer_id, year, revenue) values ('1', '2021', '30')",
|
||||
"insert into Customers (customer_id, year, revenue) values ('1', '2020', '70')",
|
||||
"insert into Customers (customer_id, year, revenue) values ('2', '2021', '-50')",
|
||||
"insert into Customers (customer_id, year, revenue) values ('3', '2018', '10')",
|
||||
"insert into Customers (customer_id, year, revenue) values ('3', '2016', '50')",
|
||||
"insert into Customers (customer_id, year, revenue) values ('4', '2021', '20')"
|
||||
],
|
||||
"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\",\"year\",\"revenue\"]},\"rows\":{\"Customers\":[[\"1\",\"2018\",\"50\"],[\"1\",\"2021\",\"30\"],[\"1\",\"2020\",\"70\"],[\"2\",\"2021\",\"-50\"],[\"3\",\"2018\",\"10\"],[\"3\",\"2016\",\"50\"],[\"4\",\"2021\",\"20\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,70 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1964",
|
||||
"questionFrontendId": "1811",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 696559,
|
||||
"title": "Find Interview Candidates",
|
||||
"titleSlug": "find-interview-candidates",
|
||||
"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\": \"1.7K\", \"totalSubmission\": \"2.6K\", \"totalAcceptedRaw\": 1673, \"totalSubmissionRaw\": 2595, \"acRate\": \"64.5%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Contests\":[\"contest_id\",\"gold_medal\",\"silver_medal\",\"bronze_medal\"],\"Users\":[\"user_id\",\"mail\",\"name\"]},\"rows\":{\"Contests\":[[190,1,5,2],[191,2,3,5],[192,5,2,3],[193,1,3,5],[194,4,5,2],[195,4,2,1],[196,1,5,2]],\"Users\":[[1,\"sarah@leetcode.com\",\"Sarah\"],[2,\"bob@leetcode.com\",\"Bob\"],[3,\"alice@leetcode.com\",\"Alice\"],[4,\"hercy@leetcode.com\",\"Hercy\"],[5,\"quarz@leetcode.com\",\"Quarz\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)\",\n \"Create table If Not Exists Users (user_id int, mail varchar(50), name varchar(30))\"\n ],\n \"mssql\": [\n \"Create table Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)\",\n \"Create table Users (user_id int, mail varchar(50), name varchar(30))\"\n ],\n \"oraclesql\": [\n \"Create table Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)\",\n \"Create table Users (user_id int, mail varchar(50), name varchar(30))\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Contests (contest_id int, gold_medal int, silver_medal int, bronze_medal int)",
|
||||
"Create table If Not Exists Users (user_id int, mail varchar(50), name varchar(30))",
|
||||
"Truncate table Contests",
|
||||
"insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('190', '1', '5', '2')",
|
||||
"insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('191', '2', '3', '5')",
|
||||
"insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('192', '5', '2', '3')",
|
||||
"insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('193', '1', '3', '5')",
|
||||
"insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('194', '4', '5', '2')",
|
||||
"insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('195', '4', '2', '1')",
|
||||
"insert into Contests (contest_id, gold_medal, silver_medal, bronze_medal) values ('196', '1', '5', '2')",
|
||||
"Truncate table Users",
|
||||
"insert into Users (user_id, mail, name) values ('1', 'sarah@leetcode.com', 'Sarah')",
|
||||
"insert into Users (user_id, mail, name) values ('2', 'bob@leetcode.com', 'Bob')",
|
||||
"insert into Users (user_id, mail, name) values ('3', 'alice@leetcode.com', 'Alice')",
|
||||
"insert into Users (user_id, mail, name) values ('4', 'hercy@leetcode.com', 'Hercy')",
|
||||
"insert into Users (user_id, mail, name) values ('5', 'quarz@leetcode.com', 'Quarz')"
|
||||
],
|
||||
"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\":{\"Contests\":[\"contest_id\",\"gold_medal\",\"silver_medal\",\"bronze_medal\"],\"Users\":[\"user_id\",\"mail\",\"name\"]},\"rows\":{\"Contests\":[[190,1,5,2],[191,2,3,5],[192,5,2,3],[193,1,3,5],[194,4,5,2],[195,4,2,1],[196,1,5,2]],\"Users\":[[1,\"sarah@leetcode.com\",\"Sarah\"],[2,\"bob@leetcode.com\",\"Bob\"],[3,\"alice@leetcode.com\",\"Alice\"],[4,\"hercy@leetcode.com\",\"Hercy\"],[5,\"quarz@leetcode.com\",\"Quarz\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
59
算法题(国内版)/originData/[no content]find-the-missing-ids.json
Normal file
59
算法题(国内版)/originData/[no content]find-the-missing-ids.json
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1759",
|
||||
"questionFrontendId": "1613",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 442396,
|
||||
"title": "Find the Missing IDs",
|
||||
"titleSlug": "find-the-missing-ids",
|
||||
"content": null,
|
||||
"translatedTitle": "找到遗失的ID",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 25,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"2.4K\", \"totalSubmission\": \"3.3K\", \"totalAcceptedRaw\": 2411, \"totalSubmissionRaw\": 3284, \"acRate\": \"73.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Customers\": [\"customer_id\", \"customer_name\"]}, \"rows\": {\"Customers\": [[1, \"Alice\"], [4, \"Bob\"], [5, \"Charlie\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, customer_name varchar(20))\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, customer_name varchar(20))\\n\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, customer_name varchar(20))\\n\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Customers (customer_id int, customer_name varchar(20))",
|
||||
"Truncate table Customers",
|
||||
"insert into Customers (customer_id, customer_name) values ('1', 'Alice')",
|
||||
"insert into Customers (customer_id, customer_name) values ('4', 'Bob')",
|
||||
"insert into Customers (customer_id, customer_name) values ('5', 'Charlie')"
|
||||
],
|
||||
"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\"]}, \"rows\": {\"Customers\": [[1, \"Alice\"], [4, \"Bob\"], [5, \"Charlie\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1914",
|
||||
"questionFrontendId": "1767",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 612949,
|
||||
"title": "Find the Subtasks That Did Not Execute",
|
||||
"titleSlug": "find-the-subtasks-that-did-not-execute",
|
||||
"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\": \"1.3K\", \"totalSubmission\": \"1.6K\", \"totalAcceptedRaw\": 1287, \"totalSubmissionRaw\": 1642, \"acRate\": \"78.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Tasks\": [\"task_id\", \"subtasks_count\"], \"Executed\": [\"task_id\", \"subtask_id\"]}, \"rows\": {\"Tasks\": [[1, 3], [2, 2], [3, 4]], \"Executed\": [[1, 2], [3, 1], [3, 2], [3, 3], [3, 4]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Tasks (task_id int, subtasks_count int)\",\n \"Create table If Not Exists Executed (task_id int, subtask_id int)\"\n ],\n \"mssql\": [\n \"Create table Tasks (task_id int, subtasks_count int)\",\n \"Create table Executed (task_id int, subtask_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Tasks (task_id int, subtasks_count int)\",\n \"Create table Executed (task_id int, subtask_id int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Tasks (task_id int, subtasks_count int)",
|
||||
"Create table If Not Exists Executed (task_id int, subtask_id int)",
|
||||
"Truncate table Tasks",
|
||||
"insert into Tasks (task_id, subtasks_count) values ('1', '3')",
|
||||
"insert into Tasks (task_id, subtasks_count) values ('2', '2')",
|
||||
"insert into Tasks (task_id, subtasks_count) values ('3', '4')",
|
||||
"Truncate table Executed",
|
||||
"insert into Executed (task_id, subtask_id) values ('1', '2')",
|
||||
"insert into Executed (task_id, subtask_id) values ('3', '1')",
|
||||
"insert into Executed (task_id, subtask_id) values ('3', '2')",
|
||||
"insert into Executed (task_id, subtask_id) values ('3', '3')",
|
||||
"insert into Executed (task_id, subtask_id) values ('3', '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\": {\"Tasks\": [\"task_id\", \"subtasks_count\"], \"Executed\": [\"task_id\", \"subtask_id\"]}, \"rows\": {\"Tasks\": [[1, 3], [2, 2], [3, 4]], \"Executed\": [[1, 2], [3, 1], [3, 2], [3, 3], [3, 4]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1664",
|
||||
"questionFrontendId": "1517",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 336736,
|
||||
"title": "Find Users With Valid E-Mails",
|
||||
"titleSlug": "find-users-with-valid-e-mails",
|
||||
"content": null,
|
||||
"translatedTitle": "查找拥有有效邮箱的用户",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 24,
|
||||
"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\": \"7.5K\", \"totalAcceptedRaw\": 4417, \"totalSubmissionRaw\": 7539, \"acRate\": \"58.6%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Users\":[\"user_id\",\"name\",\"mail\"]},\"rows\":{\"Users\":[[1,\"Winston\",\"winston@leetcode.com\"],[2,\"Jonathan\",\"jonathanisgreat\"],[3,\"Annabelle\",\"bella-@leetcode.com\"],[4,\"Sally\",\"sally.come@leetcode.com\"],[5,\"Marwan\",\"quarz#2020@leetcode.com\"],[6,\"David\",\"david69@gmail.com\"],[7,\"Shapiro\",\".shapo@leetcode.com\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Users (user_id int, name varchar(30), mail varchar(50))\"\n ],\n \"mssql\": [\n \"Create table Users (user_id int, name varchar(30), mail varchar(50))\"\n ],\n \"oraclesql\": [\n \"Create table Users (user_id int, name varchar(30), mail varchar(50))\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Users (user_id int, name varchar(30), mail varchar(50))",
|
||||
"Truncate table Users",
|
||||
"insert into Users (user_id, name, mail) values ('1', 'Winston', 'winston@leetcode.com')",
|
||||
"insert into Users (user_id, name, mail) values ('2', 'Jonathan', 'jonathanisgreat')",
|
||||
"insert into Users (user_id, name, mail) values ('3', 'Annabelle', 'bella-@leetcode.com')",
|
||||
"insert into Users (user_id, name, mail) values ('4', 'Sally', 'sally.come@leetcode.com')",
|
||||
"insert into Users (user_id, name, mail) values ('5', 'Marwan', 'quarz#2020@leetcode.com')",
|
||||
"insert into Users (user_id, name, mail) values ('6', 'David', 'david69@gmail.com')",
|
||||
"insert into Users (user_id, name, mail) values ('7', 'Shapiro', '.shapo@leetcode.com')"
|
||||
],
|
||||
"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\",\"name\",\"mail\"]},\"rows\":{\"Users\":[[1,\"Winston\",\"winston@leetcode.com\"],[2,\"Jonathan\",\"jonathanisgreat\"],[3,\"Annabelle\",\"bella-@leetcode.com\"],[4,\"Sally\",\"sally.come@leetcode.com\"],[5,\"Marwan\",\"quarz#2020@leetcode.com\"],[6,\"David\",\"david69@gmail.com\"],[7,\"Shapiro\",\".shapo@leetcode.com\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
62
算法题(国内版)/originData/[no content]fix-product-name-format.json
Normal file
62
算法题(国内版)/originData/[no content]fix-product-name-format.json
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1686",
|
||||
"questionFrontendId": "1543",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 366675,
|
||||
"title": "Fix Product Name Format",
|
||||
"titleSlug": "fix-product-name-format",
|
||||
"content": null,
|
||||
"translatedTitle": "产品名称格式修复",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 11,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"4K\", \"totalSubmission\": \"7.2K\", \"totalAcceptedRaw\": 3985, \"totalSubmissionRaw\": 7189, \"acRate\": \"55.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Sales\": [\"sale_id\", \"product_name\", \"sale_date\"]}, \"rows\": {\"Sales\": [[1, \"LCPHONE\", \"2000-01-16\"], [2, \"LCPhone\", \"2000-01-17\"], [3, \"LcPhOnE\", \"2000-02-18\"], [4, \"LCKeyCHAiN\", \"2000-02-19\"], [5, \"LCKeyChain\", \"2000-02-28\"], [6, \"Matryoshka\", \"2000-03-31\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Sales (sale_id int, product_name varchar(30), sale_date date)\\n\"\n ],\n \"mssql\": [\n \"Create table Sales (sale_id int, product_name varchar(30), sale_date date)\\n\"\n ],\n \"oraclesql\": [\n \"Create table Sales (sale_id int, product_name varchar(30), sale_date date)\\n\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\\n\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Sales (sale_id int, product_name varchar(30), sale_date date)\n",
|
||||
"Truncate table Sales",
|
||||
"insert into Sales (sale_id, product_name, sale_date) values ('1', 'LCPHONE', '2000-01-16')",
|
||||
"insert into Sales (sale_id, product_name, sale_date) values ('2', 'LCPhone', '2000-01-17')",
|
||||
"insert into Sales (sale_id, product_name, sale_date) values ('3', 'LcPhOnE', '2000-02-18')",
|
||||
"insert into Sales (sale_id, product_name, sale_date) values ('4', 'LCKeyCHAiN', '2000-02-19')",
|
||||
"insert into Sales (sale_id, product_name, sale_date) values ('5', 'LCKeyChain', '2000-02-28')",
|
||||
"insert into Sales (sale_id, product_name, sale_date) values ('6', 'Matryoshka', '2000-03-31')"
|
||||
],
|
||||
"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_name\", \"sale_date\"]}, \"rows\": {\"Sales\": [[1, \"LCPHONE\", \"2000-01-16\"], [2, \"LCPhone\", \"2000-01-17\"], [3, \"LcPhOnE\", \"2000-02-18\"], [4, \"LCKeyCHAiN\", \"2000-02-19\"], [5, \"LCKeyChain\", \"2000-02-28\"], [6, \"Matryoshka\", \"2000-03-31\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
85
算法题(国内版)/originData/[no content]game-of-nim.json
Normal file
85
算法题(国内版)/originData/[no content]game-of-nim.json
Normal file
File diff suppressed because one or more lines are too long
64
算法题(国内版)/originData/[no content]grand-slam-titles.json
Normal file
64
算法题(国内版)/originData/[no content]grand-slam-titles.json
Normal file
@ -0,0 +1,64 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1932",
|
||||
"questionFrontendId": "1783",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 639843,
|
||||
"title": "Grand Slam Titles",
|
||||
"titleSlug": "grand-slam-titles",
|
||||
"content": null,
|
||||
"translatedTitle": "大满贯数量",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 12,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.9K\", \"totalSubmission\": \"2.4K\", \"totalAcceptedRaw\": 1914, \"totalSubmissionRaw\": 2375, \"acRate\": \"80.6%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Players\": [\"player_id\", \"player_name\"], \"Championships\": [\"year\", \"Wimbledon\", \"Fr_open\", \"US_open\", \"Au_open\"]}, \"rows\": {\"Players\": [[1, \"Nadal\"], [2, \"Federer\"], [3, \"Novak\"]], \"Championships\": [[2018, 1, 1, 1, 1], [2019, 1, 1, 2, 2], [2020, 2, 1, 2, 2]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Players (player_id int, player_name varchar(20))\",\n \"Create table If Not Exists Championships (year int, Wimbledon int, Fr_open int, US_open int, Au_open int)\"\n ],\n \"mssql\": [\n \"Create table Players (player_id int, player_name varchar(20))\",\n \"Create table Championships (year int, Wimbledon int, Fr_open int, US_open int, Au_open int)\"\n ],\n \"oraclesql\": [\n \"Create table Players (player_id int, player_name varchar(20))\",\n \"Create table Championships (year int, Wimbledon int, Fr_open int, US_open int, Au_open int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Players (player_id int, player_name varchar(20))",
|
||||
"Create table If Not Exists Championships (year int, Wimbledon int, Fr_open int, US_open int, Au_open int)",
|
||||
"Truncate table Players",
|
||||
"insert into Players (player_id, player_name) values ('1', 'Nadal')",
|
||||
"insert into Players (player_id, player_name) values ('2', 'Federer')",
|
||||
"insert into Players (player_id, player_name) values ('3', 'Novak')",
|
||||
"Truncate table Championships",
|
||||
"insert into Championships (year, Wimbledon, Fr_open, US_open, Au_open) values ('2018', '1', '1', '1', '1')",
|
||||
"insert into Championships (year, Wimbledon, Fr_open, US_open, Au_open) values ('2019', '1', '1', '2', '2')",
|
||||
"insert into Championships (year, Wimbledon, Fr_open, US_open, Au_open) values ('2020', '2', '1', '2', '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\": {\"Players\": [\"player_id\", \"player_name\"], \"Championships\": [\"year\", \"Wimbledon\", \"Fr_open\", \"US_open\", \"Au_open\"]}, \"rows\": {\"Players\": [[1, \"Nadal\"], [2, \"Federer\"], [3, \"Novak\"]], \"Championships\": [[2018, 1, 1, 1, 1], [2019, 1, 1, 2, 2], [2020, 2, 1, 2, 2]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "2030",
|
||||
"questionFrontendId": "1875",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 801575,
|
||||
"title": "Group Employees of the Same Salary",
|
||||
"titleSlug": "group-employees-of-the-same-salary",
|
||||
"content": null,
|
||||
"translatedTitle": "将工资相同的雇员分组",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 1,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1K\", \"totalSubmission\": \"1.5K\", \"totalAcceptedRaw\": 1017, \"totalSubmissionRaw\": 1497, \"acRate\": \"67.9%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Employees\":[\"employee_id\",\"name\",\"salary\"]},\"rows\":{\"Employees\":[[2,\"Meir\",3000],[3,\"Michael\",3000],[7,\"Addilyn\",7400],[8,\"Juan\",6100],[9,\"Kannon\",7400]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employees (employee_id int, name varchar(30), salary int)\"\n ],\n \"mssql\": [\n \"Create table Employees (employee_id int, name varchar(30), salary int)\"\n ],\n \"oraclesql\": [\n \"Create table Employees (employee_id int, name varchar(30), salary int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Employees (employee_id int, name varchar(30), salary int)",
|
||||
"Truncate table Employees",
|
||||
"insert into Employees (employee_id, name, salary) values ('2', 'Meir', '3000')",
|
||||
"insert into Employees (employee_id, name, salary) values ('3', 'Michael', '3000')",
|
||||
"insert into Employees (employee_id, name, salary) values ('7', 'Addilyn', '7400')",
|
||||
"insert into Employees (employee_id, name, salary) values ('8', 'Juan', '6100')",
|
||||
"insert into Employees (employee_id, name, salary) values ('9', 'Kannon', '7400')"
|
||||
],
|
||||
"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\",\"name\",\"salary\"]},\"rows\":{\"Employees\":[[2,\"Meir\",3000],[3,\"Michael\",3000],[7,\"Addilyn\",7400],[8,\"Juan\",6100],[9,\"Kannon\",7400]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,93 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1779",
|
||||
"questionFrontendId": "1635",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 468202,
|
||||
"title": "Hopper Company Queries I",
|
||||
"titleSlug": "hopper-company-queries-i",
|
||||
"content": null,
|
||||
"translatedTitle": "Hopper 公司查询 I",
|
||||
"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\": \"1.6K\", \"totalSubmission\": \"3K\", \"totalAcceptedRaw\": 1617, \"totalSubmissionRaw\": 3037, \"acRate\": \"53.2%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Drivers\":[\"driver_id\",\"join_date\"],\"Rides\":[\"ride_id\",\"user_id\",\"requested_at\"],\"AcceptedRides\":[\"ride_id\",\"driver_id\",\"ride_distance\",\"ride_duration\"]},\"rows\":{\"Drivers\":[[10,\"2019-12-10\"],[8,\"2020-1-13\"],[5,\"2020-2-16\"],[7,\"2020-3-8\"],[4,\"2020-5-17\"],[1,\"2020-10-24\"],[6,\"2021-1-5\"]],\"Rides\":[[6,75,\"2019-12-9\"],[1,54,\"2020-2-9\"],[10,63,\"2020-3-4\"],[19,39,\"2020-4-6\"],[3,41,\"2020-6-3\"],[13,52,\"2020-6-22\"],[7,69,\"2020-7-16\"],[17,70,\"2020-8-25\"],[20,81,\"2020-11-2\"],[5,57,\"2020-11-9\"],[2,42,\"2020-12-9\"],[11,68,\"2021-1-11\"],[15,32,\"2021-1-17\"],[12,11,\"2021-1-19\"],[14,18,\"2021-1-27\"]],\"AcceptedRides\":[[10,10,63,38],[13,10,73,96],[7,8,100,28],[17,7,119,68],[20,1,121,92],[5,7,42,101],[2,4,6,38],[11,8,37,43],[15,8,108,82],[12,8,38,34],[14,1,90,74]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Drivers (driver_id int, join_date date)\",\n \"Create table If Not Exists Rides (ride_id int, user_id int, requested_at date)\",\n \"Create table If Not Exists AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int)\"\n ],\n \"mssql\": [\n \"Create table Drivers (driver_id int, join_date date)\",\n \"Create table Rides (ride_id int, user_id int, requested_at date)\",\n \"Create table AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int)\"\n ],\n \"oraclesql\": [\n \"Create table Drivers (driver_id int, join_date date)\",\n \"Create table Rides (ride_id int, user_id int, requested_at date)\",\n \"Create table AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration 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 Drivers (driver_id int, join_date date)",
|
||||
"Create table If Not Exists Rides (ride_id int, user_id int, requested_at date)",
|
||||
"Create table If Not Exists AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int)",
|
||||
"Truncate table Drivers",
|
||||
"insert into Drivers (driver_id, join_date) values ('10', '2019-12-10')",
|
||||
"insert into Drivers (driver_id, join_date) values ('8', '2020-1-13')",
|
||||
"insert into Drivers (driver_id, join_date) values ('5', '2020-2-16')",
|
||||
"insert into Drivers (driver_id, join_date) values ('7', '2020-3-8')",
|
||||
"insert into Drivers (driver_id, join_date) values ('4', '2020-5-17')",
|
||||
"insert into Drivers (driver_id, join_date) values ('1', '2020-10-24')",
|
||||
"insert into Drivers (driver_id, join_date) values ('6', '2021-1-5')",
|
||||
"Truncate table Rides",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('6', '75', '2019-12-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('1', '54', '2020-2-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('10', '63', '2020-3-4')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('19', '39', '2020-4-6')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('3', '41', '2020-6-3')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('13', '52', '2020-6-22')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('7', '69', '2020-7-16')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('17', '70', '2020-8-25')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('20', '81', '2020-11-2')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('5', '57', '2020-11-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('2', '42', '2020-12-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('11', '68', '2021-1-11')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('15', '32', '2021-1-17')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('12', '11', '2021-1-19')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('14', '18', '2021-1-27')",
|
||||
"Truncate table AcceptedRides",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('10', '10', '63', '38')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('13', '10', '73', '96')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('7', '8', '100', '28')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('17', '7', '119', '68')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('20', '1', '121', '92')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('5', '7', '42', '101')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('2', '4', '6', '38')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('11', '8', '37', '43')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('15', '8', '108', '82')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('12', '8', '38', '34')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('14', '1', '90', '74')"
|
||||
],
|
||||
"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\":{\"Drivers\":[\"driver_id\",\"join_date\"],\"Rides\":[\"ride_id\",\"user_id\",\"requested_at\"],\"AcceptedRides\":[\"ride_id\",\"driver_id\",\"ride_distance\",\"ride_duration\"]},\"rows\":{\"Drivers\":[[10,\"2019-12-10\"],[8,\"2020-1-13\"],[5,\"2020-2-16\"],[7,\"2020-3-8\"],[4,\"2020-5-17\"],[1,\"2020-10-24\"],[6,\"2021-1-5\"]],\"Rides\":[[6,75,\"2019-12-9\"],[1,54,\"2020-2-9\"],[10,63,\"2020-3-4\"],[19,39,\"2020-4-6\"],[3,41,\"2020-6-3\"],[13,52,\"2020-6-22\"],[7,69,\"2020-7-16\"],[17,70,\"2020-8-25\"],[20,81,\"2020-11-2\"],[5,57,\"2020-11-9\"],[2,42,\"2020-12-9\"],[11,68,\"2021-1-11\"],[15,32,\"2021-1-17\"],[12,11,\"2021-1-19\"],[14,18,\"2021-1-27\"]],\"AcceptedRides\":[[10,10,63,38],[13,10,73,96],[7,8,100,28],[17,7,119,68],[20,1,121,92],[5,7,42,101],[2,4,6,38],[11,8,37,43],[15,8,108,82],[12,8,38,34],[14,1,90,74]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1785",
|
||||
"questionFrontendId": "1645",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 475894,
|
||||
"title": "Hopper Company Queries II",
|
||||
"titleSlug": "hopper-company-queries-ii",
|
||||
"content": null,
|
||||
"translatedTitle": null,
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 3,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.2K\", \"totalSubmission\": \"2.8K\", \"totalAcceptedRaw\": 1155, \"totalSubmissionRaw\": 2794, \"acRate\": \"41.3%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Drivers\":[\"driver_id\",\"join_date\"],\"Rides\":[\"ride_id\",\"user_id\",\"requested_at\"],\"AcceptedRides\":[\"ride_id\",\"driver_id\",\"ride_distance\",\"ride_duration\"]},\"rows\":{\"Drivers\":[[10,\"2019-12-10\"],[8,\"2020-1-13\"],[5,\"2020-2-16\"],[7,\"2020-3-8\"],[4,\"2020-5-17\"],[1,\"2020-10-24\"],[6,\"2021-1-5\"]],\"Rides\":[[6,75,\"2019-12-9\"],[1,54,\"2020-2-9\"],[10,63,\"2020-3-4\"],[19,39,\"2020-4-6\"],[3,41,\"2020-6-3\"],[13,52,\"2020-6-22\"],[7,69,\"2020-7-16\"],[17,70,\"2020-8-25\"],[20,81,\"2020-11-2\"],[5,57,\"2020-11-9\"],[2,42,\"2020-12-9\"],[11,68,\"2021-1-11\"],[15,32,\"2021-1-17\"],[12,11,\"2021-1-19\"],[14,18,\"2021-1-27\"]],\"AcceptedRides\":[[10,10,63,38],[13,10,73,96],[7,8,100,28],[17,7,119,68],[20,1,121,92],[5,7,42,101],[2,4,6,38],[11,8,37,43],[15,8,108,82],[12,8,38,34],[14,1,90,74]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Drivers (driver_id int, join_date date)\",\n \"Create table If Not Exists Rides (ride_id int, user_id int, requested_at date)\",\n \"Create table If Not Exists AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int)\"\n ],\n \"mssql\": [\n \"Create table Drivers (driver_id int, join_date date)\",\n \"Create table Rides (ride_id int, user_id int, requested_at date)\",\n \"Create table AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int)\"\n ],\n \"oraclesql\": [\n \"Create table Drivers (driver_id int, join_date date)\",\n \"Create table Rides (ride_id int, user_id int, requested_at date)\",\n \"Create table AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration 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 Drivers (driver_id int, join_date date)",
|
||||
"Create table If Not Exists Rides (ride_id int, user_id int, requested_at date)",
|
||||
"Create table If Not Exists AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int)",
|
||||
"Truncate table Drivers",
|
||||
"insert into Drivers (driver_id, join_date) values ('10', '2019-12-10')",
|
||||
"insert into Drivers (driver_id, join_date) values ('8', '2020-1-13')",
|
||||
"insert into Drivers (driver_id, join_date) values ('5', '2020-2-16')",
|
||||
"insert into Drivers (driver_id, join_date) values ('7', '2020-3-8')",
|
||||
"insert into Drivers (driver_id, join_date) values ('4', '2020-5-17')",
|
||||
"insert into Drivers (driver_id, join_date) values ('1', '2020-10-24')",
|
||||
"insert into Drivers (driver_id, join_date) values ('6', '2021-1-5')",
|
||||
"Truncate table Rides",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('6', '75', '2019-12-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('1', '54', '2020-2-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('10', '63', '2020-3-4')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('19', '39', '2020-4-6')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('3', '41', '2020-6-3')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('13', '52', '2020-6-22')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('7', '69', '2020-7-16')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('17', '70', '2020-8-25')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('20', '81', '2020-11-2')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('5', '57', '2020-11-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('2', '42', '2020-12-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('11', '68', '2021-1-11')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('15', '32', '2021-1-17')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('12', '11', '2021-1-19')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('14', '18', '2021-1-27')",
|
||||
"Truncate table AcceptedRides",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('10', '10', '63', '38')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('13', '10', '73', '96')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('7', '8', '100', '28')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('17', '7', '119', '68')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('20', '1', '121', '92')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('5', '7', '42', '101')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('2', '4', '6', '38')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('11', '8', '37', '43')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('15', '8', '108', '82')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('12', '8', '38', '34')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('14', '1', '90', '74')"
|
||||
],
|
||||
"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\":{\"Drivers\":[\"driver_id\",\"join_date\"],\"Rides\":[\"ride_id\",\"user_id\",\"requested_at\"],\"AcceptedRides\":[\"ride_id\",\"driver_id\",\"ride_distance\",\"ride_duration\"]},\"rows\":{\"Drivers\":[[10,\"2019-12-10\"],[8,\"2020-1-13\"],[5,\"2020-2-16\"],[7,\"2020-3-8\"],[4,\"2020-5-17\"],[1,\"2020-10-24\"],[6,\"2021-1-5\"]],\"Rides\":[[6,75,\"2019-12-9\"],[1,54,\"2020-2-9\"],[10,63,\"2020-3-4\"],[19,39,\"2020-4-6\"],[3,41,\"2020-6-3\"],[13,52,\"2020-6-22\"],[7,69,\"2020-7-16\"],[17,70,\"2020-8-25\"],[20,81,\"2020-11-2\"],[5,57,\"2020-11-9\"],[2,42,\"2020-12-9\"],[11,68,\"2021-1-11\"],[15,32,\"2021-1-17\"],[12,11,\"2021-1-19\"],[14,18,\"2021-1-27\"]],\"AcceptedRides\":[[10,10,63,38],[13,10,73,96],[7,8,100,28],[17,7,119,68],[20,1,121,92],[5,7,42,101],[2,4,6,38],[11,8,37,43],[15,8,108,82],[12,8,38,34],[14,1,90,74]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1795",
|
||||
"questionFrontendId": "1651",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 484411,
|
||||
"title": "Hopper Company Queries III",
|
||||
"titleSlug": "hopper-company-queries-iii",
|
||||
"content": null,
|
||||
"translatedTitle": "Hopper 公司查询 III",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 7,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.1K\", \"totalSubmission\": \"1.7K\", \"totalAcceptedRaw\": 1116, \"totalSubmissionRaw\": 1687, \"acRate\": \"66.2%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Drivers\":[\"driver_id\",\"join_date\"],\"Rides\":[\"ride_id\",\"user_id\",\"requested_at\"],\"AcceptedRides\":[\"ride_id\",\"driver_id\",\"ride_distance\",\"ride_duration\"]},\"rows\":{\"Drivers\":[[10,\"2019-12-10\"],[8,\"2020-1-13\"],[5,\"2020-2-16\"],[7,\"2020-3-8\"],[4,\"2020-5-17\"],[1,\"2020-10-24\"],[6,\"2021-1-5\"]],\"Rides\":[[6,75,\"2019-12-9\"],[1,54,\"2020-2-9\"],[10,63,\"2020-3-4\"],[19,39,\"2020-4-6\"],[3,41,\"2020-6-3\"],[13,52,\"2020-6-22\"],[7,69,\"2020-7-16\"],[17,70,\"2020-8-25\"],[20,81,\"2020-11-2\"],[5,57,\"2020-11-9\"],[2,42,\"2020-12-9\"],[11,68,\"2021-1-11\"],[15,32,\"2021-1-17\"],[12,11,\"2021-1-19\"],[14,18,\"2021-1-27\"]],\"AcceptedRides\":[[10,10,63,38],[13,10,73,96],[7,8,100,28],[17,7,119,68],[20,1,121,92],[5,7,42,101],[2,4,6,38],[11,8,37,43],[15,8,108,82],[12,8,38,34],[14,1,90,74]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Drivers (driver_id int, join_date date)\",\n \"Create table If Not Exists Rides (ride_id int, user_id int, requested_at date)\",\n \"Create table If Not Exists AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int)\"\n ],\n \"mssql\": [\n \"Create table Drivers (driver_id int, join_date date)\",\n \"Create table Rides (ride_id int, user_id int, requested_at date)\",\n \"Create table AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int)\"\n ],\n \"oraclesql\": [\n \"Create table Drivers (driver_id int, join_date date)\",\n \"Create table Rides (ride_id int, user_id int, requested_at date)\",\n \"Create table AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration 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 Drivers (driver_id int, join_date date)",
|
||||
"Create table If Not Exists Rides (ride_id int, user_id int, requested_at date)",
|
||||
"Create table If Not Exists AcceptedRides (ride_id int, driver_id int, ride_distance int, ride_duration int)",
|
||||
"Truncate table Drivers",
|
||||
"insert into Drivers (driver_id, join_date) values ('10', '2019-12-10')",
|
||||
"insert into Drivers (driver_id, join_date) values ('8', '2020-1-13')",
|
||||
"insert into Drivers (driver_id, join_date) values ('5', '2020-2-16')",
|
||||
"insert into Drivers (driver_id, join_date) values ('7', '2020-3-8')",
|
||||
"insert into Drivers (driver_id, join_date) values ('4', '2020-5-17')",
|
||||
"insert into Drivers (driver_id, join_date) values ('1', '2020-10-24')",
|
||||
"insert into Drivers (driver_id, join_date) values ('6', '2021-1-5')",
|
||||
"Truncate table Rides",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('6', '75', '2019-12-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('1', '54', '2020-2-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('10', '63', '2020-3-4')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('19', '39', '2020-4-6')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('3', '41', '2020-6-3')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('13', '52', '2020-6-22')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('7', '69', '2020-7-16')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('17', '70', '2020-8-25')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('20', '81', '2020-11-2')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('5', '57', '2020-11-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('2', '42', '2020-12-9')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('11', '68', '2021-1-11')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('15', '32', '2021-1-17')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('12', '11', '2021-1-19')",
|
||||
"insert into Rides (ride_id, user_id, requested_at) values ('14', '18', '2021-1-27')",
|
||||
"Truncate table AcceptedRides",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('10', '10', '63', '38')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('13', '10', '73', '96')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('7', '8', '100', '28')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('17', '7', '119', '68')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('20', '1', '121', '92')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('5', '7', '42', '101')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('2', '4', '6', '38')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('11', '8', '37', '43')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('15', '8', '108', '82')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('12', '8', '38', '34')",
|
||||
"insert into AcceptedRides (ride_id, driver_id, ride_distance, ride_duration) values ('14', '1', '90', '74')"
|
||||
],
|
||||
"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\":{\"Drivers\":[\"driver_id\",\"join_date\"],\"Rides\":[\"ride_id\",\"user_id\",\"requested_at\"],\"AcceptedRides\":[\"ride_id\",\"driver_id\",\"ride_distance\",\"ride_duration\"]},\"rows\":{\"Drivers\":[[10,\"2019-12-10\"],[8,\"2020-1-13\"],[5,\"2020-2-16\"],[7,\"2020-3-8\"],[4,\"2020-5-17\"],[1,\"2020-10-24\"],[6,\"2021-1-5\"]],\"Rides\":[[6,75,\"2019-12-9\"],[1,54,\"2020-2-9\"],[10,63,\"2020-3-4\"],[19,39,\"2020-4-6\"],[3,41,\"2020-6-3\"],[13,52,\"2020-6-22\"],[7,69,\"2020-7-16\"],[17,70,\"2020-8-25\"],[20,81,\"2020-11-2\"],[5,57,\"2020-11-9\"],[2,42,\"2020-12-9\"],[11,68,\"2021-1-11\"],[15,32,\"2021-1-17\"],[12,11,\"2021-1-19\"],[14,18,\"2021-1-27\"]],\"AcceptedRides\":[[10,10,63,38],[13,10,73,96],[7,8,100,28],[17,7,119,68],[20,1,121,92],[5,7,42,101],[2,4,6,38],[11,8,37,43],[15,8,108,82],[12,8,38,34],[14,1,90,74]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
58
算法题(国内版)/originData/[no content]invalid-tweets.json
Normal file
58
算法题(国内版)/originData/[no content]invalid-tweets.json
Normal file
@ -0,0 +1,58 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1827",
|
||||
"questionFrontendId": "1683",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 517777,
|
||||
"title": "Invalid Tweets",
|
||||
"titleSlug": "invalid-tweets",
|
||||
"content": null,
|
||||
"translatedTitle": "无效的推文",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 11,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"4.8K\", \"totalSubmission\": \"5.3K\", \"totalAcceptedRaw\": 4794, \"totalSubmissionRaw\": 5311, \"acRate\": \"90.3%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Tweets\":[\"tweet_id\",\"content\"]},\"rows\":{\"Tweets\":[[1,\"Vote for Biden\"],[2,\"Let us make America great again!\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Tweets(tweet_id int, content varchar(50))\"\n ],\n \"mssql\": [\n \"Create table Tweets(tweet_id int, content varchar(50))\"\n ],\n \"oraclesql\": [\n \"Create table Tweets(tweet_id int, content varchar(50))\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Tweets(tweet_id int, content varchar(50))",
|
||||
"Truncate table Tweets",
|
||||
"insert into Tweets (tweet_id, content) values ('1', 'Vote for Biden')",
|
||||
"insert into Tweets (tweet_id, content) values ('2', 'Let us make America great again!')"
|
||||
],
|
||||
"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\":{\"Tweets\":[\"tweet_id\",\"content\"]},\"rows\":{\"Tweets\":[[1,\"Vote for Biden\"],[2,\"Let us make America great again!\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
65
算法题(国内版)/originData/[no content]league-statistics.json
Normal file
65
算法题(国内版)/originData/[no content]league-statistics.json
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1991",
|
||||
"questionFrontendId": "1841",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 745069,
|
||||
"title": "League Statistics",
|
||||
"titleSlug": "league-statistics",
|
||||
"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\": \"1.6K\", \"totalSubmission\": \"3K\", \"totalAcceptedRaw\": 1582, \"totalSubmissionRaw\": 2971, \"acRate\": \"53.2%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Teams\":[\"team_id\",\"team_name\"],\"Matches\":[\"home_team_id\",\"away_team_id\",\"home_team_goals\",\"away_team_goals\"]},\"rows\":{\"Teams\":[[1,\"Ajax\"],[4,\"Dortmund\"],[6,\"Arsenal\"]],\"Matches\":[[1,4,0,1],[1,6,3,3],[4,1,5,2],[6,1,0,0]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Teams (team_id int, team_name varchar(20))\",\n \"Create table If Not Exists Matches (home_team_id int, away_team_id int, home_team_goals int, away_team_goals int)\"\n ],\n \"mssql\": [\n \"Create table Teams (team_id int, team_name varchar(20))\",\n \"Create table Matches (home_team_id int, away_team_id int, home_team_goals int, away_team_goals int)\"\n ],\n \"oraclesql\": [\n \"Create table Teams (team_id int, team_name varchar(20))\",\n \"Create table Matches (home_team_id int, away_team_id int, home_team_goals int, away_team_goals int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Teams (team_id int, team_name varchar(20))",
|
||||
"Create table If Not Exists Matches (home_team_id int, away_team_id int, home_team_goals int, away_team_goals int)",
|
||||
"Truncate table Teams",
|
||||
"insert into Teams (team_id, team_name) values ('1', 'Ajax')",
|
||||
"insert into Teams (team_id, team_name) values ('4', 'Dortmund')",
|
||||
"insert into Teams (team_id, team_name) values ('6', 'Arsenal')",
|
||||
"Truncate table Matches",
|
||||
"insert into Matches (home_team_id, away_team_id, home_team_goals, away_team_goals) values ('1', '4', '0', '1')",
|
||||
"insert into Matches (home_team_id, away_team_id, home_team_goals, away_team_goals) values ('1', '6', '3', '3')",
|
||||
"insert into Matches (home_team_id, away_team_id, home_team_goals, away_team_goals) values ('4', '1', '5', '2')",
|
||||
"insert into Matches (home_team_id, away_team_id, home_team_goals, away_team_goals) values ('6', '1', '0', '0')"
|
||||
],
|
||||
"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\":{\"Teams\":[\"team_id\",\"team_name\"],\"Matches\":[\"home_team_id\",\"away_team_id\",\"home_team_goals\",\"away_team_goals\"]},\"rows\":{\"Teams\":[[1,\"Ajax\"],[4,\"Dortmund\"],[6,\"Arsenal\"]],\"Matches\":[[1,4,0,1],[1,6,3,3],[4,1,5,2],[6,1,0,0]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "2063",
|
||||
"questionFrontendId": "1917",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 849603,
|
||||
"title": "Leetcodify Friends Recommendations",
|
||||
"titleSlug": "leetcodify-friends-recommendations",
|
||||
"content": null,
|
||||
"translatedTitle": "Leetcodify 好友推荐",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 5,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"935\", \"totalSubmission\": \"2.7K\", \"totalAcceptedRaw\": 935, \"totalSubmissionRaw\": 2731, \"acRate\": \"34.2%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Listens\":[\"user_id\",\"song_id\",\"day\"],\"Friendship\":[\"user1_id\",\"user2_id\"]},\"rows\":{\"Listens\":[[1,10,\"2021-03-15\"],[1,11,\"2021-03-15\"],[1,12,\"2021-03-15\"],[2,10,\"2021-03-15\"],[2,11,\"2021-03-15\"],[2,12,\"2021-03-15\"],[3,10,\"2021-03-15\"],[3,11,\"2021-03-15\"],[3,12,\"2021-03-15\"],[4,10,\"2021-03-15\"],[4,11,\"2021-03-15\"],[4,13,\"2021-03-15\"],[5,10,\"2021-03-16\"],[5,11,\"2021-03-16\"],[5,12,\"2021-03-16\"]],\"Friendship\":[[1,2]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Listens (user_id int, song_id int, day date)\",\n \"Create table If Not Exists Friendship (user1_id int, user2_id int)\"\n ],\n \"mssql\": [\n \"Create table Listens (user_id int, song_id int, day date)\",\n \"Create table Friendship (user1_id int, user2_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Listens (user_id int, song_id int, day date)\",\n \"Create table Friendship (user1_id int, user2_id 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 Listens (user_id int, song_id int, day date)",
|
||||
"Create table If Not Exists Friendship (user1_id int, user2_id int)",
|
||||
"Truncate table Listens",
|
||||
"insert into Listens (user_id, song_id, day) values ('1', '10', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('1', '11', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('1', '12', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('2', '10', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('2', '11', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('2', '12', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('3', '10', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('3', '11', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('3', '12', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('4', '10', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('4', '11', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('4', '13', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('5', '10', '2021-03-16')",
|
||||
"insert into Listens (user_id, song_id, day) values ('5', '11', '2021-03-16')",
|
||||
"insert into Listens (user_id, song_id, day) values ('5', '12', '2021-03-16')",
|
||||
"Truncate table Friendship",
|
||||
"insert into Friendship (user1_id, user2_id) values ('1', '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\":{\"Listens\":[\"user_id\",\"song_id\",\"day\"],\"Friendship\":[\"user1_id\",\"user2_id\"]},\"rows\":{\"Listens\":[[1,10,\"2021-03-15\"],[1,11,\"2021-03-15\"],[1,12,\"2021-03-15\"],[2,10,\"2021-03-15\"],[2,11,\"2021-03-15\"],[2,12,\"2021-03-15\"],[3,10,\"2021-03-15\"],[3,11,\"2021-03-15\"],[3,12,\"2021-03-15\"],[4,10,\"2021-03-15\"],[4,11,\"2021-03-15\"],[4,13,\"2021-03-15\"],[5,10,\"2021-03-16\"],[5,11,\"2021-03-16\"],[5,12,\"2021-03-16\"]],\"Friendship\":[[1,2]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "2064",
|
||||
"questionFrontendId": "1919",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 854755,
|
||||
"title": "Leetcodify Similar Friends",
|
||||
"titleSlug": "leetcodify-similar-friends",
|
||||
"content": null,
|
||||
"translatedTitle": "兴趣相同的朋友",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 5,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"903\", \"totalSubmission\": \"2.2K\", \"totalAcceptedRaw\": 903, \"totalSubmissionRaw\": 2175, \"acRate\": \"41.5%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Listens\":[\"user_id\",\"song_id\",\"day\"],\"Friendship\":[\"user1_id\",\"user2_id\"]},\"rows\":{\"Listens\":[[1,10,\"2021-03-15\"],[1,11,\"2021-03-15\"],[1,12,\"2021-03-15\"],[2,10,\"2021-03-15\"],[2,11,\"2021-03-15\"],[2,12,\"2021-03-15\"],[3,10,\"2021-03-15\"],[3,11,\"2021-03-15\"],[3,12,\"2021-03-15\"],[4,10,\"2021-03-15\"],[4,11,\"2021-03-15\"],[4,13,\"2021-03-15\"],[5,10,\"2021-03-16\"],[5,11,\"2021-03-16\"],[5,12,\"2021-03-16\"]],\"Friendship\":[[1,2],[2,4],[2,5]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Listens (user_id int, song_id int, day date)\",\n \"Create table If Not Exists Friendship (user1_id int, user2_id int)\"\n ],\n \"mssql\": [\n \"Create table Listens (user_id int, song_id int, day date)\",\n \"Create table Friendship (user1_id int, user2_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Listens (user_id int, song_id int, day date)\",\n \"Create table Friendship (user1_id int, user2_id 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 Listens (user_id int, song_id int, day date)",
|
||||
"Create table If Not Exists Friendship (user1_id int, user2_id int)",
|
||||
"Truncate table Listens",
|
||||
"insert into Listens (user_id, song_id, day) values ('1', '10', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('1', '11', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('1', '12', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('2', '10', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('2', '11', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('2', '12', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('3', '10', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('3', '11', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('3', '12', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('4', '10', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('4', '11', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('4', '13', '2021-03-15')",
|
||||
"insert into Listens (user_id, song_id, day) values ('5', '10', '2021-03-16')",
|
||||
"insert into Listens (user_id, song_id, day) values ('5', '11', '2021-03-16')",
|
||||
"insert into Listens (user_id, song_id, day) values ('5', '12', '2021-03-16')",
|
||||
"Truncate table Friendship",
|
||||
"insert into Friendship (user1_id, user2_id) values ('1', '2')",
|
||||
"insert into Friendship (user1_id, user2_id) values ('2', '4')",
|
||||
"insert into Friendship (user1_id, user2_id) values ('2', '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\":{\"Listens\":[\"user_id\",\"song_id\",\"day\"],\"Friendship\":[\"user1_id\",\"user2_id\"]},\"rows\":{\"Listens\":[[1,10,\"2021-03-15\"],[1,11,\"2021-03-15\"],[1,12,\"2021-03-15\"],[2,10,\"2021-03-15\"],[2,11,\"2021-03-15\"],[2,12,\"2021-03-15\"],[3,10,\"2021-03-15\"],[3,11,\"2021-03-15\"],[3,12,\"2021-03-15\"],[4,10,\"2021-03-15\"],[4,11,\"2021-03-15\"],[4,13,\"2021-03-15\"],[5,10,\"2021-03-16\"],[5,11,\"2021-03-16\"],[5,12,\"2021-03-16\"]],\"Friendship\":[[1,2],[2,4],[2,5]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1898",
|
||||
"questionFrontendId": "1747",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 593753,
|
||||
"title": "Leetflex Banned Accounts",
|
||||
"titleSlug": "leetflex-banned-accounts",
|
||||
"content": null,
|
||||
"translatedTitle": "应该被禁止的Leetflex账户",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 8,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"2.1K\", \"totalSubmission\": \"3K\", \"totalAcceptedRaw\": 2056, \"totalSubmissionRaw\": 2969, \"acRate\": \"69.2%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"LogInfo\":[\"account_id\",\"ip_address\",\"login\",\"logout\"]},\"rows\":{\"LogInfo\":[[1,1,\"2021-02-01 09:00:00\",\"2021-02-01 09:30:00\"],[1,2,\"2021-02-01 08:00:00\",\"2021-02-01 11:30:00\"],[2,6,\"2021-02-01 20:30:00\",\"2021-02-01 22:00:00\"],[2,7,\"2021-02-02 20:30:00\",\"2021-02-02 22:00:00\"],[3,9,\"2021-02-01 16:00:00\",\"2021-02-01 16:59:59\"],[3,13,\"2021-02-01 17:00:00\",\"2021-02-01 17:59:59\"],[4,10,\"2021-02-01 16:00:00\",\"2021-02-01 17:00:00\"],[4,11,\"2021-02-01 17:00:00\",\"2021-02-01 17:59:59\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists LogInfo (account_id int, ip_address int, login datetime, logout datetime)\"\n ],\n \"mssql\": [\n \"Create table LogInfo (account_id int, ip_address int, login datetime, logout datetime)\"\n ],\n \"oraclesql\": [\n \"Create table LogInfo (account_id int, ip_address int, login date, logout date)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD HH24:MI:SS'\"\n ],\n \"database\": true,\n \"manual\": false\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists LogInfo (account_id int, ip_address int, login datetime, logout datetime)",
|
||||
"Truncate table LogInfo",
|
||||
"insert into LogInfo (account_id, ip_address, login, logout) values ('1', '1', '2021-02-01 09:00:00', '2021-02-01 09:30:00')",
|
||||
"insert into LogInfo (account_id, ip_address, login, logout) values ('1', '2', '2021-02-01 08:00:00', '2021-02-01 11:30:00')",
|
||||
"insert into LogInfo (account_id, ip_address, login, logout) values ('2', '6', '2021-02-01 20:30:00', '2021-02-01 22:00:00')",
|
||||
"insert into LogInfo (account_id, ip_address, login, logout) values ('2', '7', '2021-02-02 20:30:00', '2021-02-02 22:00:00')",
|
||||
"insert into LogInfo (account_id, ip_address, login, logout) values ('3', '9', '2021-02-01 16:00:00', '2021-02-01 16:59:59')",
|
||||
"insert into LogInfo (account_id, ip_address, login, logout) values ('3', '13', '2021-02-01 17:00:00', '2021-02-01 17:59:59')",
|
||||
"insert into LogInfo (account_id, ip_address, login, logout) values ('4', '10', '2021-02-01 16:00:00', '2021-02-01 17:00:00')",
|
||||
"insert into LogInfo (account_id, ip_address, login, logout) values ('4', '11', '2021-02-01 17:00:00', '2021-02-01 17:59:59')"
|
||||
],
|
||||
"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\":{\"LogInfo\":[\"account_id\",\"ip_address\",\"login\",\"logout\"]},\"rows\":{\"LogInfo\":[[1,1,\"2021-02-01 09:00:00\",\"2021-02-01 09:30:00\"],[1,2,\"2021-02-01 08:00:00\",\"2021-02-01 11:30:00\"],[2,6,\"2021-02-01 20:30:00\",\"2021-02-01 22:00:00\"],[2,7,\"2021-02-02 20:30:00\",\"2021-02-02 22:00:00\"],[3,9,\"2021-02-01 16:00:00\",\"2021-02-01 16:59:59\"],[3,13,\"2021-02-01 17:00:00\",\"2021-02-01 17:59:59\"],[4,10,\"2021-02-01 16:00:00\",\"2021-02-01 17:00:00\"],[4,11,\"2021-02-01 17:00:00\",\"2021-02-01 17:59:59\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
69
算法题(国内版)/originData/[no content]longest-common-subsequence-between-sorted-arrays.json
Normal file
69
算法题(国内版)/originData/[no content]longest-common-subsequence-between-sorted-arrays.json
Normal file
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
@ -0,0 +1,68 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1780",
|
||||
"questionFrontendId": "1644",
|
||||
"categoryTitle": "Algorithms",
|
||||
"boundTopicId": 473649,
|
||||
"title": "Lowest Common Ancestor of a Binary Tree II",
|
||||
"titleSlug": "lowest-common-ancestor-of-a-binary-tree-ii",
|
||||
"content": null,
|
||||
"translatedTitle": "二叉树的最近公共祖先 II",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 22,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Tree",
|
||||
"slug": "tree",
|
||||
"translatedName": "树",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Depth-First Search",
|
||||
"slug": "depth-first-search",
|
||||
"translatedName": "深度优先搜索",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Binary Tree",
|
||||
"slug": "binary-tree",
|
||||
"translatedName": "二叉树",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.9K\", \"totalSubmission\": \"3.4K\", \"totalAcceptedRaw\": 1905, \"totalSubmissionRaw\": 3449, \"acRate\": \"55.2%\"}",
|
||||
"hints": [
|
||||
"Traverse the graph visiting root, left, root, right, root to make an Euler Path",
|
||||
"Return the node (LCA) that is at the lowest depth between p and q in the Euler Path"
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "[3,5,1,6,2,0,8,null,null,7,4]\n5\n1",
|
||||
"metaData": "{\n \"name\": \"lowestCommonAncestor\",\n \"params\": [\n {\n \"name\": \"root\",\n \"type\": \"TreeNode\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"p\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"q\"\n }\n ],\n \"return\": {\n \"type\": \"TreeNode\"\n },\n \"manual\": true,\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"csharp\",\n \"javascript\",\n \"python3\"\n ]\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": "[3,5,1,6,2,0,8,null,null,7,4]\n5\n1\n[3,5,1,6,2,0,8,null,null,7,4]\n5\n4\n[3,5,1,6,2,0,8,null,null,7,4]\n5\n10",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,69 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1816",
|
||||
"questionFrontendId": "1676",
|
||||
"categoryTitle": "Algorithms",
|
||||
"boundTopicId": 507655,
|
||||
"title": "Lowest Common Ancestor of a Binary Tree IV",
|
||||
"titleSlug": "lowest-common-ancestor-of-a-binary-tree-iv",
|
||||
"content": null,
|
||||
"translatedTitle": "二叉树的最近公共祖先 IV",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 15,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Tree",
|
||||
"slug": "tree",
|
||||
"translatedName": "树",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Depth-First Search",
|
||||
"slug": "depth-first-search",
|
||||
"translatedName": "深度优先搜索",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Binary Tree",
|
||||
"slug": "binary-tree",
|
||||
"translatedName": "二叉树",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.3K\", \"totalSubmission\": \"1.7K\", \"totalAcceptedRaw\": 1296, \"totalSubmissionRaw\": 1669, \"acRate\": \"77.7%\"}",
|
||||
"hints": [
|
||||
"Starting from the root, traverse the left and the right subtrees, checking if one of the nodes exist there.",
|
||||
"If one of the subtrees doesn't contain any given node, the LCA can be the node returned from the other subtree",
|
||||
"If both subtrees contain nodes, the LCA node is the current node."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "[3,5,1,6,2,0,8,null,null,7,4]\n[4,7]",
|
||||
"metaData": "{\n \"name\": \"lowestCommonAncestor\",\n \"params\": [\n {\n \"name\": \"root\",\n \"type\": \"TreeNode\"\n },\n {\n \"type\": \"integer[]\",\n \"name\": \"nodes\"\n }\n ],\n \"return\": {\n \"type\": \"TreeNode\"\n },\n \"manual\": true,\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"csharp\",\n \"python3\",\n \"javascript\"\n ]\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": "[3,5,1,6,2,0,8,null,null,7,4]\n[4,7]\n[3,5,1,6,2,0,8,null,null,7,4]\n[1]\n[3,5,1,6,2,0,8,null,null,7,4]\n[7,6,2,4]",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
52
算法题(国内版)/originData/[no content]maximum-number-of-people-that-can-be-caught-in-tag.json
Normal file
52
算法题(国内版)/originData/[no content]maximum-number-of-people-that-can-be-caught-in-tag.json
Normal file
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
@ -0,0 +1,61 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1981",
|
||||
"questionFrontendId": "1831",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 729267,
|
||||
"title": "Maximum Transaction Each Day",
|
||||
"titleSlug": "maximum-transaction-each-day",
|
||||
"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\": \"1.6K\", \"totalSubmission\": \"2.1K\", \"totalAcceptedRaw\": 1569, \"totalSubmissionRaw\": 2055, \"acRate\": \"76.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Transactions\": [\"transaction_id\", \"day\", \"amount\"]}, \"rows\": {\"Transactions\": [[8, \"2021-4-3 15:57:28\", 57], [9, \"2021-4-28 08:47:25\", 21], [1, \"2021-4-29 13:28:30\", 58], [5, \"2021-4-28 16:39:59\", 40], [6, \"2021-4-29 23:39:28\", 58]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Transactions (transaction_id int, day datetime, amount int)\"\n ],\n \"mssql\": [\n \"Create table Transactions (transaction_id int, day datetime, amount int)\"\n ],\n \"oraclesql\": [\n \"Create table Transactions (transaction_id int, day date, amount int)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD HH24:MI:SS'\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Transactions (transaction_id int, day datetime, amount int)",
|
||||
"Truncate table Transactions",
|
||||
"insert into Transactions (transaction_id, day, amount) values ('8', '2021-4-3 15:57:28', '57')",
|
||||
"insert into Transactions (transaction_id, day, amount) values ('9', '2021-4-28 08:47:25', '21')",
|
||||
"insert into Transactions (transaction_id, day, amount) values ('1', '2021-4-29 13:28:30', '58')",
|
||||
"insert into Transactions (transaction_id, day, amount) values ('5', '2021-4-28 16:39:59', '40')",
|
||||
"insert into Transactions (transaction_id, day, amount) values ('6', '2021-4-29 23:39:28', '58')"
|
||||
],
|
||||
"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\": [\"transaction_id\", \"day\", \"amount\"]}, \"rows\": {\"Transactions\": [[8, \"2021-4-3 15:57:28\", 57], [9, \"2021-4-28 08:47:25\", 21], [1, \"2021-4-29 13:28:30\", 58], [5, \"2021-4-28 16:39:59\", 40], [6, \"2021-4-29 23:39:28\", 58]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,81 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1959",
|
||||
"questionFrontendId": "1810",
|
||||
"categoryTitle": "Algorithms",
|
||||
"boundTopicId": 692912,
|
||||
"title": "Minimum Path Cost in a Hidden Grid",
|
||||
"titleSlug": "minimum-path-cost-in-a-hidden-grid",
|
||||
"content": null,
|
||||
"translatedTitle": "隐藏网格下的最小消耗路径",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 4,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Depth-First Search",
|
||||
"slug": "depth-first-search",
|
||||
"translatedName": "深度优先搜索",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Breadth-First Search",
|
||||
"slug": "breadth-first-search",
|
||||
"translatedName": "广度优先搜索",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Graph",
|
||||
"slug": "graph",
|
||||
"translatedName": "图",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Interactive",
|
||||
"slug": "interactive",
|
||||
"translatedName": "交互",
|
||||
"__typename": "TopicTagNode"
|
||||
},
|
||||
{
|
||||
"name": "Heap (Priority Queue)",
|
||||
"slug": "heap-priority-queue",
|
||||
"translatedName": "堆(优先队列)",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"263\", \"totalSubmission\": \"426\", \"totalAcceptedRaw\": 263, \"totalSubmissionRaw\": 426, \"acRate\": \"61.7%\"}",
|
||||
"hints": [
|
||||
"The grid is at a maximum 100 x 100, so it is clever to assume that the robot's initial cell is grid[101][101]",
|
||||
"Run a DFS from the robot's position to make sure that you can reach the target, otherwise you should return -1.",
|
||||
"Now that you are sure you can reach the target and that you know the grid, run Dijkstra to find the minimum cost."
|
||||
],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "[[2,3],[1,1]]\n0\n1\n1\n0",
|
||||
"metaData": "{\n \"name\": \"findShortestPath\",\n \"params\": [\n {\n \"type\": \"integer[][]\",\n \"name\": \"grid\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"r1\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"c1\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"r2\"\n },\n {\n \"type\": \"integer\",\n \"name\": \"c2\"\n }\n ],\n \"return\": {\n \"type\": \"integer\"\n },\n \"manual\": true,\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"csharp\",\n \"javascript\",\n \"python3\"\n ]\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": "[[2,3],[1,1]]\n0\n1\n1\n0\n[[0,3,1],[3,4,2],[1,2,0]]\n2\n0\n0\n2\n[[1,0],[0,1]]\n0\n0\n1\n1",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,63 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1842",
|
||||
"questionFrontendId": "1699",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 537266,
|
||||
"title": "Number of Calls Between Two Persons",
|
||||
"titleSlug": "number-of-calls-between-two-persons",
|
||||
"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\": \"2.9K\", \"totalSubmission\": \"3.6K\", \"totalAcceptedRaw\": 2882, \"totalSubmissionRaw\": 3607, \"acRate\": \"79.9%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Calls\":[\"from_id\",\"to_id\",\"duration\"]},\"rows\":{\"Calls\":[[1,2,59],[2,1,11],[1,3,20],[3,4,100],[3,4,200],[3,4,200],[4,3,499]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Calls (from_id int, to_id int, duration int)\"\n ],\n \"mssql\": [\n \"Create table Calls (from_id int, to_id int, duration int)\"\n ],\n \"oraclesql\": [\n \"Create table Calls (from_id int, to_id int, duration int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Calls (from_id int, to_id int, duration int)",
|
||||
"Truncate table Calls",
|
||||
"insert into Calls (from_id, to_id, duration) values ('1', '2', '59')",
|
||||
"insert into Calls (from_id, to_id, duration) values ('2', '1', '11')",
|
||||
"insert into Calls (from_id, to_id, duration) values ('1', '3', '20')",
|
||||
"insert into Calls (from_id, to_id, duration) values ('3', '4', '100')",
|
||||
"insert into Calls (from_id, to_id, duration) values ('3', '4', '200')",
|
||||
"insert into Calls (from_id, to_id, duration) values ('3', '4', '200')",
|
||||
"insert into Calls (from_id, to_id, duration) values ('4', '3', '499')"
|
||||
],
|
||||
"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\":{\"Calls\":[\"from_id\",\"to_id\",\"duration\"]},\"rows\":{\"Calls\":[[1,2,59],[2,1,11],[1,3,20],[3,4,100],[3,4,200],[3,4,200],[4,3,499]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,70 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "2014",
|
||||
"questionFrontendId": "1867",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 781374,
|
||||
"title": "Orders With Maximum Quantity Above Average",
|
||||
"titleSlug": "orders-with-maximum-quantity-above-average",
|
||||
"content": null,
|
||||
"translatedTitle": "最大数量高于平均水平的订单",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 3,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.3K\", \"totalSubmission\": \"1.8K\", \"totalAcceptedRaw\": 1326, \"totalSubmissionRaw\": 1824, \"acRate\": \"72.7%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"OrdersDetails\": [\"order_id\", \"product_id\", \"quantity\"]}, \"rows\": {\"OrdersDetails\": [[1 ,1, 12], [1 ,2, 10], [1 ,3, 15], [2 ,1, 8], [2 ,4, 4], [2 ,5, 6], [3 , 3, 5], [3 ,4, 18], [4 ,5, 2], [4 ,6, 8], [5 ,7, 9], [5 ,8, 9], [3 ,9, 20], [2 ,9, 4]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists OrdersDetails (order_id int, product_id int, quantity int)\"\n ],\n \"mssql\": [\n \"Create table OrdersDetails (order_id int, product_id int, quantity int)\"\n ],\n \"oraclesql\": [\n \"Create table OrdersDetails (order_id int, product_id int, quantity int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists OrdersDetails (order_id int, product_id int, quantity int)",
|
||||
"Truncate table OrdersDetails",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('1', '1', '12')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('1', '2', '10')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('1', '3', '15')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '1', '8')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '4', '4')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '5', '6')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('3', '3', '5')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('3', '4', '18')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('4', '5', '2')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('4', '6', '8')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('5', '7', '9')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('5', '8', '9')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('3', '9', '20')",
|
||||
"insert into OrdersDetails (order_id, product_id, quantity) values ('2', '9', '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\": {\"OrdersDetails\": [\"order_id\", \"product_id\", \"quantity\"]}, \"rows\": {\"OrdersDetails\": [[1 ,1, 12], [1 ,2, 10], [1 ,3, 15], [2 ,1, 8], [2 ,4, 4], [2 ,5, 6], [3 , 3, 5], [3 ,4, 18], [4 ,5, 2], [4 ,6, 8], [5 ,7, 9], [5 ,8, 9], [3 ,9, 20], [2 ,9, 4]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
74
算法题(国内版)/originData/[no content]page-recommendations-ii.json
Normal file
74
算法题(国内版)/originData/[no content]page-recommendations-ii.json
Normal file
@ -0,0 +1,74 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "2046",
|
||||
"questionFrontendId": "1892",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 826248,
|
||||
"title": "Page Recommendations II",
|
||||
"titleSlug": "page-recommendations-ii",
|
||||
"content": null,
|
||||
"translatedTitle": "页面推荐Ⅱ",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 6,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.1K\", \"totalSubmission\": \"3K\", \"totalAcceptedRaw\": 1067, \"totalSubmissionRaw\": 2964, \"acRate\": \"36.0%\"}",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1773",
|
||||
"questionFrontendId": "1633",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 460450,
|
||||
"title": "Percentage of Users Attended a Contest",
|
||||
"titleSlug": "percentage-of-users-attended-a-contest",
|
||||
"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\": \"3.7K\", \"totalSubmission\": \"5.6K\", \"totalAcceptedRaw\": 3654, \"totalSubmissionRaw\": 5621, \"acRate\": \"65.0%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Users\":[\"user_id\",\"user_name\"],\"Register\":[\"contest_id\",\"user_id\"]},\"rows\":{\"Users\":[[6,\"Alice\"],[2,\"Bob\"],[7,\"Alex\"]],\"Register\":[[215,6],[209,2],[208,2],[210,6],[208,6],[209,7],[209,6],[215,7],[208,7],[210,2],[207,2],[210,7]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Users (user_id int, user_name varchar(20))\",\n \"Create table If Not Exists Register (contest_id int, user_id int)\"\n ],\n \"mssql\": [\n \"Create table Users (user_id int, user_name varchar(20))\",\n \"Create table Register (contest_id int, user_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Users (user_id int, user_name varchar(20))\",\n \"Create table Register (contest_id int, user_id int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Users (user_id int, user_name varchar(20))",
|
||||
"Create table If Not Exists Register (contest_id int, user_id int)",
|
||||
"Truncate table Users",
|
||||
"insert into Users (user_id, user_name) values ('6', 'Alice')",
|
||||
"insert into Users (user_id, user_name) values ('2', 'Bob')",
|
||||
"insert into Users (user_id, user_name) values ('7', 'Alex')",
|
||||
"Truncate table Register",
|
||||
"insert into Register (contest_id, user_id) values ('215', '6')",
|
||||
"insert into Register (contest_id, user_id) values ('209', '2')",
|
||||
"insert into Register (contest_id, user_id) values ('208', '2')",
|
||||
"insert into Register (contest_id, user_id) values ('210', '6')",
|
||||
"insert into Register (contest_id, user_id) values ('208', '6')",
|
||||
"insert into Register (contest_id, user_id) values ('209', '7')",
|
||||
"insert into Register (contest_id, user_id) values ('209', '6')",
|
||||
"insert into Register (contest_id, user_id) values ('215', '7')",
|
||||
"insert into Register (contest_id, user_id) values ('208', '7')",
|
||||
"insert into Register (contest_id, user_id) values ('210', '2')",
|
||||
"insert into Register (contest_id, user_id) values ('207', '2')",
|
||||
"insert into Register (contest_id, user_id) values ('210', '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\":{\"Users\":[\"user_id\",\"user_name\"],\"Register\":[\"contest_id\",\"user_id\"]},\"rows\":{\"Users\":[[6,\"Alice\"],[2,\"Bob\"],[7,\"Alex\"]],\"Register\":[[215,6],[209,2],[208,2],[210,6],[208,6],[209,7],[209,6],[215,7],[208,7],[210,2],[207,2],[210,7]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1942",
|
||||
"questionFrontendId": "1789",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 654757,
|
||||
"title": "Primary Department for Each Employee",
|
||||
"titleSlug": "primary-department-for-each-employee",
|
||||
"content": null,
|
||||
"translatedTitle": "员工的直属部门",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 6,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"2.6K\", \"totalSubmission\": \"3.6K\", \"totalAcceptedRaw\": 2578, \"totalSubmissionRaw\": 3630, \"acRate\": \"71.0%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Employee\":[\"employee_id\",\"department_id\",\"primary_flag\"]},\"rows\":{\"Employee\":[[\"1\",\"1\",\"N\"],[\"2\",\"1\",\"Y\"],[\"2\",\"2\",\"N\"],[\"3\",\"3\",\"N\"],[\"4\",\"2\",\"N\"],[\"4\",\"3\",\"Y\"],[\"4\",\"4\",\"N\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employee (employee_id int, department_id int, primary_flag ENUM('Y','N'))\"\n ],\n \"mssql\": [\n \"Create table Employee (employee_id int, department_id int, primary_flag varchar(1) not null check(primary_flag in ('Y', 'N')))\"\n ],\n \"oraclesql\": [\n \"Create table Employee (employee_id int, department_id int, primary_flag varchar(1) not null check(primary_flag in ('Y', 'N')))\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Employee (employee_id int, department_id int, primary_flag ENUM('Y','N'))",
|
||||
"Truncate table Employee",
|
||||
"insert into Employee (employee_id, department_id, primary_flag) values ('1', '1', 'N')",
|
||||
"insert into Employee (employee_id, department_id, primary_flag) values ('2', '1', 'Y')",
|
||||
"insert into Employee (employee_id, department_id, primary_flag) values ('2', '2', 'N')",
|
||||
"insert into Employee (employee_id, department_id, primary_flag) values ('3', '3', 'N')",
|
||||
"insert into Employee (employee_id, department_id, primary_flag) values ('4', '2', 'N')",
|
||||
"insert into Employee (employee_id, department_id, primary_flag) values ('4', '3', 'Y')",
|
||||
"insert into Employee (employee_id, department_id, primary_flag) values ('4', '4', 'N')"
|
||||
],
|
||||
"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\",\"department_id\",\"primary_flag\"]},\"rows\":{\"Employee\":[[\"1\",\"1\",\"N\"],[\"2\",\"1\",\"Y\"],[\"2\",\"2\",\"N\"],[\"3\",\"3\",\"N\"],[\"4\",\"2\",\"N\"],[\"4\",\"3\",\"Y\"],[\"4\",\"4\",\"N\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,61 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1926",
|
||||
"questionFrontendId": "1777",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 630073,
|
||||
"title": "Product's Price for Each Store",
|
||||
"titleSlug": "products-price-for-each-store",
|
||||
"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\": \"6.7K\", \"totalSubmission\": \"8.5K\", \"totalAcceptedRaw\": 6708, \"totalSubmissionRaw\": 8527, \"acRate\": \"78.7%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Products\":[\"product_id\",\"store\",\"price\"]},\"rows\":{\"Products\":[[\"0\",\"store1\",\"95\"],[\"0\",\"store3\",\"105\"],[\"0\",\"store2\",\"100\"],[\"1\",\"store1\",\"70\"],[\"1\",\"store3\",\"80\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Products (product_id int, store ENUM('store1', 'store2', 'store3'), price int)\"\n ],\n \"mssql\": [\n \"Create table Products (product_id int, store varchar(6) not null check(store in ('store1', 'store2', 'store3')), price int)\"\n ],\n \"oraclesql\": [\n \"Create table Products (product_id int, store varchar(6) not null check(store in ('store1', 'store2', 'store3')), price int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Products (product_id int, store ENUM('store1', 'store2', 'store3'), price int)",
|
||||
"Truncate table Products",
|
||||
"insert into Products (product_id, store, price) values ('0', 'store1', '95')",
|
||||
"insert into Products (product_id, store, price) values ('0', 'store3', '105')",
|
||||
"insert into Products (product_id, store, price) values ('0', 'store2', '100')",
|
||||
"insert into Products (product_id, store, price) values ('1', 'store1', '70')",
|
||||
"insert into Products (product_id, store, price) values ('1', 'store3', '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\":{\"Products\":[\"product_id\",\"store\",\"price\"]},\"rows\":{\"Products\":[[\"0\",\"store1\",\"95\"],[\"0\",\"store3\",\"105\"],[\"0\",\"store2\",\"100\"],[\"1\",\"store1\",\"70\"],[\"1\",\"store3\",\"80\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1821",
|
||||
"questionFrontendId": "1677",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 510843,
|
||||
"title": "Product's Worth Over Invoices",
|
||||
"titleSlug": "products-worth-over-invoices",
|
||||
"content": null,
|
||||
"translatedTitle": "发票中的产品金额",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 4,
|
||||
"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\": \"8K\", \"totalAcceptedRaw\": 2931, \"totalSubmissionRaw\": 7973, \"acRate\": \"36.8%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Product\":[\"product_id\",\"name\"],\"Invoice\":[\"invoice_id\",\"product_id\",\"rest\",\"paid\",\"canceled\",\"refunded\"]},\"rows\":{\"Product\":[[0,\"ham\"],[1,\"bacon\"]],\"Invoice\":[[23,0,2,0,5,0],[12,0,0,4,0,3],[1,1,1,1,0,1],[2,1,1,0,1,1],[3,1,0,1,1,1],[4,1,1,1,1,0]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Product(product_id int, name varchar(15))\",\n \"Create table If Not Exists Invoice(invoice_id int,product_id int,rest int, paid int, canceled int, refunded int)\"\n ],\n \"mssql\": [\n \"Create table Product(product_id int, name varchar(15))\",\n \"Create table Invoice(invoice_id int,product_id int,rest int, paid int, canceled int, refunded int)\"\n ],\n \"oraclesql\": [\n \"Create table Product(product_id int, name varchar(15))\",\n \"Create table Invoice(invoice_id int,product_id int,rest int, paid int, canceled int, refunded int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Product(product_id int, name varchar(15))",
|
||||
"Create table If Not Exists Invoice(invoice_id int,product_id int,rest int, paid int, canceled int, refunded int)",
|
||||
"Truncate table Product",
|
||||
"insert into Product (product_id, name) values ('0', 'ham')",
|
||||
"insert into Product (product_id, name) values ('1', 'bacon')",
|
||||
"Truncate table Invoice",
|
||||
"insert into Invoice (invoice_id, product_id, rest, paid, canceled, refunded) values ('23', '0', '2', '0', '5', '0')",
|
||||
"insert into Invoice (invoice_id, product_id, rest, paid, canceled, refunded) values ('12', '0', '0', '4', '0', '3')",
|
||||
"insert into Invoice (invoice_id, product_id, rest, paid, canceled, refunded) values ('1', '1', '1', '1', '0', '1')",
|
||||
"insert into Invoice (invoice_id, product_id, rest, paid, canceled, refunded) values ('2', '1', '1', '0', '1', '1')",
|
||||
"insert into Invoice (invoice_id, product_id, rest, paid, canceled, refunded) values ('3', '1', '0', '1', '1', '1')",
|
||||
"insert into Invoice (invoice_id, product_id, rest, paid, canceled, refunded) values ('4', '1', '1', '1', '1', '0')"
|
||||
],
|
||||
"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\",\"name\"],\"Invoice\":[\"invoice_id\",\"product_id\",\"rest\",\"paid\",\"canceled\",\"refunded\"]},\"rows\":{\"Product\":[[0,\"ham\"],[1,\"bacon\"]],\"Invoice\":[[23,0,2,0,5,0],[12,0,0,4,0,3],[1,1,1,1,0,1],[2,1,1,0,1,1],[3,1,0,1,1,1],[4,1,1,1,1,0]]}}",
|
||||
"__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
71
算法题(国内版)/originData/[no content]sellers-with-no-sales.json
Normal file
71
算法题(国内版)/originData/[no content]sellers-with-no-sales.json
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1749",
|
||||
"questionFrontendId": "1607",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 435433,
|
||||
"title": "Sellers With No Sales",
|
||||
"titleSlug": "sellers-with-no-sales",
|
||||
"content": null,
|
||||
"translatedTitle": "没有卖出的卖家",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 6,
|
||||
"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\": \"7.1K\", \"totalAcceptedRaw\": 3823, \"totalSubmissionRaw\": 7132, \"acRate\": \"53.6%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Customer\": [\"customer_id\", \"customer_name\"], \"Orders\": [\"order_id\", \"sale_date\", \"order_cost\", \"customer_id\", \"seller_id\"], \"Seller\": [\"seller_id\", \"seller_name\"]}, \"rows\": {\"Customer\": [[101, \"Alice\"], [102, \"Bob\"], [103, \"Charlie\"]], \"Orders\": [[1, \"2020-03-01\", 1500, 101, 1], [2, \"2020-05-25\", 2400, 102, 2], [3, \"2019-05-25\", 800, 101, 3], [4, \"2020-09-13\", 1000, 103, 2], [5, \"2019-02-11\", 700, 101, 2]], \"Seller\": [[1, \"Daniel\"], [2, \"Elizabeth\"], [3, \"Frank\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customer (customer_id int, customer_name varchar(20))\",\n \"Create table If Not Exists Orders (order_id int, sale_date date, order_cost int, customer_id int, seller_id int)\\n\",\n \"Create table If Not Exists Seller (seller_id int, seller_name varchar(20))\\n\"\n ],\n \"mssql\": [\n \"Create table Customer (customer_id int, customer_name varchar(20))\\n\",\n \"Create table Orders (order_id int, sale_date date, order_cost int, customer_id int, seller_id int)\\n\",\n \"Create table Seller (seller_id int, seller_name varchar(20))\\n\"\n ],\n \"oraclesql\": [\n \"Create table Customer (customer_id int, customer_name varchar(20))\\n\",\n \"Create table Orders (order_id int, sale_date date, order_cost int, customer_id int, seller_id int)\\n\",\n \"Create table Seller (seller_id int, seller_name varchar(20))\\n\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\\n\"\n ],\n \"database\": true,\n \"manual\": false\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Customer (customer_id int, customer_name varchar(20))",
|
||||
"Create table If Not Exists Orders (order_id int, sale_date date, order_cost int, customer_id int, seller_id int)\n",
|
||||
"Create table If Not Exists Seller (seller_id int, seller_name varchar(20))\n",
|
||||
"Truncate table Customer",
|
||||
"insert into Customer (customer_id, customer_name) values ('101', 'Alice')",
|
||||
"insert into Customer (customer_id, customer_name) values ('102', 'Bob')",
|
||||
"insert into Customer (customer_id, customer_name) values ('103', 'Charlie')",
|
||||
"Truncate table Orders",
|
||||
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('1', '2020-03-01', '1500', '101', '1')",
|
||||
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('2', '2020-05-25', '2400', '102', '2')",
|
||||
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('3', '2019-05-25', '800', '101', '3')",
|
||||
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('4', '2020-09-13', '1000', '103', '2')",
|
||||
"insert into Orders (order_id, sale_date, order_cost, customer_id, seller_id) values ('5', '2019-02-11', '700', '101', '2')",
|
||||
"Truncate table Seller",
|
||||
"insert into Seller (seller_id, seller_name) values ('1', 'Daniel')",
|
||||
"insert into Seller (seller_id, seller_name) values ('2', 'Elizabeth')",
|
||||
"insert into Seller (seller_id, seller_name) values ('3', 'Frank')"
|
||||
],
|
||||
"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\", \"customer_name\"], \"Orders\": [\"order_id\", \"sale_date\", \"order_cost\", \"customer_id\", \"seller_id\"], \"Seller\": [\"seller_id\", \"seller_name\"]}, \"rows\": {\"Customer\": [[101, \"Alice\"], [102, \"Bob\"], [103, \"Charlie\"]], \"Orders\": [[1, \"2020-03-01\", 1500, 101, 1], [2, \"2020-05-25\", 2400, 102, 2], [3, \"2019-05-25\", 800, 101, 3], [4, \"2020-09-13\", 1000, 103, 2], [5, \"2019-02-11\", 700, 101, 2]], \"Seller\": [[1, \"Daniel\"], [2, \"Elizabeth\"], [3, \"Frank\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
69
算法题(国内版)/originData/[no content]sort-linked-list-already-sorted-using-absolute-values.json
Normal file
69
算法题(国内版)/originData/[no content]sort-linked-list-already-sorted-using-absolute-values.json
Normal file
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
@ -0,0 +1,70 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1998",
|
||||
"questionFrontendId": "1843",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 754133,
|
||||
"title": "Suspicious Bank Accounts",
|
||||
"titleSlug": "suspicious-bank-accounts",
|
||||
"content": null,
|
||||
"translatedTitle": "可疑银行账户",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 9,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.3K\", \"totalSubmission\": \"2.7K\", \"totalAcceptedRaw\": 1305, \"totalSubmissionRaw\": 2714, \"acRate\": \"48.1%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Accounts\": [\"account_id\", \"max_income\"], \"Transactions\": [\"transaction_id\", \"account_id\", \"type\", \"amount\", \"day\"]}, \"rows\": {\"Accounts\": [[3, 21000], [4, 10400]], \"Transactions\": [[2, 3, \"Creditor\", 107100, \"2021-06-02 11:38:14\"], [4, 4, \"Creditor\", 10400, \"2021-06-20 12:39:18\"], [11, 4, \"Debtor\", 58800, \"2021-07-23 12:41:55\"], [1, 4, \"Creditor\", 49300, \"2021-05-03 16:11:04\"], [15, 3, \"Debtor\", 75500, \"2021-05-23 14:40:20\"], [10, 3, \"Creditor\", 102100, \"2021-06-15 10:37:16\"], [14, 4, \"Creditor\", 56300, \"2021-07-21 12:12:25\"], [19, 4, \"Debtor\", 101100, \"2021-05-09 15:21:49\"], [8, 3, \"Creditor\", 64900, \"2021-07-26 15:09:56\"], [7, 3, \"Creditor\", 90900, \"2021-06-14 11:23:07\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Accounts (account_id int, max_income int)\",\n \"Create table If Not Exists Transactions (transaction_id int, account_id int, type ENUM('creditor', 'debtor'), amount int, day datetime)\"\n ],\n \"mssql\": [\n \"Create table Accounts (account_id int, max_income int)\",\n \"Create table Transactions (transaction_id int, account_id int, type varchar(8) NOT NULL CHECK (type IN('creditor', 'debtor')), amount int, day datetime)\"\n ],\n \"oraclesql\": [\n \"Create table Accounts (account_id int, max_income int)\",\n \"Create table Transactions (transaction_id int, account_id int, type varchar(8) NOT NULL CHECK (type IN('Creditor', 'Debtor')), amount int, day date)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD HH24:MI:SS'\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Accounts (account_id int, max_income int)",
|
||||
"Create table If Not Exists Transactions (transaction_id int, account_id int, type ENUM('creditor', 'debtor'), amount int, day datetime)",
|
||||
"Truncate table Accounts",
|
||||
"insert into Accounts (account_id, max_income) values ('3', '21000')",
|
||||
"insert into Accounts (account_id, max_income) values ('4', '10400')",
|
||||
"Truncate table Transactions",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('2', '3', 'Creditor', '107100', '2021-06-02 11:38:14')",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('4', '4', 'Creditor', '10400', '2021-06-20 12:39:18')",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('11', '4', 'Debtor', '58800', '2021-07-23 12:41:55')",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('1', '4', 'Creditor', '49300', '2021-05-03 16:11:04')",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('15', '3', 'Debtor', '75500', '2021-05-23 14:40:20')",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('10', '3', 'Creditor', '102100', '2021-06-15 10:37:16')",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('14', '4', 'Creditor', '56300', '2021-07-21 12:12:25')",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('19', '4', 'Debtor', '101100', '2021-05-09 15:21:49')",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('8', '3', 'Creditor', '64900', '2021-07-26 15:09:56')",
|
||||
"insert into Transactions (transaction_id, account_id, type, amount, day) values ('7', '3', 'Creditor', '90900', '2021-06-14 11:23: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\": {\"Accounts\": [\"account_id\", \"max_income\"], \"Transactions\": [\"transaction_id\", \"account_id\", \"type\", \"amount\", \"day\"]}, \"rows\": {\"Accounts\": [[3, 21000], [4, 10400]], \"Transactions\": [[2, 3, \"Creditor\", 107100, \"2021-06-02 11:38:14\"], [4, 4, \"Creditor\", 10400, \"2021-06-20 12:39:18\"], [11, 4, \"Debtor\", 58800, \"2021-07-23 12:41:55\"], [1, 4, \"Creditor\", 49300, \"2021-05-03 16:11:04\"], [15, 3, \"Debtor\", 75500, \"2021-05-23 14:40:20\"], [10, 3, \"Creditor\", 102100, \"2021-06-15 10:37:16\"], [14, 4, \"Creditor\", 56300, \"2021-07-21 12:12:25\"], [19, 4, \"Debtor\", 101100, \"2021-05-09 15:21:49\"], [8, 3, \"Creditor\", 64900, \"2021-07-26 15:09:56\"], [7, 3, \"Creditor\", 90900, \"2021-06-14 11:23:07\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
79
算法题(国内版)/originData/[no content]the-most-frequently-ordered-products-for-each-customer.json
Normal file
79
算法题(国内版)/originData/[no content]the-most-frequently-ordered-products-for-each-customer.json
Normal file
@ -0,0 +1,79 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1735",
|
||||
"questionFrontendId": "1596",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 425582,
|
||||
"title": "The Most Frequently Ordered Products for Each Customer",
|
||||
"titleSlug": "the-most-frequently-ordered-products-for-each-customer",
|
||||
"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.2K\", \"totalSubmission\": \"4.3K\", \"totalAcceptedRaw\": 3222, \"totalSubmissionRaw\": 4284, \"acRate\": \"75.2%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"name\"],\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"product_id\"],\"Products\":[\"product_id\",\"product_name\",\"price\"]},\"rows\":{\"Customers\":[[1,\"Alice\"],[2,\"Bob\"],[3,\"Tom\"],[4,\"Jerry\"],[5,\"John\"]],\"Orders\":[[1,\"2020-07-31\",1,1],[2,\"2020-7-30\",2,2],[3,\"2020-08-29\",3,3],[4,\"2020-07-29\",4,1],[5,\"2020-06-10\",1,2],[6,\"2020-08-01\",2,1],[7,\"2020-08-01\",3,3],[8,\"2020-08-03\",1,2],[9,\"2020-08-07\",2,3],[10,\"2020-07-15\",1,2]],\"Products\":[[1,\"keyboard\",120],[2,\"mouse\",80],[3,\"screen\",600],[4,\"hard disk\",450]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, name varchar(10))\",\n \"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, product_id int)\",\n \"Create table If Not Exists Products (product_id int, product_name varchar(20), price int)\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, name varchar(10))\",\n \"Create table Orders (order_id int, order_date date, customer_id int, product_id int)\",\n \"Create table Products (product_id int, product_name varchar(20), price int)\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, name varchar(10))\",\n \"Create table Orders (order_id int, order_date date, customer_id int, product_id int)\",\n \"Create table Products (product_id int, product_name varchar(20), 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 Customers (customer_id int, name varchar(10))",
|
||||
"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, product_id int)",
|
||||
"Create table If Not Exists Products (product_id int, product_name varchar(20), price int)",
|
||||
"Truncate table Customers",
|
||||
"insert into Customers (customer_id, name) values ('1', 'Alice')",
|
||||
"insert into Customers (customer_id, name) values ('2', 'Bob')",
|
||||
"insert into Customers (customer_id, name) values ('3', 'Tom')",
|
||||
"insert into Customers (customer_id, name) values ('4', 'Jerry')",
|
||||
"insert into Customers (customer_id, name) values ('5', 'John')",
|
||||
"Truncate table Orders",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('1', '2020-07-31', '1', '1')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('2', '2020-7-30', '2', '2')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('3', '2020-08-29', '3', '3')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('4', '2020-07-29', '4', '1')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('5', '2020-06-10', '1', '2')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('6', '2020-08-01', '2', '1')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('7', '2020-08-01', '3', '3')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('8', '2020-08-03', '1', '2')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('9', '2020-08-07', '2', '3')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('10', '2020-07-15', '1', '2')",
|
||||
"Truncate table Products",
|
||||
"insert into Products (product_id, product_name, price) values ('1', 'keyboard', '120')",
|
||||
"insert into Products (product_id, product_name, price) values ('2', 'mouse', '80')",
|
||||
"insert into Products (product_id, product_name, price) values ('3', 'screen', '600')",
|
||||
"insert into Products (product_id, product_name, price) values ('4', 'hard disk', '450')"
|
||||
],
|
||||
"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\"],\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"product_id\"],\"Products\":[\"product_id\",\"product_name\",\"price\"]},\"rows\":{\"Customers\":[[1,\"Alice\"],[2,\"Bob\"],[3,\"Tom\"],[4,\"Jerry\"],[5,\"John\"]],\"Orders\":[[1,\"2020-07-31\",1,1],[2,\"2020-7-30\",2,2],[3,\"2020-08-29\",3,3],[4,\"2020-07-29\",4,1],[5,\"2020-06-10\",1,2],[6,\"2020-08-01\",2,1],[7,\"2020-08-01\",3,3],[8,\"2020-08-03\",1,2],[9,\"2020-08-07\",2,3],[10,\"2020-07-15\",1,2]],\"Products\":[[1,\"keyboard\",120],[2,\"mouse\",80],[3,\"screen\",600],[4,\"hard disk\",450]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1688",
|
||||
"questionFrontendId": "1549",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 373828,
|
||||
"title": "The Most Recent Orders for Each Product",
|
||||
"titleSlug": "the-most-recent-orders-for-each-product",
|
||||
"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\": \"3.2K\", \"totalSubmission\": \"4.8K\", \"totalAcceptedRaw\": 3215, \"totalSubmissionRaw\": 4780, \"acRate\": \"67.3%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"name\"],\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"product_id\"],\"Products\":[\"product_id\",\"product_name\",\"price\"]},\"rows\":{\"Customers\":[[1,\"Winston\"],[2,\"Jonathan\"],[3,\"Annabelle\"],[4,\"Marwan\"],[5,\"Khaled\"]],\"Orders\":[[1,\"2020-07-31\",1,1],[2,\"2020-7-30\",2,2],[3,\"2020-08-29\",3,3],[4,\"2020-07-29\",4,1],[5,\"2020-06-10\",1,2],[6,\"2020-08-01\",2,1],[7,\"2020-08-01\",3,1],[8,\"2020-08-03\",1,2],[9,\"2020-08-07\",2,3],[10,\"2020-07-15\",1,2]],\"Products\":[[1,\"keyboard\",120],[2,\"mouse\",80],[3,\"screen\",600],[4,\"hard disk\",450]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, name varchar(10))\",\n \"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, product_id int)\",\n \"Create table If Not Exists Products (product_id int, product_name varchar(20), price int)\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, name varchar(10))\",\n \"Create table Orders (order_id int, order_date date, customer_id int, product_id int)\",\n \"Create table Products (product_id int, product_name varchar(20), price int)\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, name varchar(10))\",\n \"Create table Orders (order_id int, order_date date, customer_id int, product_id int)\",\n \"Create table Products (product_id int, product_name varchar(20), 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 Customers (customer_id int, name varchar(10))",
|
||||
"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, product_id int)",
|
||||
"Create table If Not Exists Products (product_id int, product_name varchar(20), price int)",
|
||||
"Truncate table Customers",
|
||||
"insert into Customers (customer_id, name) values ('1', 'Winston')",
|
||||
"insert into Customers (customer_id, name) values ('2', 'Jonathan')",
|
||||
"insert into Customers (customer_id, name) values ('3', 'Annabelle')",
|
||||
"insert into Customers (customer_id, name) values ('4', 'Marwan')",
|
||||
"insert into Customers (customer_id, name) values ('5', 'Khaled')",
|
||||
"Truncate table Orders",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('1', '2020-07-31', '1', '1')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('2', '2020-7-30', '2', '2')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('3', '2020-08-29', '3', '3')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('4', '2020-07-29', '4', '1')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('5', '2020-06-10', '1', '2')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('6', '2020-08-01', '2', '1')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('7', '2020-08-01', '3', '1')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('8', '2020-08-03', '1', '2')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('9', '2020-08-07', '2', '3')",
|
||||
"insert into Orders (order_id, order_date, customer_id, product_id) values ('10', '2020-07-15', '1', '2')",
|
||||
"Truncate table Products",
|
||||
"insert into Products (product_id, product_name, price) values ('1', 'keyboard', '120')",
|
||||
"insert into Products (product_id, product_name, price) values ('2', 'mouse', '80')",
|
||||
"insert into Products (product_id, product_name, price) values ('3', 'screen', '600')",
|
||||
"insert into Products (product_id, product_name, price) values ('4', 'hard disk', '450')"
|
||||
],
|
||||
"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\"],\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"product_id\"],\"Products\":[\"product_id\",\"product_name\",\"price\"]},\"rows\":{\"Customers\":[[1,\"Winston\"],[2,\"Jonathan\"],[3,\"Annabelle\"],[4,\"Marwan\"],[5,\"Khaled\"]],\"Orders\":[[1,\"2020-07-31\",1,1],[2,\"2020-7-30\",2,2],[3,\"2020-08-29\",3,3],[4,\"2020-07-29\",4,1],[5,\"2020-06-10\",1,2],[6,\"2020-08-01\",2,1],[7,\"2020-08-01\",3,1],[8,\"2020-08-03\",1,2],[9,\"2020-08-07\",2,3],[10,\"2020-07-15\",1,2]],\"Products\":[[1,\"keyboard\",120],[2,\"mouse\",80],[3,\"screen\",600],[4,\"hard disk\",450]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1671",
|
||||
"questionFrontendId": "1532",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 352944,
|
||||
"title": "The Most Recent Three Orders",
|
||||
"titleSlug": "the-most-recent-three-orders",
|
||||
"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\": \"4K\", \"totalSubmission\": \"6.4K\", \"totalAcceptedRaw\": 4011, \"totalSubmissionRaw\": 6433, \"acRate\": \"62.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Customers\":[\"customer_id\",\"name\"],\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"cost\"]},\"rows\":{\"Customers\":[[1,\"Winston\"],[2,\"Jonathan\"],[3,\"Annabelle\"],[4,\"Marwan\"],[5,\"Khaled\"]],\"Orders\":[[1,\"2020-07-31\",1,30],[2,\"2020-7-30\",2,40],[3,\"2020-07-31\",3,70],[4,\"2020-07-29\",4,100],[5,\"2020-06-10\",1,1010],[6,\"2020-08-01\",2,102],[7,\"2020-08-01\",3,111],[8,\"2020-08-03\",1,99],[9,\"2020-08-07\",2,32],[10,\"2020-07-15\",1,2]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Customers (customer_id int, name varchar(10))\",\n \"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, cost int)\"\n ],\n \"mssql\": [\n \"Create table Customers (customer_id int, name varchar(10))\",\n \"Create table Orders (order_id int, order_date date, customer_id int, cost int)\"\n ],\n \"oraclesql\": [\n \"Create table Customers (customer_id int, name varchar(10))\",\n \"Create table Orders (order_id int, order_date date, customer_id int, cost 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(10))",
|
||||
"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, cost int)",
|
||||
"Truncate table Customers",
|
||||
"insert into Customers (customer_id, name) values ('1', 'Winston')",
|
||||
"insert into Customers (customer_id, name) values ('2', 'Jonathan')",
|
||||
"insert into Customers (customer_id, name) values ('3', 'Annabelle')",
|
||||
"insert into Customers (customer_id, name) values ('4', 'Marwan')",
|
||||
"insert into Customers (customer_id, name) values ('5', 'Khaled')",
|
||||
"Truncate table Orders",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('1', '2020-07-31', '1', '30')",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('2', '2020-7-30', '2', '40')",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('3', '2020-07-31', '3', '70')",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('4', '2020-07-29', '4', '100')",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('5', '2020-06-10', '1', '1010')",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('6', '2020-08-01', '2', '102')",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('7', '2020-08-01', '3', '111')",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('8', '2020-08-03', '1', '99')",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('9', '2020-08-07', '2', '32')",
|
||||
"insert into Orders (order_id, order_date, customer_id, cost) values ('10', '2020-07-15', '1', '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\":{\"Customers\":[\"customer_id\",\"name\"],\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"cost\"]},\"rows\":{\"Customers\":[[1,\"Winston\"],[2,\"Jonathan\"],[3,\"Annabelle\"],[4,\"Marwan\"],[5,\"Khaled\"]],\"Orders\":[[1,\"2020-07-31\",1,30],[2,\"2020-7-30\",2,40],[3,\"2020-07-31\",3,70],[4,\"2020-07-29\",4,100],[5,\"2020-06-10\",1,1010],[6,\"2020-08-01\",2,102],[7,\"2020-08-01\",3,111],[8,\"2020-08-03\",1,99],[9,\"2020-08-07\",2,32],[10,\"2020-07-15\",1,2]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
60
算法题(国内版)/originData/[no content]the-number-of-employees-which-report-to-each-employee.json
Normal file
60
算法题(国内版)/originData/[no content]the-number-of-employees-which-report-to-each-employee.json
Normal file
@ -0,0 +1,60 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1882",
|
||||
"questionFrontendId": "1731",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 572194,
|
||||
"title": "The Number of Employees Which Report to Each Employee",
|
||||
"titleSlug": "the-number-of-employees-which-report-to-each-employee",
|
||||
"content": null,
|
||||
"translatedTitle": "每位经理的下属员工数量",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 6,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": null,
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"2.8K\", \"totalSubmission\": \"6.2K\", \"totalAcceptedRaw\": 2828, \"totalSubmissionRaw\": 6214, \"acRate\": \"45.5%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Employees\":[\"employee_id\",\"name\",\"reports_to\",\"age\"]},\"rows\":{\"Employees\":[[9,\"Hercy\",null,43],[6,\"Alice\",9,41],[4,\"Bob\",9,36],[2,\"Winston\",null,37]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employees(employee_id int, name varchar(20), reports_to int, age int)\"\n ],\n \"mssql\": [\n \"Create table Employees(employee_id int, name varchar(20), reports_to int, age int)\"\n ],\n \"oraclesql\": [\n \"Create table Employees(employee_id int, name varchar(20), reports_to int, age int)\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Employees(employee_id int, name varchar(20), reports_to int, age int)",
|
||||
"Truncate table Employees",
|
||||
"insert into Employees (employee_id, name, reports_to, age) values ('9', 'Hercy', 'None', '43')",
|
||||
"insert into Employees (employee_id, name, reports_to, age) values ('6', 'Alice', '9', '41')",
|
||||
"insert into Employees (employee_id, name, reports_to, age) values ('4', 'Bob', '9', '36')",
|
||||
"insert into Employees (employee_id, name, reports_to, age) values ('2', 'Winston', 'None', '37')"
|
||||
],
|
||||
"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\",\"name\",\"reports_to\",\"age\"]},\"rows\":{\"Employees\":[[9,\"Hercy\",null,43],[6,\"Alice\",9,41],[4,\"Bob\",9,36],[2,\"Winston\",null,37]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1712",
|
||||
"questionFrontendId": "1565",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 393668,
|
||||
"title": "Unique Orders and Customers Per Month",
|
||||
"titleSlug": "unique-orders-and-customers-per-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\": \"4.4K\", \"totalSubmission\": \"5.9K\", \"totalAcceptedRaw\": 4358, \"totalSubmissionRaw\": 5936, \"acRate\": \"73.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"invoice\"]},\"rows\":{\"Orders\":[[1,\"2020-09-15\",1,30],[2,\"2020-09-17\",2,90],[3,\"2020-10-06\",3,20],[4,\"2020-10-20\",3,21],[5,\"2020-11-10\",1,10],[6,\"2020-11-21\",2,15],[7,\"2020-12-01\",4,55],[8,\"2020-12-03\",4,77],[9,\"2021-01-07\",3,31],[10,\"2021-01-15\",2,20]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Orders (order_id int, order_date date, customer_id int, invoice int)\"\n ],\n \"mssql\": [\n \"Create table Orders (order_id int, order_date date, customer_id int, invoice int)\"\n ],\n \"oraclesql\": [\n \"Create table Orders (order_id int, order_date date, customer_id int, invoice 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 Orders (order_id int, order_date date, customer_id int, invoice int)",
|
||||
"Truncate table Orders",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('1', '2020-09-15', '1', '30')",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('2', '2020-09-17', '2', '90')",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('3', '2020-10-06', '3', '20')",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('4', '2020-10-20', '3', '21')",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('5', '2020-11-10', '1', '10')",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('6', '2020-11-21', '2', '15')",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('7', '2020-12-01', '4', '55')",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('8', '2020-12-03', '4', '77')",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('9', '2021-01-07', '3', '31')",
|
||||
"insert into Orders (order_id, order_date, customer_id, invoice) values ('10', '2021-01-15', '2', '20')"
|
||||
],
|
||||
"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\":{\"Orders\":[\"order_id\",\"order_date\",\"customer_id\",\"invoice\"]},\"rows\":{\"Orders\":[[1,\"2020-09-15\",1,30],[2,\"2020-09-17\",2,90],[3,\"2020-10-06\",3,20],[4,\"2020-10-20\",3,21],[5,\"2020-11-10\",1,10],[6,\"2020-11-21\",2,15],[7,\"2020-12-01\",4,55],[8,\"2020-12-03\",4,77],[9,\"2021-01-07\",3,31],[10,\"2021-01-15\",2,20]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
68
算法题(国内版)/originData/[no content]warehouse-manager.json
Normal file
68
算法题(国内版)/originData/[no content]warehouse-manager.json
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1718",
|
||||
"questionFrontendId": "1571",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 400825,
|
||||
"title": "Warehouse Manager",
|
||||
"titleSlug": "warehouse-manager",
|
||||
"content": null,
|
||||
"translatedTitle": "仓库经理",
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Easy",
|
||||
"likes": 6,
|
||||
"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\": \"5.8K\", \"totalAcceptedRaw\": 4385, \"totalSubmissionRaw\": 5753, \"acRate\": \"76.2%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Warehouse\": [\"name\", \"product_id\", \"units\"], \"Products\": [\"product_id\", \"product_name\", \"Width\", \"Length\", \"Height\"]}, \"rows\": {\"Warehouse\": [[\"LCHouse1\", 1, 1], [\"LCHouse1\", 2, 10], [\"LCHouse1\", 3, 5], [\"LCHouse2\", 1, 2], [\"LCHouse2\", 2, 2], [\"LCHouse3\", 4, 1]], \"Products\": [[1, \"LC-TV\", 5, 50, 40], [2, \"LC-KeyChain\", 5, 5, 5], [3, \"LC-Phone\", 2, 10, 10], [4, \"LC-T-Shirt\", 4, 10, 20]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Warehouse (name varchar(50), product_id int, units int)\\n\",\n \"Create table If Not Exists Products (product_id int, product_name varchar(50), Width int,Length int,Height int)\"\n ],\n \"mssql\": [\n \"Create table Warehouse (name varchar(50), product_id int, units int)\\n\",\n \"Create table Products (product_id int, product_name varchar(50), Width int,Length int,Height int)\\n\"\n ],\n \"oraclesql\": [\n \"Create table Warehouse (name varchar(50), product_id int, units int)\\n\",\n \"Create table Products (product_id int, product_name varchar(50), Width int,Length int,Height int)\\n\"\n ],\n \"database\": true\n}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Warehouse (name varchar(50), product_id int, units int)\n",
|
||||
"Create table If Not Exists Products (product_id int, product_name varchar(50), Width int,Length int,Height int)",
|
||||
"Truncate table Warehouse",
|
||||
"insert into Warehouse (name, product_id, units) values ('LCHouse1', '1', '1')",
|
||||
"insert into Warehouse (name, product_id, units) values ('LCHouse1', '2', '10')",
|
||||
"insert into Warehouse (name, product_id, units) values ('LCHouse1', '3', '5')",
|
||||
"insert into Warehouse (name, product_id, units) values ('LCHouse2', '1', '2')",
|
||||
"insert into Warehouse (name, product_id, units) values ('LCHouse2', '2', '2')",
|
||||
"insert into Warehouse (name, product_id, units) values ('LCHouse3', '4', '1')",
|
||||
"Truncate table Products",
|
||||
"insert into Products (product_id, product_name, Width, Length, Height) values ('1', 'LC-TV', '5', '50', '40')",
|
||||
"insert into Products (product_id, product_name, Width, Length, Height) values ('2', 'LC-KeyChain', '5', '5', '5')",
|
||||
"insert into Products (product_id, product_name, Width, Length, Height) values ('3', 'LC-Phone', '2', '10', '10')",
|
||||
"insert into Products (product_id, product_name, Width, Length, Height) values ('4', 'LC-T-Shirt', '4', '10', '20')"
|
||||
],
|
||||
"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\": {\"Warehouse\": [\"name\", \"product_id\", \"units\"], \"Products\": [\"product_id\", \"product_name\", \"Width\", \"Length\", \"Height\"]}, \"rows\": {\"Warehouse\": [[\"LCHouse1\", 1, 1], [\"LCHouse1\", 2, 10], [\"LCHouse1\", 3, 5], [\"LCHouse2\", 1, 2], [\"LCHouse2\", 2, 2], [\"LCHouse3\", 4, 1]], \"Products\": [[1, \"LC-TV\", 5, 50, 40], [2, \"LC-KeyChain\", 5, 5, 5], [3, \"LC-Phone\", 2, 10, 10], [4, \"LC-T-Shirt\", 4, 10, 20]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
172
算法题(国内版)/originData/add-minimum-number-of-rungs.json
Normal file
172
算法题(国内版)/originData/add-minimum-number-of-rungs.json
Normal file
File diff suppressed because one or more lines are too long
182
算法题(国内版)/originData/alert-using-same-key-card-three-or-more-times-in-a-one-hour-period.json
Normal file
182
算法题(国内版)/originData/alert-using-same-key-card-three-or-more-times-in-a-one-hour-period.json
Normal file
File diff suppressed because one or more lines are too long
172
算法题(国内版)/originData/arithmetic-subarrays.json
Normal file
172
算法题(国内版)/originData/arithmetic-subarrays.json
Normal file
File diff suppressed because one or more lines are too long
172
算法题(国内版)/originData/average-waiting-time.json
Normal file
172
算法题(国内版)/originData/average-waiting-time.json
Normal file
File diff suppressed because one or more lines are too long
87
算法题(国内版)/originData/bank-account-summary-ii.json
Normal file
87
算法题(国内版)/originData/bank-account-summary-ii.json
Normal file
@ -0,0 +1,87 @@
|
||||
{
|
||||
"data": {
|
||||
"question": {
|
||||
"questionId": "1734",
|
||||
"questionFrontendId": "1587",
|
||||
"categoryTitle": "Database",
|
||||
"boundTopicId": 418636,
|
||||
"title": "Bank Account Summary II",
|
||||
"titleSlug": "bank-account-summary-ii",
|
||||
"content": "<p>Table: <code>Users</code></p>\n\n<pre>\n+--------------+---------+\n| Column Name | Type |\n+--------------+---------+\n| account | int |\n| name | varchar |\n+--------------+---------+\naccount is the primary key for this table.\nEach row of this table contains the account number of each user in the bank.\n</pre>\n\n<p> </p>\n\n<p>Table: <code>Transactions</code></p>\n\n<pre>\n+---------------+---------+\n| Column Name | Type |\n+---------------+---------+\n| trans_id | int |\n| account | int |\n| amount | int |\n| transacted_on | date |\n+---------------+---------+\ntrans_id is the primary key for this table.\nEach row of this table contains all changes made to all accounts.\namount is positive if the user received money and negative if they transferred money.\nAll accounts start with a balance of 0.\n</pre>\n\n<p> </p>\n\n<p>Write an SQL query to report the name and balance of users with a balance higher than <code>10000</code>. The balance of an account is equal to the sum of the amounts of all transactions involving that account.</p>\n\n<p>Return the result table in <strong>any order</strong>.</p>\n\n<p>The query result format is in the following example.</p>\n\n<p> </p>\n<p><strong>Example 1:</strong></p>\n\n<pre>\n<strong>Input:</strong> \nUsers table:\n+------------+--------------+\n| account | name |\n+------------+--------------+\n| 900001 | Alice |\n| 900002 | Bob |\n| 900003 | Charlie |\n+------------+--------------+\nTransactions table:\n+------------+------------+------------+---------------+\n| trans_id | account | amount | transacted_on |\n+------------+------------+------------+---------------+\n| 1 | 900001 | 7000 | 2020-08-01 |\n| 2 | 900001 | 7000 | 2020-09-01 |\n| 3 | 900001 | -3000 | 2020-09-02 |\n| 4 | 900002 | 1000 | 2020-09-12 |\n| 5 | 900003 | 6000 | 2020-08-07 |\n| 6 | 900003 | 6000 | 2020-09-07 |\n| 7 | 900003 | -4000 | 2020-09-11 |\n+------------+------------+------------+---------------+\n<strong>Output:</strong> \n+------------+------------+\n| name | balance |\n+------------+------------+\n| Alice | 11000 |\n+------------+------------+\n<strong>Explanation:</strong> \nAlice's balance is (7000 + 7000 - 3000) = 11000.\nBob's balance is 1000.\nCharlie's balance is (6000 + 6000 - 4000) = 8000.\n</pre>\n",
|
||||
"translatedTitle": "银行账户概要 II",
|
||||
"translatedContent": "<p>表: <code>Users</code></p>\n\n<pre>+--------------+---------+\n| Column Name | Type |\n+--------------+---------+\n| account | int |\n| name | varchar |\n+--------------+---------+\naccount 是该表的主键.\n表中的每一行包含银行里中每一个用户的账号.\n</pre>\n\n<p> </p>\n\n<p>表: <code>Transactions</code></p>\n\n<pre>+---------------+---------+\n| Column Name | Type |\n+---------------+---------+\n| trans_id | int |\n| account | int |\n| amount | int |\n| transacted_on | date |\n+---------------+---------+\ntrans_id 是该表主键.\n该表的每一行包含了所有账户的交易改变情况.\n如果用户收到了钱, 那么金额是正的; 如果用户转了钱, 那么金额是负的.\n所有账户的起始余额为 0.\n</pre>\n\n<p> </p>\n\n<p>写一个 SQL, 报告余额高于 10000 的所有用户的名字和余额. 账户的余额等于包含该账户的所有交易的总和.</p>\n\n<p>返回结果表单没有顺序要求.</p>\n\n<p>查询结果格式如下例所示.</p>\n\n<p> </p>\n\n<pre><code>Users</code> table:\n+------------+--------------+\n| account | name |\n+------------+--------------+\n| 900001 | Alice |\n| 900002 | Bob |\n| 900003 | Charlie |\n+------------+--------------+\n\n<code>Transactions</code> table:\n+------------+------------+------------+---------------+\n| trans_id | account | amount | transacted_on |\n+------------+------------+------------+---------------+\n| 1 | 900001 | 7000 | 2020-08-01 |\n| 2 | 900001 | 7000 | 2020-09-01 |\n| 3 | 900001 | -3000 | 2020-09-02 |\n| 4 | 900002 | 1000 | 2020-09-12 |\n| 5 | 900003 | 6000 | 2020-08-07 |\n| 6 | 900003 | 6000 | 2020-09-07 |\n| 7 | 900003 | -4000 | 2020-09-11 |\n+------------+------------+------------+---------------+\n\nResult table:\n+------------+------------+\n| <code>name </code> | <code>balance </code> |\n+------------+------------+\n| Alice | 11000 |\n+------------+------------+\nAlice 的余额为(7000 + 7000 - 3000) = 11000.\nBob 的余额为1000.\nCharlie 的余额为(6000 + 6000 - 4000) = 8000.\n</pre>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 5,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": "{\"cpp\": false, \"java\": false, \"python\": false, \"python3\": false, \"mysql\": false, \"mssql\": false, \"oraclesql\": false, \"c\": false, \"csharp\": false, \"javascript\": false, \"ruby\": false, \"bash\": false, \"swift\": false, \"golang\": false, \"scala\": false, \"html\": false, \"pythonml\": false, \"kotlin\": false, \"rust\": false, \"php\": false, \"typescript\": false, \"racket\": false, \"erlang\": false, \"elixir\": false}",
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
"slug": "database",
|
||||
"translatedName": "数据库",
|
||||
"__typename": "TopicTagNode"
|
||||
}
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": [
|
||||
{
|
||||
"lang": "MySQL",
|
||||
"langSlug": "mysql",
|
||||
"code": "# Write your MySQL query statement below",
|
||||
"__typename": "CodeSnippetNode"
|
||||
},
|
||||
{
|
||||
"lang": "MS SQL Server",
|
||||
"langSlug": "mssql",
|
||||
"code": "/* Write your T-SQL query statement below */",
|
||||
"__typename": "CodeSnippetNode"
|
||||
},
|
||||
{
|
||||
"lang": "Oracle",
|
||||
"langSlug": "oraclesql",
|
||||
"code": "/* Write your PL/SQL query statement below */",
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"4.6K\", \"totalSubmission\": \"5.5K\", \"totalAcceptedRaw\": 4593, \"totalSubmissionRaw\": 5507, \"acRate\": \"83.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Users\": [\"account\", \"name\"], \"Transactions\": [\"trans_id\", \"account\", \"amount\", \"transacted_on\"]}, \"rows\": {\"Users\": [[900001, \"Alice\"], [900002, \"Bob\"], [900003, \"Charlie\"]], \"Transactions\": [[1, 900001, 7000, \"2020-08-01\"], [2, 900001, 7000, \"2020-09-01\"], [3, 900001, -3000, \"2020-09-02\"], [4, 900002, 1000, \"2020-09-12\"], [5, 900003, 6000, \"2020-08-07\"], [6, 900003, 6000, \"2020-09-07\"], [7, 900003, -4000, \"2020-09-11\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Users (account int, name varchar(20))\",\n \"Create table If Not Exists Transactions (trans_id int, account int, amount int, transacted_on date)\"\n ],\n \"mssql\": [\n \"Create table Users (account int, name varchar(20))\",\n \"Create table Transactions (trans_id int, account int, amount int, transacted_on date)\"\n ],\n \"oraclesql\": [\n \"Create table Users (account int, name varchar(20))\",\n \"Create table Transactions (trans_id int, account int, amount int, transacted_on 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 Users (account int, name varchar(20))",
|
||||
"Create table If Not Exists Transactions (trans_id int, account int, amount int, transacted_on date)",
|
||||
"Truncate table Users",
|
||||
"insert into Users (account, name) values ('900001', 'Alice')",
|
||||
"insert into Users (account, name) values ('900002', 'Bob')",
|
||||
"insert into Users (account, name) values ('900003', 'Charlie')",
|
||||
"Truncate table Transactions",
|
||||
"insert into Transactions (trans_id, account, amount, transacted_on) values ('1', '900001', '7000', '2020-08-01')",
|
||||
"insert into Transactions (trans_id, account, amount, transacted_on) values ('2', '900001', '7000', '2020-09-01')",
|
||||
"insert into Transactions (trans_id, account, amount, transacted_on) values ('3', '900001', '-3000', '2020-09-02')",
|
||||
"insert into Transactions (trans_id, account, amount, transacted_on) values ('4', '900002', '1000', '2020-09-12')",
|
||||
"insert into Transactions (trans_id, account, amount, transacted_on) values ('5', '900003', '6000', '2020-08-07')",
|
||||
"insert into Transactions (trans_id, account, amount, transacted_on) values ('6', '900003', '6000', '2020-09-07')",
|
||||
"insert into Transactions (trans_id, account, amount, transacted_on) values ('7', '900003', '-4000', '2020-09-11')"
|
||||
],
|
||||
"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\": [\"account\", \"name\"], \"Transactions\": [\"trans_id\", \"account\", \"amount\", \"transacted_on\"]}, \"rows\": {\"Users\": [[900001, \"Alice\"], [900002, \"Bob\"], [900003, \"Charlie\"]], \"Transactions\": [[1, 900001, 7000, \"2020-08-01\"], [2, 900001, 7000, \"2020-09-01\"], [3, 900001, -3000, \"2020-09-02\"], [4, 900002, 1000, \"2020-09-12\"], [5, 900003, 6000, \"2020-08-07\"], [6, 900003, 6000, \"2020-09-07\"], [7, 900003, -4000, \"2020-09-11\"]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
}
|
177
算法题(国内版)/originData/best-team-with-no-conflicts.json
Normal file
177
算法题(国内版)/originData/best-team-with-no-conflicts.json
Normal file
File diff suppressed because one or more lines are too long
171
算法题(国内版)/originData/build-array-from-permutation.json
Normal file
171
算法题(国内版)/originData/build-array-from-permutation.json
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user