diff --git a/.github/ISSUE_TEMPLATE/please-do-not-create-bug-report-in-this-project.md b/.github/ISSUE_TEMPLATE/please-do-not-create-bug-report-in-this-project.md new file mode 100644 index 0000000..5565464 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/please-do-not-create-bug-report-in-this-project.md @@ -0,0 +1,12 @@ +--- +name: Please DO NOT create bug report in this project +about: Please DO NOT create bug report in this project +title: '' +labels: '' +assignees: '' + +--- + +Please DO NOT create bug report in this project! +Please DO NOT create bug report in this project! +Please DO NOT create bug report in this project! diff --git a/.github/ISSUE_TEMPLATE/please-do-not-create-custom-issue-in-this-project.md b/.github/ISSUE_TEMPLATE/please-do-not-create-custom-issue-in-this-project.md new file mode 100644 index 0000000..c3b52ba --- /dev/null +++ b/.github/ISSUE_TEMPLATE/please-do-not-create-custom-issue-in-this-project.md @@ -0,0 +1,12 @@ +--- +name: Please DO NOT create custom issue in this project +about: Please DO NOT create custom issue in this project +title: '' +labels: '' +assignees: '' + +--- + +Please DO NOT create custom issue in this project! +Please DO NOT create custom issue in this project! +Please DO NOT create custom issue in this project! diff --git a/.github/ISSUE_TEMPLATE/please-do-not-create-feature-request-in-this-project.md b/.github/ISSUE_TEMPLATE/please-do-not-create-feature-request-in-this-project.md new file mode 100644 index 0000000..e733cd1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/please-do-not-create-feature-request-in-this-project.md @@ -0,0 +1,12 @@ +--- +name: Please DO NOT create feature request in this project +about: Please DO NOT create feature request in this project +title: '' +labels: '' +assignees: '' + +--- + +Please DO NOT create feature request in this project! +Please DO NOT create feature request in this project! +Please DO NOT create feature request in this project! diff --git a/README-CN.md b/README-CN.md index 3d283d7..ec0eaee 100644 --- a/README-CN.md +++ b/README-CN.md @@ -15,6 +15,9 @@ 与博客园上相同: [LeetCode All in One 题目讲解汇总(持续更新中...)](https://www.cnblogs.com/grandyang/p/4606334.html) +[请点击下方图片观看讲解视频](https://www.youtube.com/playlist?list=PLZFoAdzIur8ii06R2KsX7Mct2PEuUh0tc) +[![Video](https://raw.githubusercontent.com/grandyang/leetcode/master/podcast.png)](https://www.youtube.com/playlist?list=PLZFoAdzIur8ii06R2KsX7Mct2PEuUh0tc) + Note: 所有的讲解写在了 GitHub Issue 上面, **请不要在本项目中新建任何的 Issue 或者 Pull Request,因为博主希望题目编号和 Issue 编号保持一致**,多谢! ('$' 代表锁住的题目, '*' 代表数据库类题目, '#' 代表脚本类题目, '~' 代表并行类题目。) @@ -22,6 +25,66 @@ Note: 所有的讲解写在了 GitHub Issue 上面, **请不要在本项目中 | # | Title | Solution | Difficulty | |---| ----- | -------- | ---------- | +|1352|[Product of the Last K Numbers](https://github.com/grandyang/leetcode/issues/1352)|50.20%|Medium| +|1351|[Count Negative Numbers in a Sorted Matrix](https://github.com/grandyang/leetcode/issues/1351)|77.30%|Easy| +|1350|Students With Invalid Departments * $|89.90%|Easy| +|1349|[Maximum Students Taking Exam](https://github.com/grandyang/leetcode/issues/1349)|49.80%|Hard| +|1348|[Tweet Counts Per Frequency](https://github.com/grandyang/leetcode/issues/1348)|44.00%|Medium| +|1347|[Minimum Number of Steps to Make Two Strings Anagram](https://github.com/grandyang/leetcode/issues/1347)|78.00%|Medium| +|1346|[Check If N and Its Double Exist](https://github.com/grandyang/leetcode/issues/1346)|36.70%|Easy| +|1345|[Jump Game IV](https://github.com/grandyang/leetcode/issues/1345)|46.60%|Hard| +|1344|[Angle Between Hands of a Clock](https://github.com/grandyang/leetcode/issues/1344)|63.40%|Medium| +|1343|[Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold](https://github.com/grandyang/leetcode/issues/1343)|68.10%|Medium| +|1342|[Number of Steps to Reduce a Number to Zero](https://github.com/grandyang/leetcode/issues/1342)|84.90%|Easy| +|1341|Movie Rating *|43.80%|Medium| +|1340|[Jump Game V](https://github.com/grandyang/leetcode/issues/1340)|62.60%|Hard| +|1339|[Maximum Product of Splitted Binary Tree](https://github.com/grandyang/leetcode/issues/1339)|47.70%|Medium| +|1338|[Reduce Array Size to The Half](https://github.com/grandyang/leetcode/issues/1338)|69.20%|Medium| +|1337|[The K Weakest Rows in a Matrix](https://github.com/grandyang/leetcode/issues/1337)|71.40%|Easy| +|1336|Number of Transactions per Visit *|48.10%|Hard| +|1335|[Minimum Difficulty of a Job Schedule](https://github.com/grandyang/leetcode/issues/1335)|58.30%|Hard| +|1334|[Find the City With the Smallest Number of Neighbors at a Threshold Distance](https://github.com/grandyang/leetcode/issues/1334)|57.70%|Medium| +|1333|"Filter Restaurants by Vegan-Friendly| Price and Distance"|60.50%| +|1332|[Remove Palindromic Subsequences](https://github.com/grandyang/leetcode/issues/1332)|76.20%|Easy| +|1331|[Rank Transform of an Array](https://github.com/grandyang/leetcode/issues/1331)|59.80%|Easy| +|1330|[Reverse Subarray To Maximize Array Value](https://github.com/grandyang/leetcode/issues/1330)|41.30%|Hard| +|1329|[Sort the Matrix Diagonally](https://github.com/grandyang/leetcode/issues/1329)|83.00%|Medium| +|1328|[Break a Palindrome](https://github.com/grandyang/leetcode/issues/1328)|52.10%|Medium| +|1327|List the Products Ordered in a Period *|71.90%|Easy| +|1326|[Minimum Number of Taps to Open to Water a Garden](https://github.com/grandyang/leetcode/issues/1326)|51.60%|Hard| +|1325|[Delete Leaves With a Given Value](https://github.com/grandyang/leetcode/issues/1325)|74.40%|Medium| +|1324|[Print Words Vertically](https://github.com/grandyang/leetcode/issues/1324)|62.40%|Medium| +|1323|[Maximum 69 Number](https://github.com/grandyang/leetcode/issues/1323)|82.00%|Easy| +|1322|Ads Performance * $|60.10%|Easy| +|1321|Restaurant Growth *|53.40%|Medium| +|1320|[Minimum Distance to Type a Word Using Two Fingers](https://github.com/grandyang/leetcode/issues/1320)|59.80%|Hard| +|1319|[Number of Operations to Make Network Connected](https://github.com/grandyang/leetcode/issues/1319)|58.50%|Medium| +|1318|[Minimum Flips to Make a OR b Equal to c](https://github.com/grandyang/leetcode/issues/1318)|66.00%|Medium| +|1317|[Convert Integer to the Sum of Two No-Zero Integers](https://github.com/grandyang/leetcode/issues/1317)|56.00%|Easy| +|1316|[Distinct Echo Substrings](https://github.com/grandyang/leetcode/issues/1316)|49.70%|Hard| +|1315|[Sum of Nodes with Even-Valued Grandparent](https://github.com/grandyang/leetcode/issues/1315)|85.60%|Medium| +|1314|[Matrix Block Sum](https://github.com/grandyang/leetcode/issues/1314)|75.40%|Medium| +|1313|[Decompress Run-Length Encoded List](https://github.com/grandyang/leetcode/issues/1313)|85.90%|Easy| +|1312|[Minimum Insertion Steps to Make a String Palindrome](https://github.com/grandyang/leetcode/issues/1312)|65.70%|Hard| +|1311|[Get Watched Videos by Your Friends](https://github.com/grandyang/leetcode/issues/1311)|45.90%|Medium| +|1310|[XOR Queries of a Subarray](https://github.com/grandyang/leetcode/issues/1310)|72.20%|Medium| +|1309|[Decrypt String from Alphabet to Integer Mapping](https://github.com/grandyang/leetcode/issues/1309)|79.50%|Easy| +|1308|Running Total for Different Genders * $|88.20%|Medium| +|1307|[Verbal Arithmetic Puzzle](https://github.com/grandyang/leetcode/issues/1307)|34.80%|Hard| +|1306|[Jump Game III](https://github.com/grandyang/leetcode/issues/1306)|63.10%|Medium| +|1305|[All Elements in Two Binary Search Trees](https://github.com/grandyang/leetcode/issues/1305)|79.80%|Medium| +|1304|[Find N Unique Integers Sum up to Zero](https://github.com/grandyang/leetcode/issues/1304)|77.10%|Easy| +|1303|Find the Team Size * $|90.80%|Easy| +|1302|[Deepest Leaves Sum](https://github.com/grandyang/leetcode/issues/1302)|86.90%|Medium| +|1301|[Number of Paths with Max Score](https://github.com/grandyang/leetcode/issues/1301)|38.70%|Hard| +|1300|[Sum of Mutated Array Closest to Target](https://github.com/grandyang/leetcode/issues/1300)|43.10%|Medium| +|1299|[Replace Elements with Greatest Element on Right Side](https://github.com/grandyang/leetcode/issues/1299)|74.70%|Easy| +|1298|[Maximum Candies You Can Get from Boxes](https://github.com/grandyang/leetcode/issues/1298)|60.90%|Hard| +|1297|[Maximum Number of Occurrences of a Substring](https://github.com/grandyang/leetcode/issues/1297)|52.00%|Medium| +|1296|[Divide Array in Sets of K Consecutive Numbers](https://github.com/grandyang/leetcode/issues/1296)|56.60%|Medium| +|1295|[Find Numbers with Even Number of Digits](https://github.com/grandyang/leetcode/issues/1295)|77.00%|Easy| +|1294|Weather Type in Each Country * $|68.00%|Easy| +|1293|[Shortest Path in a Grid with Obstacles Elimination](https://github.com/grandyang/leetcode/issues/1293)|45.60%|Hard| |1292|[Maximum Side Length of a Square with Sum Less than or Equal to Threshold](https://github.com/grandyang/leetcode/issues/1292)|52.10%|Medium| |1291|[Sequential Digits](https://github.com/grandyang/leetcode/issues/1291)|60.90%|Medium| |1290|[Convert Binary Number in a Linked List to Integer](https://github.com/grandyang/leetcode/issues/1290)|82.70%|Easy| diff --git a/README.md b/README.md index 3aad4ed..5f60ba4 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,76 @@ Provide all my solutions and explanations in Chinese for all the Leetcode coding Same as this: [LeetCode All in One 题目讲解汇总(持续更新中...)](https://www.cnblogs.com/grandyang/p/4606334.html) +[Click below image to watch YouTube Video](https://www.youtube.com/playlist?list=PLZFoAdzIur8ii06R2KsX7Mct2PEuUh0tc) +[![Video](https://raw.githubusercontent.com/grandyang/leetcode/master/podcast.png)](https://www.youtube.com/playlist?list=PLZFoAdzIur8ii06R2KsX7Mct2PEuUh0tc) + Note: All explanations are written in Github Issues, **please do not create any new issue or pull request in this project since the problem index should be consistent with the issue index**, thanks! ('$' means the problem is locked on Leetcode, '*' means the problem is related to Database, '#' means the problem is related to Shell, '~' means the concurrency problems.) - | # | Title | Solution | Difficulty | |---| ----- | -------- | ---------- | +|1352|[Product of the Last K Numbers](https://github.com/grandyang/leetcode/issues/1352)|50.20%|Medium| +|1351|[Count Negative Numbers in a Sorted Matrix](https://github.com/grandyang/leetcode/issues/1351)|77.30%|Easy| +|1350|Students With Invalid Departments * $|89.90%|Easy| +|1349|[Maximum Students Taking Exam](https://github.com/grandyang/leetcode/issues/1349)|49.80%|Hard| +|1348|[Tweet Counts Per Frequency](https://github.com/grandyang/leetcode/issues/1348)|44.00%|Medium| +|1347|[Minimum Number of Steps to Make Two Strings Anagram](https://github.com/grandyang/leetcode/issues/1347)|78.00%|Medium| +|1346|[Check If N and Its Double Exist](https://github.com/grandyang/leetcode/issues/1346)|36.70%|Easy| +|1345|[Jump Game IV](https://github.com/grandyang/leetcode/issues/1345)|46.60%|Hard| +|1344|[Angle Between Hands of a Clock](https://github.com/grandyang/leetcode/issues/1344)|63.40%|Medium| +|1343|[Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold](https://github.com/grandyang/leetcode/issues/1343)|68.10%|Medium| +|1342|[Number of Steps to Reduce a Number to Zero](https://github.com/grandyang/leetcode/issues/1342)|84.90%|Easy| +|1341|Movie Rating *|43.80%|Medium| +|1340|[Jump Game V](https://github.com/grandyang/leetcode/issues/1340)|62.60%|Hard| +|1339|[Maximum Product of Splitted Binary Tree](https://github.com/grandyang/leetcode/issues/1339)|47.70%|Medium| +|1338|[Reduce Array Size to The Half](https://github.com/grandyang/leetcode/issues/1338)|69.20%|Medium| +|1337|[The K Weakest Rows in a Matrix](https://github.com/grandyang/leetcode/issues/1337)|71.40%|Easy| +|1336|Number of Transactions per Visit *|48.10%|Hard| +|1335|[Minimum Difficulty of a Job Schedule](https://github.com/grandyang/leetcode/issues/1335)|58.30%|Hard| +|1334|[Find the City With the Smallest Number of Neighbors at a Threshold Distance](https://github.com/grandyang/leetcode/issues/1334)|57.70%|Medium| +|1333|"Filter Restaurants by Vegan-Friendly| Price and Distance"|60.50%| +|1332|[Remove Palindromic Subsequences](https://github.com/grandyang/leetcode/issues/1332)|76.20%|Easy| +|1331|[Rank Transform of an Array](https://github.com/grandyang/leetcode/issues/1331)|59.80%|Easy| +|1330|[Reverse Subarray To Maximize Array Value](https://github.com/grandyang/leetcode/issues/1330)|41.30%|Hard| +|1329|[Sort the Matrix Diagonally](https://github.com/grandyang/leetcode/issues/1329)|83.00%|Medium| +|1328|[Break a Palindrome](https://github.com/grandyang/leetcode/issues/1328)|52.10%|Medium| +|1327|List the Products Ordered in a Period *|71.90%|Easy| +|1326|[Minimum Number of Taps to Open to Water a Garden](https://github.com/grandyang/leetcode/issues/1326)|51.60%|Hard| +|1325|[Delete Leaves With a Given Value](https://github.com/grandyang/leetcode/issues/1325)|74.40%|Medium| +|1324|[Print Words Vertically](https://github.com/grandyang/leetcode/issues/1324)|62.40%|Medium| +|1323|[Maximum 69 Number](https://github.com/grandyang/leetcode/issues/1323)|82.00%|Easy| +|1322|Ads Performance * $|60.10%|Easy| +|1321|Restaurant Growth *|53.40%|Medium| +|1320|[Minimum Distance to Type a Word Using Two Fingers](https://github.com/grandyang/leetcode/issues/1320)|59.80%|Hard| +|1319|[Number of Operations to Make Network Connected](https://github.com/grandyang/leetcode/issues/1319)|58.50%|Medium| +|1318|[Minimum Flips to Make a OR b Equal to c](https://github.com/grandyang/leetcode/issues/1318)|66.00%|Medium| +|1317|[Convert Integer to the Sum of Two No-Zero Integers](https://github.com/grandyang/leetcode/issues/1317)|56.00%|Easy| +|1316|[Distinct Echo Substrings](https://github.com/grandyang/leetcode/issues/1316)|49.70%|Hard| +|1315|[Sum of Nodes with Even-Valued Grandparent](https://github.com/grandyang/leetcode/issues/1315)|85.60%|Medium| +|1314|[Matrix Block Sum](https://github.com/grandyang/leetcode/issues/1314)|75.40%|Medium| +|1313|[Decompress Run-Length Encoded List](https://github.com/grandyang/leetcode/issues/1313)|85.90%|Easy| +|1312|[Minimum Insertion Steps to Make a String Palindrome](https://github.com/grandyang/leetcode/issues/1312)|65.70%|Hard| +|1311|[Get Watched Videos by Your Friends](https://github.com/grandyang/leetcode/issues/1311)|45.90%|Medium| +|1310|[XOR Queries of a Subarray](https://github.com/grandyang/leetcode/issues/1310)|72.20%|Medium| +|1309|[Decrypt String from Alphabet to Integer Mapping](https://github.com/grandyang/leetcode/issues/1309)|79.50%|Easy| +|1308|Running Total for Different Genders * $|88.20%|Medium| +|1307|[Verbal Arithmetic Puzzle](https://github.com/grandyang/leetcode/issues/1307)|34.80%|Hard| +|1306|[Jump Game III](https://github.com/grandyang/leetcode/issues/1306)|63.10%|Medium| +|1305|[All Elements in Two Binary Search Trees](https://github.com/grandyang/leetcode/issues/1305)|79.80%|Medium| +|1304|[Find N Unique Integers Sum up to Zero](https://github.com/grandyang/leetcode/issues/1304)|77.10%|Easy| +|1303|Find the Team Size * $|90.80%|Easy| +|1302|[Deepest Leaves Sum](https://github.com/grandyang/leetcode/issues/1302)|86.90%|Medium| +|1301|[Number of Paths with Max Score](https://github.com/grandyang/leetcode/issues/1301)|38.70%|Hard| +|1300|[Sum of Mutated Array Closest to Target](https://github.com/grandyang/leetcode/issues/1300)|43.10%|Medium| +|1299|[Replace Elements with Greatest Element on Right Side](https://github.com/grandyang/leetcode/issues/1299)|74.70%|Easy| +|1298|[Maximum Candies You Can Get from Boxes](https://github.com/grandyang/leetcode/issues/1298)|60.90%|Hard| +|1297|[Maximum Number of Occurrences of a Substring](https://github.com/grandyang/leetcode/issues/1297)|52.00%|Medium| +|1296|[Divide Array in Sets of K Consecutive Numbers](https://github.com/grandyang/leetcode/issues/1296)|56.60%|Medium| +|1295|[Find Numbers with Even Number of Digits](https://github.com/grandyang/leetcode/issues/1295)|77.00%|Easy| +|1294|Weather Type in Each Country * $|68.00%|Easy| +|1293|[Shortest Path in a Grid with Obstacles Elimination](https://github.com/grandyang/leetcode/issues/1293)|45.60%|Hard| |1292|[Maximum Side Length of a Square with Sum Less than or Equal to Threshold](https://github.com/grandyang/leetcode/issues/1292)|52.10%|Medium| |1291|[Sequential Digits](https://github.com/grandyang/leetcode/issues/1291)|60.90%|Medium| |1290|[Convert Binary Number in a Linked List to Integer](https://github.com/grandyang/leetcode/issues/1290)|82.70%|Easy| diff --git a/plugin.gif b/plugin.gif new file mode 100644 index 0000000..21247a4 Binary files /dev/null and b/plugin.gif differ diff --git a/podcast.png b/podcast.png new file mode 100644 index 0000000..3b52d5f Binary files /dev/null and b/podcast.png differ