diff --git a/README.md b/README.md index f7aa847ff..6ceb534f5 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ LeetCode Problems' Solutions | # | Title | Solution | Difficulty | | :-: | - | - | :-: | +| 1195 | [Fizz Buzz Multithreaded](https://leetcode.com/problems/fizz-buzz-multithreaded) | [Go](https://github.com/openset/leetcode/tree/master/problems/fizz-buzz-multithreaded) | Medium | | 1194 | [Tournament Winners](https://leetcode.com/problems/tournament-winners) ๐Ÿ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/tournament-winners) | Hard | | 1193 | [Monthly Transactions I](https://leetcode.com/problems/monthly-transactions-i) ๐Ÿ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/monthly-transactions-i) | Medium | | 1192 | [Critical Connections in a Network](https://leetcode.com/problems/critical-connections-in-a-network "ๆŸฅๆ‰พ้›†็พคๅ†…็š„ใ€Œๅ…ณ้”ฎ่ฟžๆŽฅใ€") | [Go](https://github.com/openset/leetcode/tree/master/problems/critical-connections-in-a-network) | Hard | @@ -165,7 +166,7 @@ LeetCode Problems' Solutions | 1086 | [High Five](https://leetcode.com/problems/high-five "ๅ‰ไบ”็ง‘็š„ๅ‡ๅˆ†") ๐Ÿ”’ | [Go](https://github.com/openset/leetcode/tree/master/problems/high-five) | Easy | | 1085 | [Sum of Digits in the Minimum Number](https://leetcode.com/problems/sum-of-digits-in-the-minimum-number "ๆœ€ๅฐๅ…ƒ็ด ๅ„ๆ•ฐไฝไน‹ๅ’Œ") ๐Ÿ”’ | [Go](https://github.com/openset/leetcode/tree/master/problems/sum-of-digits-in-the-minimum-number) | Easy | | 1084 | [Sales Analysis III](https://leetcode.com/problems/sales-analysis-iii) ๐Ÿ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-iii) | Easy | -| 1083 | [Sales Analysis II](https://leetcode.com/problems/sales-analysis-ii) ๐Ÿ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-ii) | Easy | +| 1083 | [Sales Analysis II](https://leetcode.com/problems/sales-analysis-ii "1083. ้”€ๅ”ฎๅˆ†ๆžII") ๐Ÿ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-ii) | Easy | | 1082 | [Sales Analysis I](https://leetcode.com/problems/sales-analysis-i "้”€ๅ”ฎๅˆ†ๆž I ") ๐Ÿ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-i) | Easy | | 1081 | [Smallest Subsequence of Distinct Characters](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters "ไธๅŒๅญ—็ฌฆ็š„ๆœ€ๅฐๅญๅบๅˆ—") | [Go](https://github.com/openset/leetcode/tree/master/problems/smallest-subsequence-of-distinct-characters) | Medium | | 1080 | [Insufficient Nodes in Root to Leaf Paths](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths "ๆ นๅˆฐๅถ่ทฏๅพ„ไธŠ็š„ไธ่ถณ่Š‚็‚น") | [Go](https://github.com/openset/leetcode/tree/master/problems/insufficient-nodes-in-root-to-leaf-paths) | Medium | diff --git a/internal/leetcode/question_data.go b/internal/leetcode/question_data.go index ba4930da2..afc4921c7 100644 --- a/internal/leetcode/question_data.go +++ b/internal/leetcode/question_data.go @@ -112,7 +112,13 @@ func (question *questionType) getDescContent() []byte { var buf bytes.Buffer buf.WriteString(authInfo("description")) buf.WriteString(question.getNavigation()) - buf.WriteString(fmt.Sprintf("\n## %s. %s%s\n\n", question.QuestionFrontendId, question.Title, question.Difficulty.Str())) + buf.WriteString(fmt.Sprintf("\n## [%s. %s%s](%s \"%s\")\n\n", + question.QuestionFrontendId, + question.Title, + question.Difficulty.Str(), + question.LeetCodeUrl(), + question.TranslatedTitle, + )) cts := filterContents(question.Content) // remove style reg := regexp.MustCompile(``) @@ -197,6 +203,10 @@ func (question *questionType) TitleSnake() string { return slugToSnake(question.TitleSlug) } +func (question *questionType) LeetCodeUrl() string { + return "https://leetcode.com/problems/" + question.TitleSlug +} + func (question *questionType) PackageName() string { return "problem_" + question.QuestionFrontendId } diff --git a/internal/version/version.go b/internal/version/version.go index 3d02059ed..8f4c00a9e 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -7,7 +7,7 @@ import ( "github.com/openset/leetcode/internal/base" ) -const version = "1.4.7" +const version = "1.4.8" var CmdVersion = &base.Command{ Run: runVersion, diff --git a/problems/01-matrix/README.md b/problems/01-matrix/README.md index 481cd2117..0d8d304d5 100644 --- a/problems/01-matrix/README.md +++ b/problems/01-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/diameter-of-binary-tree "Diameter of Binary Tree") -## 542. 01 Matrix (Medium) +## [542. 01 Matrix (Medium)](https://leetcode.com/problems/01-matrix "01 ็Ÿฉ้˜ต")

Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.

diff --git a/problems/1-bit-and-2-bit-characters/README.md b/problems/1-bit-and-2-bit-characters/README.md index 260540343..4dd3a52e0 100644 --- a/problems/1-bit-and-2-bit-characters/README.md +++ b/problems/1-bit-and-2-bit-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-length-of-repeated-subarray "Maximum Length of Repeated Subarray") -## 717. 1-bit and 2-bit Characters (Easy) +## [717. 1-bit and 2-bit Characters (Easy)](https://leetcode.com/problems/1-bit-and-2-bit-characters "1ๆฏ”็‰นไธŽ2ๆฏ”็‰นๅญ—็ฌฆ")

We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11).

diff --git a/problems/132-pattern/README.md b/problems/132-pattern/README.md index 5e4c171e3..de23e63ec 100644 --- a/problems/132-pattern/README.md +++ b/problems/132-pattern/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/circular-array-loop "Circular Array Loop") -## 456. 132 Pattern (Medium) +## [456. 132 Pattern (Medium)](https://leetcode.com/problems/132-pattern "132ๆจกๅผ")

Given a sequence of n integers a1, a2, ..., an, a 132 pattern is a subsequence ai, aj, ak such diff --git a/problems/2-keys-keyboard/README.md b/problems/2-keys-keyboard/README.md index 8ac93de38..7e0aba8ec 100644 --- a/problems/2-keys-keyboard/README.md +++ b/problems/2-keys-keyboard/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/4-keys-keyboard "4 Keys Keyboard") -## 650. 2 Keys Keyboard (Medium) +## [650. 2 Keys Keyboard (Medium)](https://leetcode.com/problems/2-keys-keyboard "ๅชๆœ‰ไธคไธช้”ฎ็š„้”ฎ็›˜")

Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step:

diff --git a/problems/24-game/README.md b/problems/24-game/README.md index d69491f86..8a3d10396 100644 --- a/problems/24-game/README.md +++ b/problems/24-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-palindrome-ii "Valid Palindrome II") -## 679. 24 Game (Hard) +## [679. 24 Game (Hard)](https://leetcode.com/problems/24-game "24 ็‚นๆธธๆˆ")

You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operated through *, /, +, -, (, ) to get the value of 24. diff --git a/problems/3sum-closest/README.md b/problems/3sum-closest/README.md index 49080edca..68daac163 100644 --- a/problems/3sum-closest/README.md +++ b/problems/3sum-closest/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/letter-combinations-of-a-phone-number "Letter Combinations of a Phone Number") -## 16. 3Sum Closest (Medium) +## [16. 3Sum Closest (Medium)](https://leetcode.com/problems/3sum-closest "ๆœ€ๆŽฅ่ฟ‘็š„ไธ‰ๆ•ฐไน‹ๅ’Œ")

Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each input would have exactly one solution.

diff --git a/problems/3sum-smaller/README.md b/problems/3sum-smaller/README.md index 7149f7827..d425cc110 100644 --- a/problems/3sum-smaller/README.md +++ b/problems/3sum-smaller/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/single-number-iii "Single Number III") -## 259. 3Sum Smaller (Medium) +## [259. 3Sum Smaller (Medium)](https://leetcode.com/problems/3sum-smaller "่พƒๅฐ็š„ไธ‰ๆ•ฐไน‹ๅ’Œ") diff --git a/problems/3sum-with-multiplicity/README.md b/problems/3sum-with-multiplicity/README.md index 58dffa397..6f8e3dea5 100644 --- a/problems/3sum-with-multiplicity/README.md +++ b/problems/3sum-with-multiplicity/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimize-malware-spread "Minimize Malware Spread") -## 923. 3Sum With Multiplicity (Medium) +## [923. 3Sum With Multiplicity (Medium)](https://leetcode.com/problems/3sum-with-multiplicity "ไธ‰ๆ•ฐไน‹ๅ’Œ็š„ๅคš็งๅฏ่ƒฝ")

Given an integer array A, and an integer target, return the number of tuples i, j, k  such that i < j < k and A[i] + A[j] + A[k] == target.

diff --git a/problems/3sum/README.md b/problems/3sum/README.md index ffbe0d2ef..c69cd8b84 100644 --- a/problems/3sum/README.md +++ b/problems/3sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/3sum-closest "3Sum Closest") -## 15. 3Sum (Medium) +## [15. 3Sum (Medium)](https://leetcode.com/problems/3sum "ไธ‰ๆ•ฐไน‹ๅ’Œ")

Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.

diff --git a/problems/4-keys-keyboard/README.md b/problems/4-keys-keyboard/README.md index 7a4964c46..9e65b9e4a 100644 --- a/problems/4-keys-keyboard/README.md +++ b/problems/4-keys-keyboard/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-duplicate-subtrees "Find Duplicate Subtrees") -## 651. 4 Keys Keyboard (Medium) +## [651. 4 Keys Keyboard (Medium)](https://leetcode.com/problems/4-keys-keyboard "4้”ฎ้”ฎ็›˜")

Imagine you have a special keyboard with the following keys:

Key 1: (A): Print one 'A' on screen.

diff --git a/problems/4sum-ii/README.md b/problems/4sum-ii/README.md index bdcccea67..e0141b64f 100644 --- a/problems/4sum-ii/README.md +++ b/problems/4sum-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/assign-cookies "Assign Cookies") -## 454. 4Sum II (Medium) +## [454. 4Sum II (Medium)](https://leetcode.com/problems/4sum-ii "ๅ››ๆ•ฐ็›ธๅŠ  II")

Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.

diff --git a/problems/4sum/README.md b/problems/4sum/README.md index ee4d97519..5bd3b8a2e 100644 --- a/problems/4sum/README.md +++ b/problems/4sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-nth-node-from-end-of-list "Remove Nth Node From End of List") -## 18. 4Sum (Medium) +## [18. 4Sum (Medium)](https://leetcode.com/problems/4sum "ๅ››ๆ•ฐไน‹ๅ’Œ")

Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.

diff --git a/problems/accounts-merge/README.md b/problems/accounts-merge/README.md index 1ca88f079..6295efa83 100644 --- a/problems/accounts-merge/README.md +++ b/problems/accounts-merge/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-comments "Remove Comments") -## 721. Accounts Merge (Medium) +## [721. Accounts Merge (Medium)](https://leetcode.com/problems/accounts-merge "่ดฆๆˆทๅˆๅนถ")

Given a list accounts, each element accounts[i] is a list of strings, where the first element accounts[i][0] is a name, and the rest of the elements are emails representing emails of the account.

diff --git a/problems/active-businesses/README.md b/problems/active-businesses/README.md index 1d107ad8f..60a9081a2 100644 --- a/problems/active-businesses/README.md +++ b/problems/active-businesses/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/user-purchase-platform "User Purchase Platform") -## 1126. Active Businesses (Medium) +## [1126. Active Businesses (Medium)](https://leetcode.com/problems/active-businesses "") diff --git a/problems/actors-and-directors-who-cooperated-at-least-three-times/README.md b/problems/actors-and-directors-who-cooperated-at-least-three-times/README.md index baeb76f1b..d0c4340d7 100644 --- a/problems/actors-and-directors-who-cooperated-at-least-three-times/README.md +++ b/problems/actors-and-directors-who-cooperated-at-least-three-times/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/height-checker "Height Checker") -## 1050. Actors and Directors Who Cooperated At Least Three Times (Easy) +## [1050. Actors and Directors Who Cooperated At Least Three Times (Easy)](https://leetcode.com/problems/actors-and-directors-who-cooperated-at-least-three-times "ๅˆไฝœ่ฟ‡่‡ณๅฐ‘ไธ‰ๆฌก็š„ๆผ”ๅ‘˜ๅ’Œๅฏผๆผ”") diff --git a/problems/add-and-search-word-data-structure-design/README.md b/problems/add-and-search-word-data-structure-design/README.md index 385823efd..16c4681b3 100644 --- a/problems/add-and-search-word-data-structure-design/README.md +++ b/problems/add-and-search-word-data-structure-design/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-search-ii "Word Search II") -## 211. Add and Search Word - Data structure design (Medium) +## [211. Add and Search Word - Data structure design (Medium)](https://leetcode.com/problems/add-and-search-word-data-structure-design "ๆทปๅŠ ไธŽๆœ็ดขๅ•่ฏ - ๆ•ฐๆฎ็ป“ๆž„่ฎพ่ฎก")

Design a data structure that supports the following two operations:

diff --git a/problems/add-binary/README.md b/problems/add-binary/README.md index 049abe0b6..5e28afa29 100644 --- a/problems/add-binary/README.md +++ b/problems/add-binary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/text-justification "Text Justification") -## 67. Add Binary (Easy) +## [67. Add Binary (Easy)](https://leetcode.com/problems/add-binary "ไบŒ่ฟ›ๅˆถๆฑ‚ๅ’Œ")

Given two binary strings, return their sum (also a binary string).

diff --git a/problems/add-bold-tag-in-string/README.md b/problems/add-bold-tag-in-string/README.md index a65a9fac3..ba2674109 100644 --- a/problems/add-bold-tag-in-string/README.md +++ b/problems/add-bold-tag-in-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/merge-two-binary-trees "Merge Two Binary Trees") -## 616. Add Bold Tag in String (Medium) +## [616. Add Bold Tag in String (Medium)](https://leetcode.com/problems/add-bold-tag-in-string "็ป™ๅญ—็ฌฆไธฒๆทปๅŠ ๅŠ ็ฒ—ๆ ‡็ญพ") diff --git a/problems/add-digits/README.md b/problems/add-digits/README.md index 6dfe06bb7..c9fffa4c5 100644 --- a/problems/add-digits/README.md +++ b/problems/add-digits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/3sum-smaller "3Sum Smaller") -## 258. Add Digits (Easy) +## [258. Add Digits (Easy)](https://leetcode.com/problems/add-digits "ๅ„ไฝ็›ธๅŠ ")

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.

diff --git a/problems/add-one-row-to-tree/README.md b/problems/add-one-row-to-tree/README.md index 183511e70..bd0c4e102 100644 --- a/problems/add-one-row-to-tree/README.md +++ b/problems/add-one-row-to-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-distance-in-arrays "Maximum Distance in Arrays") -## 623. Add One Row to Tree (Medium) +## [623. Add One Row to Tree (Medium)](https://leetcode.com/problems/add-one-row-to-tree "ๅœจไบŒๅ‰ๆ ‘ไธญๅขžๅŠ ไธ€่กŒ")

Given the root of a binary tree, then value v and depth d, you need to add a row of nodes with value v at the given depth d. The root node is at depth 1.

diff --git a/problems/add-strings/README.md b/problems/add-strings/README.md index b45a2583d..8bc306acd 100644 --- a/problems/add-strings/README.md +++ b/problems/add-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/partition-equal-subset-sum "Partition Equal Subset Sum") -## 415. Add Strings (Easy) +## [415. Add Strings (Easy)](https://leetcode.com/problems/add-strings "ๅญ—็ฌฆไธฒ็›ธๅŠ ")

Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.

diff --git a/problems/add-to-array-form-of-integer/README.md b/problems/add-to-array-form-of-integer/README.md index 26f35c780..f133d8fce 100644 --- a/problems/add-to-array-form-of-integer/README.md +++ b/problems/add-to-array-form-of-integer/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/satisfiability-of-equality-equations "Satisfiability of Equality Equations") -## 989. Add to Array-Form of Integer (Easy) +## [989. Add to Array-Form of Integer (Easy)](https://leetcode.com/problems/add-to-array-form-of-integer "ๆ•ฐ็ป„ๅฝขๅผ็š„ๆ•ดๆ•ฐๅŠ ๆณ•")

For a non-negative integer X, the array-form of X is an array of its digits in left to right order.  For example, if X = 1231, then the array form is [1,2,3,1].

diff --git a/problems/add-two-numbers-ii/README.md b/problems/add-two-numbers-ii/README.md index f5fc5e70d..30d6b06e9 100644 --- a/problems/add-two-numbers-ii/README.md +++ b/problems/add-two-numbers-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/arithmetic-slices-ii-subsequence "Arithmetic Slices II - Subsequence") -## 445. Add Two Numbers II (Medium) +## [445. Add Two Numbers II (Medium)](https://leetcode.com/problems/add-two-numbers-ii "ไธคๆ•ฐ็›ธๅŠ  II")

You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.

diff --git a/problems/add-two-numbers/README.md b/problems/add-two-numbers/README.md index 539f95fb0..1113d8ea6 100644 --- a/problems/add-two-numbers/README.md +++ b/problems/add-two-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-substring-without-repeating-characters "Longest Substring Without Repeating Characters") -## 2. Add Two Numbers (Medium) +## [2. Add Two Numbers (Medium)](https://leetcode.com/problems/add-two-numbers "ไธคๆ•ฐ็›ธๅŠ ")

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.

diff --git a/problems/adding-two-negabinary-numbers/README.md b/problems/adding-two-negabinary-numbers/README.md index 19735fb1e..41323503a 100644 --- a/problems/adding-two-negabinary-numbers/README.md +++ b/problems/adding-two-negabinary-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-submatrices-that-sum-to-target "Number of Submatrices That Sum to Target") -## 1073. Adding Two Negabinary Numbers (Medium) +## [1073. Adding Two Negabinary Numbers (Medium)](https://leetcode.com/problems/adding-two-negabinary-numbers "่ดŸไบŒ่ฟ›ๅˆถๆ•ฐ็›ธๅŠ ")

Given two numbers arr1 and arr2 in base -2, return the result of adding them together.

diff --git a/problems/additive-number/README.md b/problems/additive-number/README.md index bb3627930..c3d4f3380 100644 --- a/problems/additive-number/README.md +++ b/problems/additive-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/range-sum-query-mutable "Range Sum Query - Mutable") -## 306. Additive Number (Medium) +## [306. Additive Number (Medium)](https://leetcode.com/problems/additive-number "็ดฏๅŠ ๆ•ฐ")

Additive number is a string whose digits can form additive sequence.

diff --git a/problems/advantage-shuffle/README.md b/problems/advantage-shuffle/README.md index 3e1489f39..a3ca3e455 100644 --- a/problems/advantage-shuffle/README.md +++ b/problems/advantage-shuffle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-number-of-refueling-stops "Minimum Number of Refueling Stops") -## 870. Advantage Shuffle (Medium) +## [870. Advantage Shuffle (Medium)](https://leetcode.com/problems/advantage-shuffle "ไผ˜ๅŠฟๆด—็‰Œ")

Given two arrays A and B of equal size, the advantage of A with respect to B is the number of indices i for which A[i] > B[i].

diff --git a/problems/alien-dictionary/README.md b/problems/alien-dictionary/README.md index b3d2f2097..53ce08fa0 100644 --- a/problems/alien-dictionary/README.md +++ b/problems/alien-dictionary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/closest-binary-search-tree-value "Closest Binary Search Tree Value") -## 269. Alien Dictionary (Hard) +## [269. Alien Dictionary (Hard)](https://leetcode.com/problems/alien-dictionary "็ซๆ˜Ÿ่ฏๅ…ธ") diff --git a/problems/all-nodes-distance-k-in-binary-tree/README.md b/problems/all-nodes-distance-k-in-binary-tree/README.md index 8ac72f24c..05f76b748 100644 --- a/problems/all-nodes-distance-k-in-binary-tree/README.md +++ b/problems/all-nodes-distance-k-in-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-path-to-get-all-keys "Shortest Path to Get All Keys") -## 863. All Nodes Distance K in Binary Tree (Medium) +## [863. All Nodes Distance K in Binary Tree (Medium)](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree "ไบŒๅ‰ๆ ‘ไธญๆ‰€ๆœ‰่ท็ฆปไธบ K ็š„็ป“็‚น")

We are given a binary tree (with root node root), a target node, and an integer value K.

diff --git a/problems/all-oone-data-structure/README.md b/problems/all-oone-data-structure/README.md index a2b1f34c9..f52cb3bc1 100644 --- a/problems/all-oone-data-structure/README.md +++ b/problems/all-oone-data-structure/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-genetic-mutation "Minimum Genetic Mutation") -## 432. All O`one Data Structure (Hard) +## [432. All O`one Data Structure (Hard)](https://leetcode.com/problems/all-oone-data-structure "ๅ…จ O(1) ็š„ๆ•ฐๆฎ็ป“ๆž„")

Implement a data structure supporting the following operations:

diff --git a/problems/all-paths-from-source-lead-to-destination/README.md b/problems/all-paths-from-source-lead-to-destination/README.md index d53611146..aa6b72a74 100644 --- a/problems/all-paths-from-source-lead-to-destination/README.md +++ b/problems/all-paths-from-source-lead-to-destination/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/missing-element-in-sorted-array "Missing Element in Sorted Array") -## 1059. All Paths from Source Lead to Destination (Medium) +## [1059. All Paths from Source Lead to Destination (Medium)](https://leetcode.com/problems/all-paths-from-source-lead-to-destination "ไปŽๅง‹็‚นๅˆฐ็ปˆ็‚น็š„ๆ‰€ๆœ‰่ทฏๅพ„")

Given the edges of a directed graph, and two nodes source and destination of this graph, determine whether or not all paths starting from source eventually end at destination, that is:

diff --git a/problems/all-paths-from-source-to-target/README.md b/problems/all-paths-from-source-to-target/README.md index 7cf236702..443fbc65d 100644 --- a/problems/all-paths-from-source-to-target/README.md +++ b/problems/all-paths-from-source-to-target/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-rotation-with-highest-score "Smallest Rotation with Highest Score") -## 797. All Paths From Source to Target (Medium) +## [797. All Paths From Source to Target (Medium)](https://leetcode.com/problems/all-paths-from-source-to-target "ๆ‰€ๆœ‰ๅฏ่ƒฝ็š„่ทฏๅพ„")

Given a directed, acyclic graph of N nodes.  Find all possible paths from node 0 to node N-1, and return them in any order.

diff --git a/problems/all-possible-full-binary-trees/README.md b/problems/all-possible-full-binary-trees/README.md index 75ced70a2..474f5c885 100644 --- a/problems/all-possible-full-binary-trees/README.md +++ b/problems/all-possible-full-binary-trees/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-frequency-stack "Maximum Frequency Stack") -## 894. All Possible Full Binary Trees (Medium) +## [894. All Possible Full Binary Trees (Medium)](https://leetcode.com/problems/all-possible-full-binary-trees "ๆ‰€ๆœ‰ๅฏ่ƒฝ็š„ๆปกไบŒๅ‰ๆ ‘")

A full binary tree is a binary tree where each node has exactly 0 or 2 children.

diff --git a/problems/alphabet-board-path/README.md b/problems/alphabet-board-path/README.md index 5fb6a987b..9169fcb53 100644 --- a/problems/alphabet-board-path/README.md +++ b/problems/alphabet-board-path/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-1-bordered-square "Largest 1-Bordered Square") -## 1138. Alphabet Board Path (Medium) +## [1138. Alphabet Board Path (Medium)](https://leetcode.com/problems/alphabet-board-path "ๅญ—ๆฏๆฟไธŠ็š„่ทฏๅพ„")

On an alphabet board, we start at position (0, 0), corresponding to character board[0][0].

diff --git a/problems/ambiguous-coordinates/README.md b/problems/ambiguous-coordinates/README.md index 431255ff9..456d7ee44 100644 --- a/problems/ambiguous-coordinates/README.md +++ b/problems/ambiguous-coordinates/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/linked-list-components "Linked List Components") -## 816. Ambiguous Coordinates (Medium) +## [816. Ambiguous Coordinates (Medium)](https://leetcode.com/problems/ambiguous-coordinates "ๆจก็ณŠๅๆ ‡")

We had some 2-dimensional coordinates, like "(1, 3)" or "(2, 0.5)".  Then, we removed all commas, decimal points, and spaces, and ended up with the string S.  Return a list of strings representing all possibilities for what our original coordinates could have been.

diff --git a/problems/analyze-user-website-visit-pattern/README.md b/problems/analyze-user-website-visit-pattern/README.md index cf1fa55fc..3b8cfcf03 100644 --- a/problems/analyze-user-website-visit-pattern/README.md +++ b/problems/analyze-user-website-visit-pattern/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/string-transforms-into-another-string "String Transforms Into Another String") -## 1152. Analyze User Website Visit Pattern (Medium) +## [1152. Analyze User Website Visit Pattern (Medium)](https://leetcode.com/problems/analyze-user-website-visit-pattern "็”จๆˆท็ฝ‘็ซ™่ฎฟ้—ฎ่กŒไธบๅˆ†ๆž") diff --git a/problems/android-unlock-patterns/README.md b/problems/android-unlock-patterns/README.md index 54df7d267..5c4affecb 100644 --- a/problems/android-unlock-patterns/README.md +++ b/problems/android-unlock-patterns/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/data-stream-as-disjoint-intervals "Data Stream as Disjoint Intervals") -## 351. Android Unlock Patterns (Medium) +## [351. Android Unlock Patterns (Medium)](https://leetcode.com/problems/android-unlock-patterns "ๅฎ‰ๅ“็ณป็ปŸๆ‰‹ๅŠฟ่งฃ้”") diff --git a/problems/arithmetic-slices-ii-subsequence/README.md b/problems/arithmetic-slices-ii-subsequence/README.md index e93ac14f8..98f442f54 100644 --- a/problems/arithmetic-slices-ii-subsequence/README.md +++ b/problems/arithmetic-slices-ii-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-boomerangs "Number of Boomerangs") -## 446. Arithmetic Slices II - Subsequence (Hard) +## [446. Arithmetic Slices II - Subsequence (Hard)](https://leetcode.com/problems/arithmetic-slices-ii-subsequence "็ญ‰ๅทฎๆ•ฐๅˆ—ๅˆ’ๅˆ† II - ๅญๅบๅˆ—")

A sequence of numbers is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.

diff --git a/problems/arithmetic-slices/README.md b/problems/arithmetic-slices/README.md index b492e772e..558f11dcb 100644 --- a/problems/arithmetic-slices/README.md +++ b/problems/arithmetic-slices/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/third-maximum-number "Third Maximum Number") -## 413. Arithmetic Slices (Medium) +## [413. Arithmetic Slices (Medium)](https://leetcode.com/problems/arithmetic-slices "็ญ‰ๅทฎๆ•ฐๅˆ—ๅˆ’ๅˆ†")

A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.

diff --git a/problems/armstrong-number/README.md b/problems/armstrong-number/README.md index f005fcda9..1c759dd13 100644 --- a/problems/armstrong-number/README.md +++ b/problems/armstrong-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/connecting-cities-with-minimum-cost "Connecting Cities With Minimum Cost") -## 1134. Armstrong Number (Easy) +## [1134. Armstrong Number (Easy)](https://leetcode.com/problems/armstrong-number "้˜ฟๅง†ๆ–ฏ็‰นๆœ—ๆ•ฐ") diff --git a/problems/arranging-coins/README.md b/problems/arranging-coins/README.md index 50e0d6f23..b36f01797 100644 --- a/problems/arranging-coins/README.md +++ b/problems/arranging-coins/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-all-duplicates-in-an-array "Find All Duplicates in an Array") -## 441. Arranging Coins (Easy) +## [441. Arranging Coins (Easy)](https://leetcode.com/problems/arranging-coins "ๆŽ’ๅˆ—็กฌๅธ")

You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.

diff --git a/problems/array-nesting/README.md b/problems/array-nesting/README.md index 07b1b708e..bacb1b266 100644 --- a/problems/array-nesting/README.md +++ b/problems/array-nesting/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reshape-the-matrix "Reshape the Matrix") -## 565. Array Nesting (Medium) +## [565. Array Nesting (Medium)](https://leetcode.com/problems/array-nesting "ๆ•ฐ็ป„ๅตŒๅฅ—")

A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[A[i]]], ... } subjected to the rule below.

diff --git a/problems/array-of-doubled-pairs/README.md b/problems/array-of-doubled-pairs/README.md index 34b1f844a..57aa8de4f 100644 --- a/problems/array-of-doubled-pairs/README.md +++ b/problems/array-of-doubled-pairs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/delete-columns-to-make-sorted-ii "Delete Columns to Make Sorted II") -## 954. Array of Doubled Pairs (Medium) +## [954. Array of Doubled Pairs (Medium)](https://leetcode.com/problems/array-of-doubled-pairs "ไบŒๅ€ๆ•ฐๅฏนๆ•ฐ็ป„")

Given an array of integers A with even length, return true if and only if it is possible to reorder it such that A[2 * i + 1] = 2 * A[2 * i] for every 0 <= i < len(A) / 2.

diff --git a/problems/array-partition-i/README.md b/problems/array-partition-i/README.md index ec7eefcdc..77ae9f4b1 100644 --- a/problems/array-partition-i/README.md +++ b/problems/array-partition-i/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-line-of-consecutive-one-in-matrix "Longest Line of Consecutive One in Matrix") -## 561. Array Partition I (Easy) +## [561. Array Partition I (Easy)](https://leetcode.com/problems/array-partition-i "ๆ•ฐ็ป„ๆ‹†ๅˆ† I")

Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible. diff --git a/problems/article-views-i/README.md b/problems/article-views-i/README.md index 668d9f60b..1991afa6b 100644 --- a/problems/article-views-i/README.md +++ b/problems/article-views-i/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/article-views-ii "Article Views II") -## 1148. Article Views I (Easy) +## [1148. Article Views I (Easy)](https://leetcode.com/problems/article-views-i "") diff --git a/problems/article-views-ii/README.md b/problems/article-views-ii/README.md index cf2bc319f..89ac1d235 100644 --- a/problems/article-views-ii/README.md +++ b/problems/article-views-ii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/check-if-a-number-is-majority-element-in-a-sorted-array "Check If a Number Is Majority Element in a Sorted Array") -## 1149. Article Views II (Medium) +## [1149. Article Views II (Medium)](https://leetcode.com/problems/article-views-ii "") diff --git a/problems/as-far-from-land-as-possible/README.md b/problems/as-far-from-land-as-possible/README.md index 27457ed7b..108a4ee86 100644 --- a/problems/as-far-from-land-as-possible/README.md +++ b/problems/as-far-from-land-as-possible/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/last-substring-in-lexicographical-order "Last Substring in Lexicographical Order") -## 1162. As Far from Land as Possible (Medium) +## [1162. As Far from Land as Possible (Medium)](https://leetcode.com/problems/as-far-from-land-as-possible "ๅœฐๅ›พๅˆ†ๆž")

Given an N x N grid containing only values 0 and 1, where 0 represents water and 1 represents land, find a water cell such that its distance to the nearest land cell is maximized and return the distance.

diff --git a/problems/assign-cookies/README.md b/problems/assign-cookies/README.md index 405868b10..4fd1ef220 100644 --- a/problems/assign-cookies/README.md +++ b/problems/assign-cookies/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/132-pattern "132 Pattern") -## 455. Assign Cookies (Easy) +## [455. Assign Cookies (Easy)](https://leetcode.com/problems/assign-cookies "ๅˆ†ๅ‘้ฅผๅนฒ")

Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size of a cookie that the child will be content with; and each cookie j has a size sj. If sj >= gi, we can assign the cookie j to the child i, and the child i will be content. Your goal is to maximize the number of your content children and output the maximum number. diff --git a/problems/asteroid-collision/README.md b/problems/asteroid-collision/README.md index 157504772..b8a2887d6 100644 --- a/problems/asteroid-collision/README.md +++ b/problems/asteroid-collision/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/parse-lisp-expression "Parse Lisp Expression") -## 735. Asteroid Collision (Medium) +## [735. Asteroid Collision (Medium)](https://leetcode.com/problems/asteroid-collision "่กŒๆ˜Ÿ็ขฐๆ’ž")

We are given an array asteroids of integers representing asteroids in a row. diff --git a/problems/available-captures-for-rook/README.md b/problems/available-captures-for-rook/README.md index f0d7b2298..4efa68d81 100644 --- a/problems/available-captures-for-rook/README.md +++ b/problems/available-captures-for-rook/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-cost-to-merge-stones "Minimum Cost to Merge Stones") -## 999. Available Captures for Rook (Easy) +## [999. Available Captures for Rook (Easy)](https://leetcode.com/problems/available-captures-for-rook "่ฝฆ็š„ๅฏ็”จๆ•่Žท้‡")

On an 8 x 8 chessboard, there is one white rook.  There also may be empty squares, white bishops, and black pawns.  These are given as characters 'R', '.', 'B', and 'p' respectively. Uppercase characters represent white pieces, and lowercase characters represent black pieces.

diff --git a/problems/average-of-levels-in-binary-tree/README.md b/problems/average-of-levels-in-binary-tree/README.md index 9162f32df..9d7ddcafb 100644 --- a/problems/average-of-levels-in-binary-tree/README.md +++ b/problems/average-of-levels-in-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shopping-offers "Shopping Offers") -## 637. Average of Levels in Binary Tree (Easy) +## [637. Average of Levels in Binary Tree (Easy)](https://leetcode.com/problems/average-of-levels-in-binary-tree "ไบŒๅ‰ๆ ‘็š„ๅฑ‚ๅนณๅ‡ๅ€ผ") Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. diff --git a/problems/average-salary-departments-vs-company/README.md b/problems/average-salary-departments-vs-company/README.md index 13186c5e2..3ca09ca73 100644 --- a/problems/average-salary-departments-vs-company/README.md +++ b/problems/average-salary-departments-vs-company/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/add-bold-tag-in-string "Add Bold Tag in String") -## 615. Average Salary: Departments VS Company (Hard) +## [615. Average Salary: Departments VS Company (Hard)](https://leetcode.com/problems/average-salary-departments-vs-company "ๅนณๅ‡ๅทฅ่ต„๏ผš้ƒจ้—จไธŽๅ…ฌๅธๆฏ”่พƒ") Given two tables as below, write a query to display the comparison result (higher/lower/same) of the average salary of employees in a department to the company's average salary.

 

diff --git a/problems/backspace-string-compare/README.md b/problems/backspace-string-compare/README.md index 08d61e33e..74c1bec95 100644 --- a/problems/backspace-string-compare/README.md +++ b/problems/backspace-string-compare/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-mountain-in-array "Longest Mountain in Array") -## 844. Backspace String Compare (Easy) +## [844. Backspace String Compare (Easy)](https://leetcode.com/problems/backspace-string-compare "ๆฏ”่พƒๅซ้€€ๆ ผ็š„ๅญ—็ฌฆไธฒ")

Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.

diff --git a/problems/bag-of-tokens/README.md b/problems/bag-of-tokens/README.md index db37c9d69..cd950c911 100644 --- a/problems/bag-of-tokens/README.md +++ b/problems/bag-of-tokens/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-time-for-given-digits "Largest Time for Given Digits") -## 948. Bag of Tokens (Medium) +## [948. Bag of Tokens (Medium)](https://leetcode.com/problems/bag-of-tokens "ไปค็‰Œๆ”พ็ฝฎ")

You have an initial power P, an initial score of 0 points, and a bag of tokens.

diff --git a/problems/balanced-binary-tree/README.md b/problems/balanced-binary-tree/README.md index 2a2c59f1b..2963d9f26 100644 --- a/problems/balanced-binary-tree/README.md +++ b/problems/balanced-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-depth-of-binary-tree "Minimum Depth of Binary Tree") -## 110. Balanced Binary Tree (Easy) +## [110. Balanced Binary Tree (Easy)](https://leetcode.com/problems/balanced-binary-tree "ๅนณ่กกไบŒๅ‰ๆ ‘")

Given a binary tree, determine if it is height-balanced.

diff --git a/problems/base-7/README.md b/problems/base-7/README.md index 6e17c21f2..7d207887d 100644 --- a/problems/base-7/README.md +++ b/problems/base-7/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/the-maze-ii "The Maze II") -## 504. Base 7 (Easy) +## [504. Base 7 (Easy)](https://leetcode.com/problems/base-7 "ไธƒ่ฟ›ๅˆถๆ•ฐ")

Given an integer, return its base 7 string representation.

diff --git a/problems/baseball-game/README.md b/problems/baseball-game/README.md index bd2afbad3..72c31eabf 100644 --- a/problems/baseball-game/README.md +++ b/problems/baseball-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/k-empty-slots "K Empty Slots") -## 682. Baseball Game (Easy) +## [682. Baseball Game (Easy)](https://leetcode.com/problems/baseball-game "ๆฃ’็ƒๆฏ”่ต›")

You're now a baseball game point recorder. diff --git a/problems/basic-calculator-ii/README.md b/problems/basic-calculator-ii/README.md index 65318a7ee..4c9974439 100644 --- a/problems/basic-calculator-ii/README.md +++ b/problems/basic-calculator-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/summary-ranges "Summary Ranges") -## 227. Basic Calculator II (Medium) +## [227. Basic Calculator II (Medium)](https://leetcode.com/problems/basic-calculator-ii "ๅŸบๆœฌ่ฎก็ฎ—ๅ™จ II")

Implement a basic calculator to evaluate a simple expression string.

diff --git a/problems/basic-calculator-iii/README.md b/problems/basic-calculator-iii/README.md index 191307387..7fff33b94 100644 --- a/problems/basic-calculator-iii/README.md +++ b/problems/basic-calculator-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sliding-puzzle "Sliding Puzzle") -## 772. Basic Calculator III (Hard) +## [772. Basic Calculator III (Hard)](https://leetcode.com/problems/basic-calculator-iii "ๅŸบๆœฌ่ฎก็ฎ—ๅ™จ III") diff --git a/problems/basic-calculator-iv/README.md b/problems/basic-calculator-iv/README.md index 6489701f1..16b146ec8 100644 --- a/problems/basic-calculator-iv/README.md +++ b/problems/basic-calculator-iv/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/jewels-and-stones "Jewels and Stones") -## 770. Basic Calculator IV (Hard) +## [770. Basic Calculator IV (Hard)](https://leetcode.com/problems/basic-calculator-iv "ๅŸบๆœฌ่ฎก็ฎ—ๅ™จ IV")

Given an expression such as expression = "e + 8 - a + 5" and an evaluation map such as {"e": 1} (given in terms of evalvars = ["e"] and evalints = [1]), return a list of tokens representing the simplified expression, such as ["-1*a","14"]

diff --git a/problems/basic-calculator/README.md b/problems/basic-calculator/README.md index 030739dff..552780bfe 100644 --- a/problems/basic-calculator/README.md +++ b/problems/basic-calculator/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/implement-stack-using-queues "Implement Stack using Queues") -## 224. Basic Calculator (Hard) +## [224. Basic Calculator (Hard)](https://leetcode.com/problems/basic-calculator "ๅŸบๆœฌ่ฎก็ฎ—ๅ™จ")

Implement a basic calculator to evaluate a simple expression string.

diff --git a/problems/battleships-in-a-board/README.md b/problems/battleships-in-a-board/README.md index 87f4db8d6..7b49edcc7 100644 --- a/problems/battleships-in-a-board/README.md +++ b/problems/battleships-in-a-board/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/strong-password-checker "Strong Password Checker") -## 419. Battleships in a Board (Medium) +## [419. Battleships in a Board (Medium)](https://leetcode.com/problems/battleships-in-a-board "็”ฒๆฟไธŠ็š„ๆˆ˜่ˆฐ") Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may assume the following rules: diff --git a/problems/beautiful-arrangement-ii/README.md b/problems/beautiful-arrangement-ii/README.md index 0c81ddf9a..4050dc888 100644 --- a/problems/beautiful-arrangement-ii/README.md +++ b/problems/beautiful-arrangement-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/kth-smallest-number-in-multiplication-table "Kth Smallest Number in Multiplication Table") -## 667. Beautiful Arrangement II (Medium) +## [667. Beautiful Arrangement II (Medium)](https://leetcode.com/problems/beautiful-arrangement-ii "ไผ˜็พŽ็š„ๆŽ’ๅˆ— II")

Given two integers n and k, you need to construct a list which contains n different positive integers ranging from 1 to n and obeys the following requirement:
diff --git a/problems/beautiful-arrangement/README.md b/problems/beautiful-arrangement/README.md index 2ac2cb3c2..7a772f6ae 100644 --- a/problems/beautiful-arrangement/README.md +++ b/problems/beautiful-arrangement/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-abbreviation "Word Abbreviation") -## 526. Beautiful Arrangement (Medium) +## [526. Beautiful Arrangement (Medium)](https://leetcode.com/problems/beautiful-arrangement "ไผ˜็พŽ็š„ๆŽ’ๅˆ—")

Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully if one of the following is true for the ith position (1 <= i <= N) in this array:

diff --git a/problems/beautiful-array/README.md b/problems/beautiful-array/README.md index 0e6e32576..e04ac68e7 100644 --- a/problems/beautiful-array/README.md +++ b/problems/beautiful-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-recent-calls "Number of Recent Calls") -## 932. Beautiful Array (Medium) +## [932. Beautiful Array (Medium)](https://leetcode.com/problems/beautiful-array "ๆผ‚ไบฎๆ•ฐ็ป„")

For some fixed N, an array A is beautiful if it is a permutation of the integers 1, 2, ..., N, such that:

diff --git a/problems/before-and-after-puzzle/README.md b/problems/before-and-after-puzzle/README.md index 287953f84..c0335456d 100644 --- a/problems/before-and-after-puzzle/README.md +++ b/problems/before-and-after-puzzle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-distance-to-target-color "Shortest Distance to Target Color") -## 1181. Before and After Puzzle (Medium) +## [1181. Before and After Puzzle (Medium)](https://leetcode.com/problems/before-and-after-puzzle "ๅ‰ๅŽๆ‹ผๆŽฅ") diff --git a/problems/best-meeting-point/README.md b/problems/best-meeting-point/README.md index b764a635e..c7a56d049 100644 --- a/problems/best-meeting-point/README.md +++ b/problems/best-meeting-point/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/serialize-and-deserialize-binary-tree "Serialize and Deserialize Binary Tree") -## 296. Best Meeting Point (Hard) +## [296. Best Meeting Point (Hard)](https://leetcode.com/problems/best-meeting-point "ๆœ€ไฝณ็š„็ขฐๅคดๅœฐ็‚น") diff --git a/problems/best-sightseeing-pair/README.md b/problems/best-sightseeing-pair/README.md index 862c38770..d7fcb6cb2 100644 --- a/problems/best-sightseeing-pair/README.md +++ b/problems/best-sightseeing-pair/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-integer-divisible-by-k "Smallest Integer Divisible by K") -## 1014. Best Sightseeing Pair (Medium) +## [1014. Best Sightseeing Pair (Medium)](https://leetcode.com/problems/best-sightseeing-pair "ๆœ€ไฝณ่ง‚ๅ…‰็ป„ๅˆ")

Given an array A of positive integers, A[i] represents the value of the i-th sightseeing spot, and two sightseeing spots i and j have distance j - i between them.

diff --git a/problems/best-time-to-buy-and-sell-stock-ii/README.md b/problems/best-time-to-buy-and-sell-stock-ii/README.md index 9417592c8..8cea3d897 100644 --- a/problems/best-time-to-buy-and-sell-stock-ii/README.md +++ b/problems/best-time-to-buy-and-sell-stock-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/best-time-to-buy-and-sell-stock-iii "Best Time to Buy and Sell Stock III") -## 122. Best Time to Buy and Sell Stock II (Easy) +## [122. Best Time to Buy and Sell Stock II (Easy)](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii "ไนฐๅ–่‚ก็ฅจ็š„ๆœ€ไฝณๆ—ถๆœบ II")

Say you have an array for which the ith element is the price of a given stock on day i.

diff --git a/problems/best-time-to-buy-and-sell-stock-iii/README.md b/problems/best-time-to-buy-and-sell-stock-iii/README.md index 2b07bddec..765dde73b 100644 --- a/problems/best-time-to-buy-and-sell-stock-iii/README.md +++ b/problems/best-time-to-buy-and-sell-stock-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-maximum-path-sum "Binary Tree Maximum Path Sum") -## 123. Best Time to Buy and Sell Stock III (Hard) +## [123. Best Time to Buy and Sell Stock III (Hard)](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii "ไนฐๅ–่‚ก็ฅจ็š„ๆœ€ไฝณๆ—ถๆœบ III")

Say you have an array for which the ith element is the price of a given stock on day i.

diff --git a/problems/best-time-to-buy-and-sell-stock-iv/README.md b/problems/best-time-to-buy-and-sell-stock-iv/README.md index 9de8b7f5d..337decbbc 100644 --- a/problems/best-time-to-buy-and-sell-stock-iv/README.md +++ b/problems/best-time-to-buy-and-sell-stock-iv/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rotate-array "Rotate Array") -## 188. Best Time to Buy and Sell Stock IV (Hard) +## [188. Best Time to Buy and Sell Stock IV (Hard)](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv "ไนฐๅ–่‚ก็ฅจ็š„ๆœ€ไฝณๆ—ถๆœบ IV")

Say you have an array for which the i-th element is the price of a given stock on day i.

diff --git a/problems/best-time-to-buy-and-sell-stock-with-cooldown/README.md b/problems/best-time-to-buy-and-sell-stock-with-cooldown/README.md index db4bb8fd9..a677395f9 100644 --- a/problems/best-time-to-buy-and-sell-stock-with-cooldown/README.md +++ b/problems/best-time-to-buy-and-sell-stock-with-cooldown/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-height-trees "Minimum Height Trees") -## 309. Best Time to Buy and Sell Stock with Cooldown (Medium) +## [309. Best Time to Buy and Sell Stock with Cooldown (Medium)](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown "ๆœ€ไฝณไนฐๅ–่‚ก็ฅจๆ—ถๆœบๅซๅ†ทๅ†ปๆœŸ")

Say you have an array for which the ith element is the price of a given stock on day i.

diff --git a/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/README.md b/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/README.md index 90137c03f..5ec74f3eb 100644 --- a/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/README.md +++ b/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/range-module "Range Module") -## 714. Best Time to Buy and Sell Stock with Transaction Fee (Medium) +## [714. Best Time to Buy and Sell Stock with Transaction Fee (Medium)](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee "ไนฐๅ–่‚ก็ฅจ็š„ๆœ€ไฝณๆ—ถๆœบๅซๆ‰‹็ปญ่ดน")

Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a non-negative integer fee representing a transaction fee.

You may complete as many transactions as you like, but you need to pay the transaction fee for each transaction. You may not buy more than 1 share of a stock at a time (ie. you must sell the stock share before you buy again.)

diff --git a/problems/best-time-to-buy-and-sell-stock/README.md b/problems/best-time-to-buy-and-sell-stock/README.md index 433df30d1..1705d22ca 100644 --- a/problems/best-time-to-buy-and-sell-stock/README.md +++ b/problems/best-time-to-buy-and-sell-stock/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/best-time-to-buy-and-sell-stock-ii "Best Time to Buy and Sell Stock II") -## 121. Best Time to Buy and Sell Stock (Easy) +## [121. Best Time to Buy and Sell Stock (Easy)](https://leetcode.com/problems/best-time-to-buy-and-sell-stock "ไนฐๅ–่‚ก็ฅจ็š„ๆœ€ไฝณๆ—ถๆœบ")

Say you have an array for which the ith element is the price of a given stock on day i.

diff --git a/problems/big-countries/README.md b/problems/big-countries/README.md index 4af836a6f..789041a13 100644 --- a/problems/big-countries/README.md +++ b/problems/big-countries/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/classes-more-than-5-students "Classes More Than 5 Students") -## 595. Big Countries (Easy) +## [595. Big Countries (Easy)](https://leetcode.com/problems/big-countries "ๅคง็š„ๅ›ฝๅฎถ")

There is a table World

diff --git a/problems/biggest-single-number/README.md b/problems/biggest-single-number/README.md index 0413e2a25..e95049561 100644 --- a/problems/biggest-single-number/README.md +++ b/problems/biggest-single-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/not-boring-movies "Not Boring Movies") -## 619. Biggest Single Number (Easy) +## [619. Biggest Single Number (Easy)](https://leetcode.com/problems/biggest-single-number "ๅชๅ‡บ็Žฐไธ€ๆฌก็š„ๆœ€ๅคงๆ•ฐๅญ—")

Table my_numbers contains many numbers in column num including duplicated ones.
Can you write a SQL query to find the biggest number, which only appears once.

diff --git a/problems/binary-gap/README.md b/problems/binary-gap/README.md index 9094d0185..5930ec74a 100644 --- a/problems/binary-gap/README.md +++ b/problems/binary-gap/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reordered-power-of-2 "Reordered Power of 2") -## 868. Binary Gap (Easy) +## [868. Binary Gap (Easy)](https://leetcode.com/problems/binary-gap "ไบŒ่ฟ›ๅˆถ้—ด่ท")

Given a positive integer N, find and return the longest distance between two consecutive 1's in the binary representation of N.

diff --git a/problems/binary-number-with-alternating-bits/README.md b/problems/binary-number-with-alternating-bits/README.md index 9dbbff333..750776eb3 100644 --- a/problems/binary-number-with-alternating-bits/README.md +++ b/problems/binary-number-with-alternating-bits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-distinct-islands "Number of Distinct Islands") -## 693. Binary Number with Alternating Bits (Easy) +## [693. Binary Number with Alternating Bits (Easy)](https://leetcode.com/problems/binary-number-with-alternating-bits "ไบคๆ›ฟไฝไบŒ่ฟ›ๅˆถๆ•ฐ")

Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values.

diff --git a/problems/binary-prefix-divisible-by-5/README.md b/problems/binary-prefix-divisible-by-5/README.md index 99a11f34e..f1030d7fd 100644 --- a/problems/binary-prefix-divisible-by-5/README.md +++ b/problems/binary-prefix-divisible-by-5/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/next-greater-node-in-linked-list "Next Greater Node In Linked List") -## 1018. Binary Prefix Divisible By 5 (Easy) +## [1018. Binary Prefix Divisible By 5 (Easy)](https://leetcode.com/problems/binary-prefix-divisible-by-5 "ๅฏ่ขซ 5 ๆ•ด้™ค็š„ไบŒ่ฟ›ๅˆถๅ‰็ผ€")

Given an array A of 0s and 1s, consider N_i: the i-th subarray from A[0] to A[i] interpreted as a binary number (from most-significant-bit to least-significant-bit.)

diff --git a/problems/binary-search-tree-iterator/README.md b/problems/binary-search-tree-iterator/README.md index eeb2d2e1d..c1530afee 100644 --- a/problems/binary-search-tree-iterator/README.md +++ b/problems/binary-search-tree-iterator/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/dungeon-game "Dungeon Game") -## 173. Binary Search Tree Iterator (Medium) +## [173. Binary Search Tree Iterator (Medium)](https://leetcode.com/problems/binary-search-tree-iterator "ไบŒๅ‰ๆœ็ดขๆ ‘่ฟญไปฃๅ™จ")

Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.

diff --git a/problems/binary-search-tree-to-greater-sum-tree/README.md b/problems/binary-search-tree-to-greater-sum-tree/README.md index 858312f62..bf74c778e 100644 --- a/problems/binary-search-tree-to-greater-sum-tree/README.md +++ b/problems/binary-search-tree-to-greater-sum-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-score-triangulation-of-polygon "Minimum Score Triangulation of Polygon") -## 1038. Binary Search Tree to Greater Sum Tree (Medium) +## [1038. Binary Search Tree to Greater Sum Tree (Medium)](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree "ไปŽไบŒๅ‰ๆœ็ดขๆ ‘ๅˆฐๆ›ดๅคงๅ’Œๆ ‘")

Given the root of a binary search tree with distinct values, modify it so that every node has a new value equal to the sum of the values of the original tree that are greater than or equal to node.val.

diff --git a/problems/binary-search/README.md b/problems/binary-search/README.md index fff14967e..072193658 100644 --- a/problems/binary-search/README.md +++ b/problems/binary-search/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-hashset "Design HashSet") -## 704. Binary Search (Easy) +## [704. Binary Search (Easy)](https://leetcode.com/problems/binary-search "ไบŒๅˆ†ๆŸฅๆ‰พ")

Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If target exists, then return its index, otherwise return -1.

diff --git a/problems/binary-string-with-substrings-representing-1-to-n/README.md b/problems/binary-string-with-substrings-representing-1-to-n/README.md index 11bd1f17e..71e405ef9 100644 --- a/problems/binary-string-with-substrings-representing-1-to-n/README.md +++ b/problems/binary-string-with-substrings-representing-1-to-n/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/convert-to-base-2 "Convert to Base -2") -## 1016. Binary String With Substrings Representing 1 To N (Medium) +## [1016. Binary String With Substrings Representing 1 To N (Medium)](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n "ๅญไธฒ่ƒฝ่กจ็คบไปŽ 1 ๅˆฐ N ๆ•ฐๅญ—็š„ไบŒ่ฟ›ๅˆถไธฒ")

Given a binary string S (a string consisting only of '0' and '1's) and a positive integer N, return true if and only if for every integer X from 1 to N, the binary representation of X is a substring of S.

diff --git a/problems/binary-subarrays-with-sum/README.md b/problems/binary-subarrays-with-sum/README.md index 43a4c0d9b..9a30b8d6c 100644 --- a/problems/binary-subarrays-with-sum/README.md +++ b/problems/binary-subarrays-with-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-falling-path-sum "Minimum Falling Path Sum") -## 930. Binary Subarrays With Sum (Medium) +## [930. Binary Subarrays With Sum (Medium)](https://leetcode.com/problems/binary-subarrays-with-sum "ๅ’Œ็›ธๅŒ็š„ไบŒๅ…ƒๅญๆ•ฐ็ป„")

In an array A of 0s and 1s, how many non-empty subarrays have sum S?

diff --git a/problems/binary-tree-cameras/README.md b/problems/binary-tree-cameras/README.md index 8140f8ba1..adec9afaa 100644 --- a/problems/binary-tree-cameras/README.md +++ b/problems/binary-tree-cameras/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/pancake-sorting "Pancake Sorting") -## 968. Binary Tree Cameras (Hard) +## [968. Binary Tree Cameras (Hard)](https://leetcode.com/problems/binary-tree-cameras "็›‘ๆŽงไบŒๅ‰ๆ ‘")

Given a binary tree, we install cameras on the nodes of the tree. 

diff --git a/problems/binary-tree-coloring-game/README.md b/problems/binary-tree-coloring-game/README.md index f22263916..67f8b1efa 100644 --- a/problems/binary-tree-coloring-game/README.md +++ b/problems/binary-tree-coloring-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/snapshot-array "Snapshot Array") -## 1145. Binary Tree Coloring Game (Medium) +## [1145. Binary Tree Coloring Game (Medium)](https://leetcode.com/problems/binary-tree-coloring-game "ไบŒๅ‰ๆ ‘็€่‰ฒๆธธๆˆ")

Two players play a turn based game on a binary tree.  We are given the root of this binary tree, and the number of nodes n in the tree.  n is odd, and each node has a distinct value from 1 to n.

diff --git a/problems/binary-tree-inorder-traversal/README.md b/problems/binary-tree-inorder-traversal/README.md index 4ed9c2ac3..d88708f8a 100644 --- a/problems/binary-tree-inorder-traversal/README.md +++ b/problems/binary-tree-inorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-binary-search-trees-ii "Unique Binary Search Trees II") -## 94. Binary Tree Inorder Traversal (Medium) +## [94. Binary Tree Inorder Traversal (Medium)](https://leetcode.com/problems/binary-tree-inorder-traversal "ไบŒๅ‰ๆ ‘็š„ไธญๅบ้ๅކ")

Given a binary tree, return the inorder traversal of its nodes' values.

diff --git a/problems/binary-tree-level-order-traversal-ii/README.md b/problems/binary-tree-level-order-traversal-ii/README.md index 6e7098913..eb3aa1978 100644 --- a/problems/binary-tree-level-order-traversal-ii/README.md +++ b/problems/binary-tree-level-order-traversal-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/convert-sorted-array-to-binary-search-tree "Convert Sorted Array to Binary Search Tree") -## 107. Binary Tree Level Order Traversal II (Easy) +## [107. Binary Tree Level Order Traversal II (Easy)](https://leetcode.com/problems/binary-tree-level-order-traversal-ii "ไบŒๅ‰ๆ ‘็š„ๅฑ‚ๆฌก้ๅކ II")

Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).

diff --git a/problems/binary-tree-level-order-traversal/README.md b/problems/binary-tree-level-order-traversal/README.md index b96d86ac1..ee83f0976 100644 --- a/problems/binary-tree-level-order-traversal/README.md +++ b/problems/binary-tree-level-order-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-zigzag-level-order-traversal "Binary Tree Zigzag Level Order Traversal") -## 102. Binary Tree Level Order Traversal (Medium) +## [102. Binary Tree Level Order Traversal (Medium)](https://leetcode.com/problems/binary-tree-level-order-traversal "ไบŒๅ‰ๆ ‘็š„ๅฑ‚ๆฌก้ๅކ")

Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).

diff --git a/problems/binary-tree-longest-consecutive-sequence-ii/README.md b/problems/binary-tree-longest-consecutive-sequence-ii/README.md index 4dc6c7382..ecc6a11ed 100644 --- a/problems/binary-tree-longest-consecutive-sequence-ii/README.md +++ b/problems/binary-tree-longest-consecutive-sequence-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/game-play-analysis-iv "Game Play Analysis IV") -## 549. Binary Tree Longest Consecutive Sequence II (Medium) +## [549. Binary Tree Longest Consecutive Sequence II (Medium)](https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii "ไบŒๅ‰ๆ ‘ไธญๆœ€้•ฟ็š„่ฟž็ปญๅบๅˆ—") diff --git a/problems/binary-tree-longest-consecutive-sequence/README.md b/problems/binary-tree-longest-consecutive-sequence/README.md index 967f96328..11bac2bda 100644 --- a/problems/binary-tree-longest-consecutive-sequence/README.md +++ b/problems/binary-tree-longest-consecutive-sequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bulls-and-cows "Bulls and Cows") -## 298. Binary Tree Longest Consecutive Sequence (Medium) +## [298. Binary Tree Longest Consecutive Sequence (Medium)](https://leetcode.com/problems/binary-tree-longest-consecutive-sequence "ไบŒๅ‰ๆ ‘ๆœ€้•ฟ่ฟž็ปญๅบๅˆ—") diff --git a/problems/binary-tree-maximum-path-sum/README.md b/problems/binary-tree-maximum-path-sum/README.md index 026dae992..8bf8689e5 100644 --- a/problems/binary-tree-maximum-path-sum/README.md +++ b/problems/binary-tree-maximum-path-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-palindrome "Valid Palindrome") -## 124. Binary Tree Maximum Path Sum (Hard) +## [124. Binary Tree Maximum Path Sum (Hard)](https://leetcode.com/problems/binary-tree-maximum-path-sum "ไบŒๅ‰ๆ ‘ไธญ็š„ๆœ€ๅคง่ทฏๅพ„ๅ’Œ")

Given a non-empty binary tree, find the maximum path sum.

diff --git a/problems/binary-tree-paths/README.md b/problems/binary-tree-paths/README.md index cbdda781b..6df4189b2 100644 --- a/problems/binary-tree-paths/README.md +++ b/problems/binary-tree-paths/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/add-digits "Add Digits") -## 257. Binary Tree Paths (Easy) +## [257. Binary Tree Paths (Easy)](https://leetcode.com/problems/binary-tree-paths "ไบŒๅ‰ๆ ‘็š„ๆ‰€ๆœ‰่ทฏๅพ„")

Given a binary tree, return all root-to-leaf paths.

diff --git a/problems/binary-tree-postorder-traversal/README.md b/problems/binary-tree-postorder-traversal/README.md index 74d818970..926a0321e 100644 --- a/problems/binary-tree-postorder-traversal/README.md +++ b/problems/binary-tree-postorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lru-cache "LRU Cache") -## 145. Binary Tree Postorder Traversal (Hard) +## [145. Binary Tree Postorder Traversal (Hard)](https://leetcode.com/problems/binary-tree-postorder-traversal "ไบŒๅ‰ๆ ‘็š„ๅŽๅบ้ๅކ")

Given a binary tree, return the postorder traversal of its nodes' values.

diff --git a/problems/binary-tree-preorder-traversal/README.md b/problems/binary-tree-preorder-traversal/README.md index 52c6da4c3..be1447b53 100644 --- a/problems/binary-tree-preorder-traversal/README.md +++ b/problems/binary-tree-preorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-postorder-traversal "Binary Tree Postorder Traversal") -## 144. Binary Tree Preorder Traversal (Medium) +## [144. Binary Tree Preorder Traversal (Medium)](https://leetcode.com/problems/binary-tree-preorder-traversal "ไบŒๅ‰ๆ ‘็š„ๅ‰ๅบ้ๅކ")

Given a binary tree, return the preorder traversal of its nodes' values.

diff --git a/problems/binary-tree-pruning/README.md b/problems/binary-tree-pruning/README.md index b9d7c20c3..703a73320 100644 --- a/problems/binary-tree-pruning/README.md +++ b/problems/binary-tree-pruning/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bus-routes "Bus Routes") -## 814. Binary Tree Pruning (Medium) +## [814. Binary Tree Pruning (Medium)](https://leetcode.com/problems/binary-tree-pruning "ไบŒๅ‰ๆ ‘ๅ‰ชๆž")

We are given the head node root of a binary tree, where additionally every node's value is either a 0 or a 1.

diff --git a/problems/binary-tree-right-side-view/README.md b/problems/binary-tree-right-side-view/README.md index 9c73cd0d2..5ece4c4b9 100644 --- a/problems/binary-tree-right-side-view/README.md +++ b/problems/binary-tree-right-side-view/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-islands "Number of Islands") -## 199. Binary Tree Right Side View (Medium) +## [199. Binary Tree Right Side View (Medium)](https://leetcode.com/problems/binary-tree-right-side-view "ไบŒๅ‰ๆ ‘็š„ๅณ่ง†ๅ›พ")

Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.

diff --git a/problems/binary-tree-tilt/README.md b/problems/binary-tree-tilt/README.md index fbc71d875..88b2a8815 100644 --- a/problems/binary-tree-tilt/README.md +++ b/problems/binary-tree-tilt/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-the-closest-palindrome "Find the Closest Palindrome") -## 563. Binary Tree Tilt (Easy) +## [563. Binary Tree Tilt (Easy)](https://leetcode.com/problems/binary-tree-tilt "ไบŒๅ‰ๆ ‘็š„ๅกๅบฆ")

Given a binary tree, return the tilt of the whole tree.

diff --git a/problems/binary-tree-upside-down/README.md b/problems/binary-tree-upside-down/README.md index ae4d2598d..7ea8ca45e 100644 --- a/problems/binary-tree-upside-down/README.md +++ b/problems/binary-tree-upside-down/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/read-n-characters-given-read4 "Read N Characters Given Read4") -## 156. Binary Tree Upside Down (Medium) +## [156. Binary Tree Upside Down (Medium)](https://leetcode.com/problems/binary-tree-upside-down "ไธŠไธ‹็ฟป่ฝฌไบŒๅ‰ๆ ‘") diff --git a/problems/binary-tree-vertical-order-traversal/README.md b/problems/binary-tree-vertical-order-traversal/README.md index 7fb9bce61..9d323bd66 100644 --- a/problems/binary-tree-vertical-order-traversal/README.md +++ b/problems/binary-tree-vertical-order-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-of-smaller-numbers-after-self "Count of Smaller Numbers After Self") -## 314. Binary Tree Vertical Order Traversal (Medium) +## [314. Binary Tree Vertical Order Traversal (Medium)](https://leetcode.com/problems/binary-tree-vertical-order-traversal "ไบŒๅ‰ๆ ‘็š„ๅž‚็›ด้ๅކ") diff --git a/problems/binary-tree-zigzag-level-order-traversal/README.md b/problems/binary-tree-zigzag-level-order-traversal/README.md index 6ba856d29..72bf179c9 100644 --- a/problems/binary-tree-zigzag-level-order-traversal/README.md +++ b/problems/binary-tree-zigzag-level-order-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-depth-of-binary-tree "Maximum Depth of Binary Tree") -## 103. Binary Tree Zigzag Level Order Traversal (Medium) +## [103. Binary Tree Zigzag Level Order Traversal (Medium)](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal "ไบŒๅ‰ๆ ‘็š„้”ฏ้ฝฟๅฝขๅฑ‚ๆฌก้ๅކ")

Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).

diff --git a/problems/binary-trees-with-factors/README.md b/problems/binary-trees-with-factors/README.md index 334499d93..393b0705d 100644 --- a/problems/binary-trees-with-factors/README.md +++ b/problems/binary-trees-with-factors/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/goat-latin "Goat Latin") -## 823. Binary Trees With Factors (Medium) +## [823. Binary Trees With Factors (Medium)](https://leetcode.com/problems/binary-trees-with-factors "ๅธฆๅ› ๅญ็š„ไบŒๅ‰ๆ ‘")

Given an array of unique integers, each integer is strictly greater than 1.

diff --git a/problems/binary-watch/README.md b/problems/binary-watch/README.md index 828d19bd1..8a6b895f3 100644 --- a/problems/binary-watch/README.md +++ b/problems/binary-watch/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-k-digits "Remove K Digits") -## 401. Binary Watch (Easy) +## [401. Binary Watch (Easy)](https://leetcode.com/problems/binary-watch "ไบŒ่ฟ›ๅˆถๆ‰‹่กจ")

A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59).

Each LED represents a zero or one, with the least significant bit on the right.

diff --git a/problems/bitwise-and-of-numbers-range/README.md b/problems/bitwise-and-of-numbers-range/README.md index f8137de1e..b0738a994 100644 --- a/problems/bitwise-and-of-numbers-range/README.md +++ b/problems/bitwise-and-of-numbers-range/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/happy-number "Happy Number") -## 201. Bitwise AND of Numbers Range (Medium) +## [201. Bitwise AND of Numbers Range (Medium)](https://leetcode.com/problems/bitwise-and-of-numbers-range "ๆ•ฐๅญ—่Œƒๅ›ดๆŒ‰ไฝไธŽ")

Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive.

diff --git a/problems/bitwise-ors-of-subarrays/README.md b/problems/bitwise-ors-of-subarrays/README.md index b2e4cb502..1b9e160c2 100644 --- a/problems/bitwise-ors-of-subarrays/README.md +++ b/problems/bitwise-ors-of-subarrays/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/orderly-queue "Orderly Queue") -## 898. Bitwise ORs of Subarrays (Medium) +## [898. Bitwise ORs of Subarrays (Medium)](https://leetcode.com/problems/bitwise-ors-of-subarrays "ๅญๆ•ฐ็ป„ๆŒ‰ไฝๆˆ–ๆ“ไฝœ")

We have an array A of non-negative integers.

diff --git a/problems/boats-to-save-people/README.md b/problems/boats-to-save-people/README.md index 6e827a3ba..ce89022df 100644 --- a/problems/boats-to-save-people/README.md +++ b/problems/boats-to-save-people/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reachable-nodes-in-subdivided-graph "Reachable Nodes In Subdivided Graph") -## 881. Boats to Save People (Medium) +## [881. Boats to Save People (Medium)](https://leetcode.com/problems/boats-to-save-people "ๆ•‘็”Ÿ่‰‡")

The i-th person has weight people[i], and each boat can carry a maximum weight of limit.

diff --git a/problems/bold-words-in-string/README.md b/problems/bold-words-in-string/README.md index 2c74ad0fe..b04ce2690 100644 --- a/problems/bold-words-in-string/README.md +++ b/problems/bold-words-in-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/employee-free-time "Employee Free Time") -## 758. Bold Words in String (Easy) +## [758. Bold Words in String (Easy)](https://leetcode.com/problems/bold-words-in-string "ๅญ—็ฌฆไธฒไธญ็š„ๅŠ ็ฒ—ๅ•่ฏ") diff --git a/problems/bomb-enemy/README.md b/problems/bomb-enemy/README.md index 570d3f226..118362caa 100644 --- a/problems/bomb-enemy/README.md +++ b/problems/bomb-enemy/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-hit-counter "Design Hit Counter") -## 361. Bomb Enemy (Medium) +## [361. Bomb Enemy (Medium)](https://leetcode.com/problems/bomb-enemy "่ฝฐ็‚ธๆ•Œไบบ") diff --git a/problems/boundary-of-binary-tree/README.md b/problems/boundary-of-binary-tree/README.md index e72915346..bd1e444f1 100644 --- a/problems/boundary-of-binary-tree/README.md +++ b/problems/boundary-of-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-boxes "Remove Boxes") -## 545. Boundary of Binary Tree (Medium) +## [545. Boundary of Binary Tree (Medium)](https://leetcode.com/problems/boundary-of-binary-tree "ไบŒๅ‰ๆ ‘็š„่พน็•Œ") diff --git a/problems/brace-expansion-ii/README.md b/problems/brace-expansion-ii/README.md index 1577f2c7d..f9ee8ffd1 100644 --- a/problems/brace-expansion-ii/README.md +++ b/problems/brace-expansion-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/game-play-analysis-v "Game Play Analysis V") -## 1096. Brace Expansion II (Hard) +## [1096. Brace Expansion II (Hard)](https://leetcode.com/problems/brace-expansion-ii "่Šฑๆ‹ฌๅทๅฑ•ๅผ€ II")

Under a grammar given below, strings can represent a set of lowercase words.  Let's use R(expr) to denote the set of words the expression represents.

diff --git a/problems/brace-expansion/README.md b/problems/brace-expansion/README.md index 5109d851e..0eb83f826 100644 --- a/problems/brace-expansion/README.md +++ b/problems/brace-expansion/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/confusing-number-ii "Confusing Number II") -## 1087. Brace Expansion (Medium) +## [1087. Brace Expansion (Medium)](https://leetcode.com/problems/brace-expansion "ๅญ—ๆฏๅˆ‡ๆข") diff --git a/problems/brick-wall/README.md b/problems/brick-wall/README.md index ff6076a3f..395abdbb9 100644 --- a/problems/brick-wall/README.md +++ b/problems/brick-wall/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/split-concatenated-strings "Split Concatenated Strings") -## 554. Brick Wall (Medium) +## [554. Brick Wall (Medium)](https://leetcode.com/problems/brick-wall "็ –ๅข™")

There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different width. You want to draw a vertical line from the top to the bottom and cross the least bricks.

diff --git a/problems/bricks-falling-when-hit/README.md b/problems/bricks-falling-when-hit/README.md index 4910dd9a8..a5df4460a 100644 --- a/problems/bricks-falling-when-hit/README.md +++ b/problems/bricks-falling-when-hit/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-morse-code-words "Unique Morse Code Words") -## 803. Bricks Falling When Hit (Hard) +## [803. Bricks Falling When Hit (Hard)](https://leetcode.com/problems/bricks-falling-when-hit "ๆ‰“็ –ๅ—")

We have a grid of 1s and 0s; the 1s in a cell represent bricks.  A brick will not drop if and only if it is directly connected to the top of the grid, or at least one of its (4-way) adjacent bricks will not drop.

diff --git a/problems/broken-calculator/README.md b/problems/broken-calculator/README.md index 9197c85ca..3344b03cf 100644 --- a/problems/broken-calculator/README.md +++ b/problems/broken-calculator/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/subarrays-with-k-different-integers "Subarrays with K Different Integers") -## 991. Broken Calculator (Medium) +## [991. Broken Calculator (Medium)](https://leetcode.com/problems/broken-calculator "ๅไบ†็š„่ฎก็ฎ—ๅ™จ")

On a broken calculator that has a number showing on its display, we can perform two operations:

diff --git a/problems/buddy-strings/README.md b/problems/buddy-strings/README.md index 18cf2587a..81a19007a 100644 --- a/problems/buddy-strings/README.md +++ b/problems/buddy-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lemonade-change "Lemonade Change") -## 859. Buddy Strings (Easy) +## [859. Buddy Strings (Easy)](https://leetcode.com/problems/buddy-strings "ไบฒๅฏ†ๅญ—็ฌฆไธฒ")

Given two strings A and B of lowercase letters, return true if and only if we can swap two letters in A so that the result equals B.

diff --git a/problems/building-h2o/README.md b/problems/building-h2o/README.md index d7ff882f1..4523e0e46 100644 --- a/problems/building-h2o/README.md +++ b/problems/building-h2o/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-days-in-a-month "Number of Days in a Month") -## 1117. Building H2O (Hard) +## [1117. Building H2O (Hard)](https://leetcode.com/problems/building-h2o "H2O ็”Ÿๆˆ")

There are two kinds of threads, oxygen and hydrogen. Your goal is to group these threads to form water molecules. There is a barrier where each thread has to wait until a complete molecule can be formed. Hydrogen and oxygen threads will be given a releaseHydrogen and releaseOxygen method respectfully, which will allow them to pass the barrier. These threads should pass the barrier in groups of three, and they must be able to immediately bond with each other to form a water molecule. You must guarantee that all the threads from one molecule bond before any other threads from the next molecule do.

diff --git a/problems/bulb-switcher-ii/README.md b/problems/bulb-switcher-ii/README.md index b9a622fb1..1e5994bda 100644 --- a/problems/bulb-switcher-ii/README.md +++ b/problems/bulb-switcher-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-longest-increasing-subsequence "Number of Longest Increasing Subsequence") -## 672. Bulb Switcher II (Medium) +## [672. Bulb Switcher II (Medium)](https://leetcode.com/problems/bulb-switcher-ii "็ฏๆณกๅผ€ๅ…ณ โ…ก")

There is a room with n lights which are turned on initially and 4 buttons on the wall. After performing exactly m unknown operations towards buttons, you need to return how many different kinds of status of the n lights could be.

diff --git a/problems/bulb-switcher/README.md b/problems/bulb-switcher/README.md index 007c4ab87..9b83f3e02 100644 --- a/problems/bulb-switcher/README.md +++ b/problems/bulb-switcher/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/generalized-abbreviation "Generalized Abbreviation") -## 319. Bulb Switcher (Medium) +## [319. Bulb Switcher (Medium)](https://leetcode.com/problems/bulb-switcher "็ฏๆณกๅผ€ๅ…ณ")

There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turning off if it's on). For the i-th round, you toggle every i bulb. For the n-th round, you only toggle the last bulb. Find how many bulbs are on after n rounds.

diff --git a/problems/bulls-and-cows/README.md b/problems/bulls-and-cows/README.md index ded06569c..146da6f8c 100644 --- a/problems/bulls-and-cows/README.md +++ b/problems/bulls-and-cows/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-increasing-subsequence "Longest Increasing Subsequence") -## 299. Bulls and Cows (Medium) +## [299. Bulls and Cows (Medium)](https://leetcode.com/problems/bulls-and-cows "็Œœๆ•ฐๅญ—ๆธธๆˆ")

You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your friend makes a guess, you provide a hint that indicates how many digits in said guess match your secret number exactly in both digit and position (called "bulls") and how many digits match the secret number but locate in the wrong position (called "cows"). Your friend will use successive guesses and hints to eventually derive the secret number.

diff --git a/problems/burst-balloons/README.md b/problems/burst-balloons/README.md index cc793d4da..61e267b4e 100644 --- a/problems/burst-balloons/README.md +++ b/problems/burst-balloons/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/super-ugly-number "Super Ugly Number") -## 312. Burst Balloons (Hard) +## [312. Burst Balloons (Hard)](https://leetcode.com/problems/burst-balloons "ๆˆณๆฐ”็ƒ")

Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i you will get nums[left] * nums[i] * nums[right] coins. Here left and right are adjacent indices of i. After the burst, the left and right then becomes adjacent.

diff --git a/problems/bus-routes/README.md b/problems/bus-routes/README.md index 4ad22fb0c..9e114d32f 100644 --- a/problems/bus-routes/README.md +++ b/problems/bus-routes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/ambiguous-coordinates "Ambiguous Coordinates") -## 815. Bus Routes (Hard) +## [815. Bus Routes (Hard)](https://leetcode.com/problems/bus-routes "ๅ…ฌไบค่ทฏ็บฟ")

We have a list of bus routes. Each routes[i] is a bus route that the i-th bus repeats forever. For example if routes[0] = [1, 5, 7], this means that the first bus (0-th indexed) travels in the sequence 1->5->7->1->5->7->1->... forever.

diff --git a/problems/camelcase-matching/README.md b/problems/camelcase-matching/README.md index 6b9a50d2e..c3794292e 100644 --- a/problems/camelcase-matching/README.md +++ b/problems/camelcase-matching/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/video-stitching "Video Stitching") -## 1023. Camelcase Matching (Medium) +## [1023. Camelcase Matching (Medium)](https://leetcode.com/problems/camelcase-matching "้ฉผๅณฐๅผๅŒน้…")

A query word matches a given pattern if we can insert lowercase letters to the pattern word so that it equals the query. (We may insert each character at any position, and may insert 0 characters.)

diff --git a/problems/campus-bikes-ii/README.md b/problems/campus-bikes-ii/README.md index 968028c17..20930ca08 100644 --- a/problems/campus-bikes-ii/README.md +++ b/problems/campus-bikes-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/digit-count-in-range "Digit Count in Range") -## 1066. Campus Bikes II (Medium) +## [1066. Campus Bikes II (Medium)](https://leetcode.com/problems/campus-bikes-ii "ๆ กๅ›ญ่‡ช่กŒ่ฝฆๅˆ†้… II")

On a campus represented as a 2D grid, there are N workers and M bikes, with N <= M. Each worker and bike is a 2D coordinate on this grid.

diff --git a/problems/campus-bikes/README.md b/problems/campus-bikes/README.md index 829f0e565..8dd371be8 100644 --- a/problems/campus-bikes/README.md +++ b/problems/campus-bikes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimize-rounding-error-to-meet-target "Minimize Rounding Error to Meet Target") -## 1057. Campus Bikes (Medium) +## [1057. Campus Bikes (Medium)](https://leetcode.com/problems/campus-bikes "ๆ กๅ›ญ่‡ช่กŒ่ฝฆๅˆ†้…")

On a campus represented as a 2D grid, there are N workers and M bikes, with N <= M. Each worker and bike is a 2D coordinate on this grid.

diff --git a/problems/can-i-win/README.md b/problems/can-i-win/README.md index ed69f51b2..2cd44020c 100644 --- a/problems/can-i-win/README.md +++ b/problems/can-i-win/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/optimal-account-balancing "Optimal Account Balancing") -## 464. Can I Win (Medium) +## [464. Can I Win (Medium)](https://leetcode.com/problems/can-i-win "ๆˆ‘่ƒฝ่ตขๅ—")

In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach or exceed 100 wins.

diff --git a/problems/can-make-palindrome-from-substring/README.md b/problems/can-make-palindrome-from-substring/README.md index 5e5fb291a..9103b7be1 100644 --- a/problems/can-make-palindrome-from-substring/README.md +++ b/problems/can-make-palindrome-from-substring/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-valid-words-for-each-puzzle "Number of Valid Words for Each Puzzle") -## 1177. Can Make Palindrome from Substring (Medium) +## [1177. Can Make Palindrome from Substring (Medium)](https://leetcode.com/problems/can-make-palindrome-from-substring "ๆž„ๅปบๅ›žๆ–‡ไธฒๆฃ€ๆต‹")

Given a string s, we make queries on substrings of s.

diff --git a/problems/can-place-flowers/README.md b/problems/can-place-flowers/README.md index c20ae6430..da20e1d21 100644 --- a/problems/can-place-flowers/README.md +++ b/problems/can-place-flowers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/construct-string-from-binary-tree "Construct String from Binary Tree") -## 605. Can Place Flowers (Easy) +## [605. Can Place Flowers (Easy)](https://leetcode.com/problems/can-place-flowers "็ง่Šฑ้—ฎ้ข˜")

Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they would compete for water and both would die.

diff --git a/problems/candy-crush/README.md b/problems/candy-crush/README.md index 6e6f1abaf..17b54d074 100644 --- a/problems/candy-crush/README.md +++ b/problems/candy-crush/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-pivot-index "Find Pivot Index") -## 723. Candy Crush (Medium) +## [723. Candy Crush (Medium)](https://leetcode.com/problems/candy-crush "็ฒ‰็ขŽ็ณ–ๆžœ") diff --git a/problems/candy/README.md b/problems/candy/README.md index 46fb7d3ae..03119f865 100644 --- a/problems/candy/README.md +++ b/problems/candy/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/single-number "Single Number") -## 135. Candy (Hard) +## [135. Candy (Hard)](https://leetcode.com/problems/candy "ๅˆ†ๅ‘็ณ–ๆžœ")

There are N children standing in a line. Each child is assigned a rating value.

diff --git a/problems/capacity-to-ship-packages-within-d-days/README.md b/problems/capacity-to-ship-packages-within-d-days/README.md index 1c2f4aaaf..725416682 100644 --- a/problems/capacity-to-ship-packages-within-d-days/README.md +++ b/problems/capacity-to-ship-packages-within-d-days/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/numbers-with-repeated-digits "Numbers With Repeated Digits") -## 1011. Capacity To Ship Packages Within D Days (Medium) +## [1011. Capacity To Ship Packages Within D Days (Medium)](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days "ๅœจ D ๅคฉๅ†…้€่พพๅŒ…่ฃน็š„่ƒฝๅŠ›")

A conveyor belt has packages that must be shipped from one port to another within D days.

diff --git a/problems/car-fleet/README.md b/problems/car-fleet/README.md index fe900c9ca..c6d0d419a 100644 --- a/problems/car-fleet/README.md +++ b/problems/car-fleet/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/k-similar-strings "K-Similar Strings") -## 853. Car Fleet (Medium) +## [853. Car Fleet (Medium)](https://leetcode.com/problems/car-fleet "่ฝฆ้˜Ÿ")

N cars are going to the same destination along a one lane road.  The destination is target miles away.

diff --git a/problems/car-pooling/README.md b/problems/car-pooling/README.md index 346d0646f..3f5a4b143 100644 --- a/problems/car-pooling/README.md +++ b/problems/car-pooling/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-in-mountain-array "Find in Mountain Array") -## 1094. Car Pooling (Medium) +## [1094. Car Pooling (Medium)](https://leetcode.com/problems/car-pooling "ๆ‹ผ่ฝฆ")

You are driving a vehicle that has capacity empty seats initially available for passengers.  The vehicle only drives east (ie. it cannot turn around and drive west.)

diff --git a/problems/card-flipping-game/README.md b/problems/card-flipping-game/README.md index c159fa81d..004e49ed4 100644 --- a/problems/card-flipping-game/README.md +++ b/problems/card-flipping-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-trees-with-factors "Binary Trees With Factors") -## 822. Card Flipping Game (Medium) +## [822. Card Flipping Game (Medium)](https://leetcode.com/problems/card-flipping-game "็ฟป่ฝฌๅก็‰‡ๆธธๆˆ")

On a table are N cards, with a positive integer printed on the front and back of each card (possibly different).

diff --git a/problems/cat-and-mouse/README.md b/problems/cat-and-mouse/README.md index 7e275004d..f15258105 100644 --- a/problems/cat-and-mouse/README.md +++ b/problems/cat-and-mouse/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/x-of-a-kind-in-a-deck-of-cards "X of a Kind in a Deck of Cards") -## 913. Cat and Mouse (Hard) +## [913. Cat and Mouse (Hard)](https://leetcode.com/problems/cat-and-mouse "็Œซๅ’Œ่€้ผ ")

A game on an undirected graph is played by two players, Mouse and Cat, who alternate turns.

diff --git a/problems/chalkboard-xor-game/README.md b/problems/chalkboard-xor-game/README.md index b7a2b4f97..446f0f6db 100644 --- a/problems/chalkboard-xor-game/README.md +++ b/problems/chalkboard-xor-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/subdomain-visit-count "Subdomain Visit Count") -## 810. Chalkboard XOR Game (Hard) +## [810. Chalkboard XOR Game (Hard)](https://leetcode.com/problems/chalkboard-xor-game "้ป‘ๆฟๅผ‚ๆˆ–ๆธธๆˆ")

We are given non-negative integers nums[i] which are written on a chalkboard.  Alice and Bob take turns erasing exactly one number from the chalkboard, with Alice starting first.  If erasing a number causes the bitwise XOR of all the elements of the chalkboard to become 0, then that player loses.  (Also, we'll say the bitwise XOR of one element is that element itself, and the bitwise XOR of no elements is 0.)

diff --git a/problems/champagne-tower/README.md b/problems/champagne-tower/README.md index 863feb4fc..33a68170e 100644 --- a/problems/champagne-tower/README.md +++ b/problems/champagne-tower/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/similar-rgb-color "Similar RGB Color") -## 799. Champagne Tower (Medium) +## [799. Champagne Tower (Medium)](https://leetcode.com/problems/champagne-tower "้ฆ™ๆงŸๅก”")

We stack glasses in a pyramid, where the first row has 1 glass, the second row has 2 glasses, and so on until the 100th row.  Each glass holds one cup (250ml) of champagne.

diff --git a/problems/cheapest-flights-within-k-stops/README.md b/problems/cheapest-flights-within-k-stops/README.md index e35734f6c..557ccb4bc 100644 --- a/problems/cheapest-flights-within-k-stops/README.md +++ b/problems/cheapest-flights-within-k-stops/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rotated-digits "Rotated Digits") -## 787. Cheapest Flights Within K Stops (Medium) +## [787. Cheapest Flights Within K Stops (Medium)](https://leetcode.com/problems/cheapest-flights-within-k-stops "K ็ซ™ไธญ่ฝฌๅ†…ๆœ€ไพฟๅฎœ็š„่ˆช็ญ")

There are n cities connected by m flights. Each fight starts from city u and arrives at v with a price w.

diff --git a/problems/check-completeness-of-a-binary-tree/README.md b/problems/check-completeness-of-a-binary-tree/README.md index 35a273f6c..7571bfc11 100644 --- a/problems/check-completeness-of-a-binary-tree/README.md +++ b/problems/check-completeness-of-a-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/regions-cut-by-slashes "Regions Cut By Slashes") -## 958. Check Completeness of a Binary Tree (Medium) +## [958. Check Completeness of a Binary Tree (Medium)](https://leetcode.com/problems/check-completeness-of-a-binary-tree "ไบŒๅ‰ๆ ‘็š„ๅฎŒๅ…จๆ€งๆฃ€้ชŒ")

Given a binary tree, determine if it is a complete binary tree.

diff --git a/problems/check-if-a-number-is-majority-element-in-a-sorted-array/README.md b/problems/check-if-a-number-is-majority-element-in-a-sorted-array/README.md index 29b5f1a18..c2e142227 100644 --- a/problems/check-if-a-number-is-majority-element-in-a-sorted-array/README.md +++ b/problems/check-if-a-number-is-majority-element-in-a-sorted-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-swaps-to-group-all-1s-together "Minimum Swaps to Group All 1's Together") -## 1150. Check If a Number Is Majority Element in a Sorted Array (Easy) +## [1150. Check If a Number Is Majority Element in a Sorted Array (Easy)](https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array "ๆฃ€ๆŸฅไธ€ไธชๆ•ฐๆ˜ฏๅฆๅœจๆ•ฐ็ป„ไธญๅ ็ปๅคงๅคšๆ•ฐ") diff --git a/problems/check-if-word-is-valid-after-substitutions/README.md b/problems/check-if-word-is-valid-after-substitutions/README.md index 0d6cb111b..a15f0994a 100644 --- a/problems/check-if-word-is-valid-after-substitutions/README.md +++ b/problems/check-if-word-is-valid-after-substitutions/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-consecutive-ones-iii "Max Consecutive Ones III") -## 1003. Check If Word Is Valid After Substitutions (Medium) +## [1003. Check If Word Is Valid After Substitutions (Medium)](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions "ๆฃ€ๆŸฅๆ›ฟๆขๅŽ็š„่ฏๆ˜ฏๅฆๆœ‰ๆ•ˆ")

We are given that the string "abc" is valid.

diff --git a/problems/cherry-pickup/README.md b/problems/cherry-pickup/README.md index 967f00ae7..dc3c1ce97 100644 --- a/problems/cherry-pickup/README.md +++ b/problems/cherry-pickup/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/closest-leaf-in-a-binary-tree "Closest Leaf in a Binary Tree") -## 741. Cherry Pickup (Hard) +## [741. Cherry Pickup (Hard)](https://leetcode.com/problems/cherry-pickup "ๆ‘˜ๆจฑๆกƒ")

In a N x N grid representing a field of cherries, each cell is one of three possible integers.

diff --git a/problems/circular-array-loop/README.md b/problems/circular-array-loop/README.md index b75a8324d..fdc034725 100644 --- a/problems/circular-array-loop/README.md +++ b/problems/circular-array-loop/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/poor-pigs "Poor Pigs") -## 457. Circular Array Loop (Medium) +## [457. Circular Array Loop (Medium)](https://leetcode.com/problems/circular-array-loop "็Žฏๅฝขๆ•ฐ็ป„ๅพช็Žฏ")

You are given a circular array nums of positive and negative integers. If a number k at an index is positive, then move forward k steps. Conversely, if it's negative (-k), move backward k steps. Since the array is circular, you may assume that the last element's next element is the first element, and the first element's previous element is the last element.

diff --git a/problems/classes-more-than-5-students/README.md b/problems/classes-more-than-5-students/README.md index 3aa973d91..9988db34b 100644 --- a/problems/classes-more-than-5-students/README.md +++ b/problems/classes-more-than-5-students/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/friend-requests-i-overall-acceptance-rate "Friend Requests I: Overall Acceptance Rate") -## 596. Classes More Than 5 Students (Easy) +## [596. Classes More Than 5 Students (Easy)](https://leetcode.com/problems/classes-more-than-5-students "่ถ…่ฟ‡5ๅๅญฆ็”Ÿ็š„่ฏพ")

There is a table courses with columns: student and class

diff --git a/problems/climbing-stairs/README.md b/problems/climbing-stairs/README.md index acdda8a3d..cac4c346b 100644 --- a/problems/climbing-stairs/README.md +++ b/problems/climbing-stairs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/simplify-path "Simplify Path") -## 70. Climbing Stairs (Easy) +## [70. Climbing Stairs (Easy)](https://leetcode.com/problems/climbing-stairs "็ˆฌๆฅผๆขฏ")

You are climbing a stair case. It takes n steps to reach to the top.

diff --git a/problems/clone-graph/README.md b/problems/clone-graph/README.md index e4c3633d6..d6d480a2c 100644 --- a/problems/clone-graph/README.md +++ b/problems/clone-graph/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/gas-station "Gas Station") -## 133. Clone Graph (Medium) +## [133. Clone Graph (Medium)](https://leetcode.com/problems/clone-graph "ๅ…‹้š†ๅ›พ")

Given a reference of a node in a connected undirected graph, return a deep copy (clone) of the graph. Each node in the graph contains a val (int) and a list (List[Node]) of its neighbors.

diff --git a/problems/closest-binary-search-tree-value-ii/README.md b/problems/closest-binary-search-tree-value-ii/README.md index 82bab43cf..cbb0ba295 100644 --- a/problems/closest-binary-search-tree-value-ii/README.md +++ b/problems/closest-binary-search-tree-value-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/integer-to-english-words "Integer to English Words") -## 272. Closest Binary Search Tree Value II (Hard) +## [272. Closest Binary Search Tree Value II (Hard)](https://leetcode.com/problems/closest-binary-search-tree-value-ii "ๆœ€ๆŽฅ่ฟ‘็š„ไบŒๅ‰ๆœ็ดขๆ ‘ๅ€ผ II") diff --git a/problems/closest-binary-search-tree-value/README.md b/problems/closest-binary-search-tree-value/README.md index e16cf6986..8a56c2db9 100644 --- a/problems/closest-binary-search-tree-value/README.md +++ b/problems/closest-binary-search-tree-value/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/encode-and-decode-strings "Encode and Decode Strings") -## 270. Closest Binary Search Tree Value (Easy) +## [270. Closest Binary Search Tree Value (Easy)](https://leetcode.com/problems/closest-binary-search-tree-value "ๆœ€ๆŽฅ่ฟ‘็š„ไบŒๅ‰ๆœ็ดขๆ ‘ๅ€ผ") diff --git a/problems/closest-leaf-in-a-binary-tree/README.md b/problems/closest-leaf-in-a-binary-tree/README.md index eaa34317c..3a2d7c600 100644 --- a/problems/closest-leaf-in-a-binary-tree/README.md +++ b/problems/closest-leaf-in-a-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/network-delay-time "Network Delay Time") -## 742. Closest Leaf in a Binary Tree (Medium) +## [742. Closest Leaf in a Binary Tree (Medium)](https://leetcode.com/problems/closest-leaf-in-a-binary-tree "ไบŒๅ‰ๆ ‘ๆœ€่ฟ‘็š„ๅถ่Š‚็‚น") diff --git a/problems/clumsy-factorial/README.md b/problems/clumsy-factorial/README.md index 01dc38fd5..269eef531 100644 --- a/problems/clumsy-factorial/README.md +++ b/problems/clumsy-factorial/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-domino-rotations-for-equal-row "Minimum Domino Rotations For Equal Row") -## 1006. Clumsy Factorial (Medium) +## [1006. Clumsy Factorial (Medium)](https://leetcode.com/problems/clumsy-factorial "็ฌจ้˜ถไน˜")

Normally, the factorial of a positive integer n is the product of all positive integers less than or equal to n.  For example, factorial(10) = 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1.

diff --git a/problems/coin-change-2/README.md b/problems/coin-change-2/README.md index a0129adc8..66a73d957 100644 --- a/problems/coin-change-2/README.md +++ b/problems/coin-change-2/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/random-flip-matrix "Random Flip Matrix") -## 518. Coin Change 2 (Medium) +## [518. Coin Change 2 (Medium)](https://leetcode.com/problems/coin-change-2 "้›ถ้’ฑๅ…‘ๆข II")

You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may assume that you have infinite number of each kind of coin.

diff --git a/problems/coin-change/README.md b/problems/coin-change/README.md index c2ed2b33a..080a65096 100644 --- a/problems/coin-change/README.md +++ b/problems/coin-change/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-connected-components-in-an-undirected-graph "Number of Connected Components in an Undirected Graph") -## 322. Coin Change (Medium) +## [322. Coin Change (Medium)](https://leetcode.com/problems/coin-change "้›ถ้’ฑๅ…‘ๆข")

You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return -1.

diff --git a/problems/coin-path/README.md b/problems/coin-path/README.md index 3adab8070..428c67029 100644 --- a/problems/coin-path/README.md +++ b/problems/coin-path/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/robot-return-to-origin "Robot Return to Origin") -## 656. Coin Path (Hard) +## [656. Coin Path (Hard)](https://leetcode.com/problems/coin-path "้‡‘ๅธ่ทฏๅพ„") diff --git a/problems/coloring-a-border/README.md b/problems/coloring-a-border/README.md index 2034fcdc7..b8d34c5df 100644 --- a/problems/coloring-a-border/README.md +++ b/problems/coloring-a-border/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/uncrossed-lines "Uncrossed Lines") -## 1034. Coloring A Border (Medium) +## [1034. Coloring A Border (Medium)](https://leetcode.com/problems/coloring-a-border "่พนๆก†็€่‰ฒ")

Given a 2-dimensional grid of integers, each value in the grid represents the color of the grid square at that location.

diff --git a/problems/combination-sum-ii/README.md b/problems/combination-sum-ii/README.md index 197b8e54e..d1bce0f92 100644 --- a/problems/combination-sum-ii/README.md +++ b/problems/combination-sum-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/first-missing-positive "First Missing Positive") -## 40. Combination Sum II (Medium) +## [40. Combination Sum II (Medium)](https://leetcode.com/problems/combination-sum-ii "็ป„ๅˆๆ€ปๅ’Œ II")

Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target.

diff --git a/problems/combination-sum-iii/README.md b/problems/combination-sum-iii/README.md index aaa183039..6c010289a 100644 --- a/problems/combination-sum-iii/README.md +++ b/problems/combination-sum-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/contains-duplicate "Contains Duplicate") -## 216. Combination Sum III (Medium) +## [216. Combination Sum III (Medium)](https://leetcode.com/problems/combination-sum-iii "็ป„ๅˆๆ€ปๅ’Œ III")

Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers.

diff --git a/problems/combination-sum-iv/README.md b/problems/combination-sum-iv/README.md index 22eefd59f..d0b6efb6f 100644 --- a/problems/combination-sum-iv/README.md +++ b/problems/combination-sum-iv/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/kth-smallest-element-in-a-sorted-matrix "Kth Smallest Element in a Sorted Matrix") -## 377. Combination Sum IV (Medium) +## [377. Combination Sum IV (Medium)](https://leetcode.com/problems/combination-sum-iv "็ป„ๅˆๆ€ปๅ’Œ โ…ฃ")

Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.

diff --git a/problems/combination-sum/README.md b/problems/combination-sum/README.md index c51612111..18cff6162 100644 --- a/problems/combination-sum/README.md +++ b/problems/combination-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/combination-sum-ii "Combination Sum II") -## 39. Combination Sum (Medium) +## [39. Combination Sum (Medium)](https://leetcode.com/problems/combination-sum "็ป„ๅˆๆ€ปๅ’Œ")

Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target.

diff --git a/problems/combinations/README.md b/problems/combinations/README.md index 73bca6e5c..66f22628c 100644 --- a/problems/combinations/README.md +++ b/problems/combinations/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/subsets "Subsets") -## 77. Combinations (Medium) +## [77. Combinations (Medium)](https://leetcode.com/problems/combinations "็ป„ๅˆ")

Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.

diff --git a/problems/combine-two-tables/README.md b/problems/combine-two-tables/README.md index 383a05893..45ff44fa0 100644 --- a/problems/combine-two-tables/README.md +++ b/problems/combine-two-tables/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/second-highest-salary "Second Highest Salary") -## 175. Combine Two Tables (Easy) +## [175. Combine Two Tables (Easy)](https://leetcode.com/problems/combine-two-tables "็ป„ๅˆไธคไธช่กจ")

Table: Person

diff --git a/problems/compare-strings-by-frequency-of-the-smallest-character/README.md b/problems/compare-strings-by-frequency-of-the-smallest-character/README.md index 062dc9678..f964282e5 100644 --- a/problems/compare-strings-by-frequency-of-the-smallest-character/README.md +++ b/problems/compare-strings-by-frequency-of-the-smallest-character/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-zero-sum-consecutive-nodes-from-linked-list "Remove Zero Sum Consecutive Nodes from Linked List") -## 1170. Compare Strings by Frequency of the Smallest Character (Easy) +## [1170. Compare Strings by Frequency of the Smallest Character (Easy)](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character "ๆฏ”่พƒๅญ—็ฌฆไธฒๆœ€ๅฐๅญ—ๆฏๅ‡บ็Žฐ้ข‘ๆฌก")

Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce" then f(s) = 2 because the smallest character is "c" and its frequency is 2.

diff --git a/problems/compare-version-numbers/README.md b/problems/compare-version-numbers/README.md index 8b5041d08..178af1b2c 100644 --- a/problems/compare-version-numbers/README.md +++ b/problems/compare-version-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/fraction-to-recurring-decimal "Fraction to Recurring Decimal") -## 165. Compare Version Numbers (Medium) +## [165. Compare Version Numbers (Medium)](https://leetcode.com/problems/compare-version-numbers "ๆฏ”่พƒ็‰ˆๆœฌๅท")

Compare two version numbers version1 and version2.
If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0.

diff --git a/problems/complement-of-base-10-integer/README.md b/problems/complement-of-base-10-integer/README.md index a4215238b..b40f124c2 100644 --- a/problems/complement-of-base-10-integer/README.md +++ b/problems/complement-of-base-10-integer/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/pairs-of-songs-with-total-durations-divisible-by-60 "Pairs of Songs With Total Durations Divisible by 60") -## 1009. Complement of Base 10 Integer (Easy) +## [1009. Complement of Base 10 Integer (Easy)](https://leetcode.com/problems/complement-of-base-10-integer "ๅ่ฟ›ๅˆถๆ•ดๆ•ฐ็š„ๅ็ ")

Every non-negative integer N has a binary representation.  For example, 5 can be represented as "101" in binary, 11 as "1011" in binary, and so on.  Note that except for N = 0, there are no leading zeroes in any binary representation.

diff --git a/problems/complete-binary-tree-inserter/README.md b/problems/complete-binary-tree-inserter/README.md index ff356d6d2..4b4dbea2c 100644 --- a/problems/complete-binary-tree-inserter/README.md +++ b/problems/complete-binary-tree-inserter/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-music-playlists "Number of Music Playlists") -## 919. Complete Binary Tree Inserter (Medium) +## [919. Complete Binary Tree Inserter (Medium)](https://leetcode.com/problems/complete-binary-tree-inserter "ๅฎŒๅ…จไบŒๅ‰ๆ ‘ๆ’ๅ…ฅๅ™จ")

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.

diff --git a/problems/complex-number-multiplication/README.md b/problems/complex-number-multiplication/README.md index 921536517..02543cc9f 100644 --- a/problems/complex-number-multiplication/README.md +++ b/problems/complex-number-multiplication/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/convert-bst-to-greater-tree "Convert BST to Greater Tree") -## 537. Complex Number Multiplication (Medium) +## [537. Complex Number Multiplication (Medium)](https://leetcode.com/problems/complex-number-multiplication "ๅคๆ•ฐไน˜ๆณ•")

Given two strings representing two complex numbers.

diff --git a/problems/concatenated-words/README.md b/problems/concatenated-words/README.md index a71758dda..c00ec694d 100644 --- a/problems/concatenated-words/README.md +++ b/problems/concatenated-words/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/matchsticks-to-square "Matchsticks to Square") -## 472. Concatenated Words (Hard) +## [472. Concatenated Words (Hard)](https://leetcode.com/problems/concatenated-words "่ฟžๆŽฅ่ฏ") Given a list of words (without duplicates), please write a program that returns all concatenated words in the given list of words.

A concatenated word is defined as a string that is comprised entirely of at least two shorter words in the given array.

diff --git a/problems/confusing-number-ii/README.md b/problems/confusing-number-ii/README.md index 2e781542d..d2a3b2093 100644 --- a/problems/confusing-number-ii/README.md +++ b/problems/confusing-number-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/duplicate-zeros "Duplicate Zeros") -## 1088. Confusing Number II (Hard) +## [1088. Confusing Number II (Hard)](https://leetcode.com/problems/confusing-number-ii "ๆ˜“ๆททๆท†ๆ•ฐ II")

We can rotate digits by 180 degrees to form new digits. When 0, 1, 6, 8, 9 are rotated 180 degrees, they become 0, 1, 9, 8, 6 respectively. When 2, 3, 4, 5 and 7 are rotated 180 degrees, they become invalid.

diff --git a/problems/confusing-number/README.md b/problems/confusing-number/README.md index da4cb33d9..3619109cd 100644 --- a/problems/confusing-number/README.md +++ b/problems/confusing-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/campus-bikes "Campus Bikes") -## 1056. Confusing Number (Easy) +## [1056. Confusing Number (Easy)](https://leetcode.com/problems/confusing-number "ๆ˜“ๆททๆท†ๆ•ฐ")

Given a number N, return true if and only if it is a confusing number, which satisfies the following condition:

diff --git a/problems/connecting-cities-with-minimum-cost/README.md b/problems/connecting-cities-with-minimum-cost/README.md index c8ebdcd03..3b835adf4 100644 --- a/problems/connecting-cities-with-minimum-cost/README.md +++ b/problems/connecting-cities-with-minimum-cost/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/parallel-courses "Parallel Courses") -## 1135. Connecting Cities With Minimum Cost (Medium) +## [1135. Connecting Cities With Minimum Cost (Medium)](https://leetcode.com/problems/connecting-cities-with-minimum-cost "ๆœ€ไฝŽๆˆๆœฌ่”้€šๆ‰€ๆœ‰ๅŸŽๅธ‚")

There are N cities numbered from 1 to N.

diff --git a/problems/consecutive-available-seats/README.md b/problems/consecutive-available-seats/README.md index 9c26d00e6..1167c7c46 100644 --- a/problems/consecutive-available-seats/README.md +++ b/problems/consecutive-available-seats/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-compressed-string-iterator "Design Compressed String Iterator") -## 603. Consecutive Available Seats (Easy) +## [603. Consecutive Available Seats (Easy)](https://leetcode.com/problems/consecutive-available-seats "่ฟž็ปญ็ฉบไฝ™ๅบงไฝ") Several friends at a cinema ticket office would like to reserve consecutive available seats.
Can you help to query all the consecutive available seats order by the seat_id using the following cinema table? diff --git a/problems/consecutive-numbers-sum/README.md b/problems/consecutive-numbers-sum/README.md index fc2b83e91..eafadca7d 100644 --- a/problems/consecutive-numbers-sum/README.md +++ b/problems/consecutive-numbers-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/positions-of-large-groups "Positions of Large Groups") -## 829. Consecutive Numbers Sum (Hard) +## [829. Consecutive Numbers Sum (Hard)](https://leetcode.com/problems/consecutive-numbers-sum "่ฟž็ปญๆ•ดๆ•ฐๆฑ‚ๅ’Œ")

Given a positive integer N, how many ways can we write it as a sum of consecutive positive integers?

diff --git a/problems/consecutive-numbers/README.md b/problems/consecutive-numbers/README.md index 09d68137a..a84874f18 100644 --- a/problems/consecutive-numbers/README.md +++ b/problems/consecutive-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/employees-earning-more-than-their-managers "Employees Earning More Than Their Managers") -## 180. Consecutive Numbers (Medium) +## [180. Consecutive Numbers (Medium)](https://leetcode.com/problems/consecutive-numbers "่ฟž็ปญๅ‡บ็Žฐ็š„ๆ•ฐๅญ—")

Write a SQL query to find all numbers that appear at least three times consecutively.

diff --git a/problems/construct-binary-search-tree-from-preorder-traversal/README.md b/problems/construct-binary-search-tree-from-preorder-traversal/README.md index 199d8830c..fc00d9b00 100644 --- a/problems/construct-binary-search-tree-from-preorder-traversal/README.md +++ b/problems/construct-binary-search-tree-from-preorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/complement-of-base-10-integer "Complement of Base 10 Integer") -## 1008. Construct Binary Search Tree from Preorder Traversal (Medium) +## [1008. Construct Binary Search Tree from Preorder Traversal (Medium)](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal "ๅ…ˆๅบ้ๅކๆž„้€ ไบŒๅ‰ๆ ‘")

Return the root node of a binary search tree that matches the given preorder traversal.

diff --git a/problems/construct-binary-tree-from-inorder-and-postorder-traversal/README.md b/problems/construct-binary-tree-from-inorder-and-postorder-traversal/README.md index 104eef54c..3b827e726 100644 --- a/problems/construct-binary-tree-from-inorder-and-postorder-traversal/README.md +++ b/problems/construct-binary-tree-from-inorder-and-postorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-level-order-traversal-ii "Binary Tree Level Order Traversal II") -## 106. Construct Binary Tree from Inorder and Postorder Traversal (Medium) +## [106. Construct Binary Tree from Inorder and Postorder Traversal (Medium)](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal "ไปŽไธญๅบไธŽๅŽๅบ้ๅކๅบๅˆ—ๆž„้€ ไบŒๅ‰ๆ ‘")

Given inorder and postorder traversal of a tree, construct the binary tree.

diff --git a/problems/construct-binary-tree-from-preorder-and-inorder-traversal/README.md b/problems/construct-binary-tree-from-preorder-and-inorder-traversal/README.md index aeb43ac0b..45529a3aa 100644 --- a/problems/construct-binary-tree-from-preorder-and-inorder-traversal/README.md +++ b/problems/construct-binary-tree-from-preorder-and-inorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/construct-binary-tree-from-inorder-and-postorder-traversal "Construct Binary Tree from Inorder and Postorder Traversal") -## 105. Construct Binary Tree from Preorder and Inorder Traversal (Medium) +## [105. Construct Binary Tree from Preorder and Inorder Traversal (Medium)](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal "ไปŽๅ‰ๅบไธŽไธญๅบ้ๅކๅบๅˆ—ๆž„้€ ไบŒๅ‰ๆ ‘")

Given preorder and inorder traversal of a tree, construct the binary tree.

diff --git a/problems/construct-binary-tree-from-preorder-and-postorder-traversal/README.md b/problems/construct-binary-tree-from-preorder-and-postorder-traversal/README.md index cd9a3b35c..07326909e 100644 --- a/problems/construct-binary-tree-from-preorder-and-postorder-traversal/README.md +++ b/problems/construct-binary-tree-from-preorder-and-postorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-and-replace-pattern "Find and Replace Pattern") -## 889. Construct Binary Tree from Preorder and Postorder Traversal (Medium) +## [889. Construct Binary Tree from Preorder and Postorder Traversal (Medium)](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal "ๆ นๆฎๅ‰ๅบๅ’ŒๅŽๅบ้ๅކๆž„้€ ไบŒๅ‰ๆ ‘")

Return any binary tree that matches the given preorder and postorder traversals.

diff --git a/problems/construct-binary-tree-from-string/README.md b/problems/construct-binary-tree-from-string/README.md index e321aaae1..8ccc361ec 100644 --- a/problems/construct-binary-tree-from-string/README.md +++ b/problems/construct-binary-tree-from-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/complex-number-multiplication "Complex Number Multiplication") -## 536. Construct Binary Tree from String (Medium) +## [536. Construct Binary Tree from String (Medium)](https://leetcode.com/problems/construct-binary-tree-from-string "ไปŽๅญ—็ฌฆไธฒ็”ŸๆˆไบŒๅ‰ๆ ‘") diff --git a/problems/construct-quad-tree/README.md b/problems/construct-quad-tree/README.md index 4a110023b..5f71237f2 100644 --- a/problems/construct-quad-tree/README.md +++ b/problems/construct-quad-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/serialize-and-deserialize-n-ary-tree "Serialize and Deserialize N-ary Tree") -## 427. Construct Quad Tree (Medium) +## [427. Construct Quad Tree (Medium)](https://leetcode.com/problems/construct-quad-tree "ๅปบ็ซ‹ๅ››ๅ‰ๆ ‘")

We want to use quad trees to store an N x N boolean grid. Each cell in the grid can only be true or false. The root node represents the whole grid. For each node, it will be subdivided into four children nodes until the values in the region it represents are all the same.

diff --git a/problems/construct-string-from-binary-tree/README.md b/problems/construct-string-from-binary-tree/README.md index c1f784be8..f57de305e 100644 --- a/problems/construct-string-from-binary-tree/README.md +++ b/problems/construct-string-from-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sales-person "Sales Person") -## 606. Construct String from Binary Tree (Easy) +## [606. Construct String from Binary Tree (Easy)](https://leetcode.com/problems/construct-string-from-binary-tree "ๆ นๆฎไบŒๅ‰ๆ ‘ๅˆ›ๅปบๅญ—็ฌฆไธฒ")

You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way.

diff --git a/problems/construct-the-rectangle/README.md b/problems/construct-the-rectangle/README.md index 6b4b58365..10f3be612 100644 --- a/problems/construct-the-rectangle/README.md +++ b/problems/construct-the-rectangle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-pairs "Reverse Pairs") -## 492. Construct the Rectangle (Easy) +## [492. Construct the Rectangle (Easy)](https://leetcode.com/problems/construct-the-rectangle "ๆž„้€ ็Ÿฉๅฝข")

For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web pageโ€™s area, your job by now is to design a rectangular web page, whose length L and width W satisfy the following requirements:

diff --git a/problems/contain-virus/README.md b/problems/contain-virus/README.md
index 70bced311..fd591e702 100644
--- a/problems/contain-virus/README.md
+++ b/problems/contain-virus/README.md
@@ -9,7 +9,7 @@
 ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€
 [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-corner-rectangles "Number Of Corner Rectangles")
 
-## 749. Contain Virus (Hard)
+## [749. Contain Virus (Hard)](https://leetcode.com/problems/contain-virus "้š”็ฆป็—…ๆฏ’")
 
 

A virus is spreading rapidly, and your task is to quarantine the infected area by installing walls. diff --git a/problems/container-with-most-water/README.md b/problems/container-with-most-water/README.md index e109d84a5..1572d657b 100644 --- a/problems/container-with-most-water/README.md +++ b/problems/container-with-most-water/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/integer-to-roman "Integer to Roman") -## 11. Container With Most Water (Medium) +## [11. Container With Most Water (Medium)](https://leetcode.com/problems/container-with-most-water "็››ๆœ€ๅคšๆฐด็š„ๅฎนๅ™จ")

Given n non-negative integers a1, a2, ..., a, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.

diff --git a/problems/contains-duplicate-ii/README.md b/problems/contains-duplicate-ii/README.md index 97fe98c02..ac23889f5 100644 --- a/problems/contains-duplicate-ii/README.md +++ b/problems/contains-duplicate-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/contains-duplicate-iii "Contains Duplicate III") -## 219. Contains Duplicate II (Easy) +## [219. Contains Duplicate II (Easy)](https://leetcode.com/problems/contains-duplicate-ii "ๅญ˜ๅœจ้‡ๅคๅ…ƒ็ด  II")

Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute difference between i and j is at most k.

diff --git a/problems/contains-duplicate-iii/README.md b/problems/contains-duplicate-iii/README.md index 072a9993b..297a1946f 100644 --- a/problems/contains-duplicate-iii/README.md +++ b/problems/contains-duplicate-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximal-square "Maximal Square") -## 220. Contains Duplicate III (Medium) +## [220. Contains Duplicate III (Medium)](https://leetcode.com/problems/contains-duplicate-iii "ๅญ˜ๅœจ้‡ๅคๅ…ƒ็ด  III")

Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and nums[j] is at most t and the absolute difference between i and j is at most k.

diff --git a/problems/contains-duplicate/README.md b/problems/contains-duplicate/README.md index 703c49d62..7f16f88db 100644 --- a/problems/contains-duplicate/README.md +++ b/problems/contains-duplicate/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/the-skyline-problem "The Skyline Problem") -## 217. Contains Duplicate (Easy) +## [217. Contains Duplicate (Easy)](https://leetcode.com/problems/contains-duplicate "ๅญ˜ๅœจ้‡ๅคๅ…ƒ็ด ")

Given an array of integers, find if the array contains any duplicates.

diff --git a/problems/contiguous-array/README.md b/problems/contiguous-array/README.md index 929ae9690..632d9344a 100644 --- a/problems/contiguous-array/README.md +++ b/problems/contiguous-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/beautiful-arrangement "Beautiful Arrangement") -## 525. Contiguous Array (Medium) +## [525. Contiguous Array (Medium)](https://leetcode.com/problems/contiguous-array "่ฟž็ปญๆ•ฐ็ป„")

Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.

diff --git a/problems/continuous-subarray-sum/README.md b/problems/continuous-subarray-sum/README.md index fd6390bd0..72e50a225 100644 --- a/problems/continuous-subarray-sum/README.md +++ b/problems/continuous-subarray-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-word-in-dictionary-through-deleting "Longest Word in Dictionary through Deleting") -## 523. Continuous Subarray Sum (Medium) +## [523. Continuous Subarray Sum (Medium)](https://leetcode.com/problems/continuous-subarray-sum "่ฟž็ปญ็š„ๅญๆ•ฐ็ป„ๅ’Œ")

Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to a multiple of k, that is, sums up to n*k where n is also an integer.

diff --git a/problems/convert-a-number-to-hexadecimal/README.md b/problems/convert-a-number-to-hexadecimal/README.md index b18c17da1..16363d0d0 100644 --- a/problems/convert-a-number-to-hexadecimal/README.md +++ b/problems/convert-a-number-to-hexadecimal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/queue-reconstruction-by-height "Queue Reconstruction by Height") -## 405. Convert a Number to Hexadecimal (Easy) +## [405. Convert a Number to Hexadecimal (Easy)](https://leetcode.com/problems/convert-a-number-to-hexadecimal "ๆ•ฐๅญ—่ฝฌๆขไธบๅๅ…ญ่ฟ›ๅˆถๆ•ฐ")

Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, twoโ€™s complement method is used. diff --git a/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/README.md b/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/README.md index 557b1f82e..3de9ecbfe 100644 --- a/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/README.md +++ b/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/construct-quad-tree "Construct Quad Tree") -## 426. Convert Binary Search Tree to Sorted Doubly Linked List (Medium) +## [426. Convert Binary Search Tree to Sorted Doubly Linked List (Medium)](https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list "ๅฐ†ไบŒๅ‰ๆœ็ดขๆ ‘่ฝฌๅŒ–ไธบๆŽ’ๅบ็š„ๅŒๅ‘้“พ่กจ") diff --git a/problems/convert-bst-to-greater-tree/README.md b/problems/convert-bst-to-greater-tree/README.md index 90ee1aeb9..d1a6769aa 100644 --- a/problems/convert-bst-to-greater-tree/README.md +++ b/problems/convert-bst-to-greater-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-time-difference "Minimum Time Difference") -## 538. Convert BST to Greater Tree (Easy) +## [538. Convert BST to Greater Tree (Easy)](https://leetcode.com/problems/convert-bst-to-greater-tree "ๆŠŠไบŒๅ‰ๆœ็ดขๆ ‘่ฝฌๆขไธบ็ดฏๅŠ ๆ ‘")

Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BST.

diff --git a/problems/convert-sorted-array-to-binary-search-tree/README.md b/problems/convert-sorted-array-to-binary-search-tree/README.md index 8222b2eaf..24ec68cfc 100644 --- a/problems/convert-sorted-array-to-binary-search-tree/README.md +++ b/problems/convert-sorted-array-to-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/convert-sorted-list-to-binary-search-tree "Convert Sorted List to Binary Search Tree") -## 108. Convert Sorted Array to Binary Search Tree (Easy) +## [108. Convert Sorted Array to Binary Search Tree (Easy)](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree "ๅฐ†ๆœ‰ๅบๆ•ฐ็ป„่ฝฌๆขไธบไบŒๅ‰ๆœ็ดขๆ ‘")

Given an array where elements are sorted in ascending order, convert it to a height balanced BST.

diff --git a/problems/convert-sorted-list-to-binary-search-tree/README.md b/problems/convert-sorted-list-to-binary-search-tree/README.md index 7f7f4c0a4..14d09f85c 100644 --- a/problems/convert-sorted-list-to-binary-search-tree/README.md +++ b/problems/convert-sorted-list-to-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/balanced-binary-tree "Balanced Binary Tree") -## 109. Convert Sorted List to Binary Search Tree (Medium) +## [109. Convert Sorted List to Binary Search Tree (Medium)](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree "ๆœ‰ๅบ้“พ่กจ่ฝฌๆขไบŒๅ‰ๆœ็ดขๆ ‘")

Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.

diff --git a/problems/convert-to-base-2/README.md b/problems/convert-to-base-2/README.md index 2b9656433..45e6a809e 100644 --- a/problems/convert-to-base-2/README.md +++ b/problems/convert-to-base-2/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-prefix-divisible-by-5 "Binary Prefix Divisible By 5") -## 1017. Convert to Base -2 (Medium) +## [1017. Convert to Base -2 (Medium)](https://leetcode.com/problems/convert-to-base-2 "่ดŸไบŒ่ฟ›ๅˆถ่ฝฌๆข")

Given a number N, return a string consisting of "0"s and "1"s that represents its value in base -2 (negative two).

diff --git a/problems/convex-polygon/README.md b/problems/convex-polygon/README.md index 729d40ddd..f41917d29 100644 --- a/problems/convex-polygon/README.md +++ b/problems/convex-polygon/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/implement-rand10-using-rand7 "Implement Rand10() Using Rand7()") -## 469. Convex Polygon (Medium) +## [469. Convex Polygon (Medium)](https://leetcode.com/problems/convex-polygon "ๅ‡ธๅคš่พนๅฝข") diff --git a/problems/copy-list-with-random-pointer/README.md b/problems/copy-list-with-random-pointer/README.md index 6afcc938b..2b4a53bf9 100644 --- a/problems/copy-list-with-random-pointer/README.md +++ b/problems/copy-list-with-random-pointer/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-break "Word Break") -## 138. Copy List with Random Pointer (Medium) +## [138. Copy List with Random Pointer (Medium)](https://leetcode.com/problems/copy-list-with-random-pointer "ๅคๅˆถๅธฆ้šๆœบๆŒ‡้’ˆ็š„้“พ่กจ")

A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.

diff --git a/problems/corporate-flight-bookings/README.md b/problems/corporate-flight-bookings/README.md index 43cf2f66f..ec52c9ad7 100644 --- a/problems/corporate-flight-bookings/README.md +++ b/problems/corporate-flight-bookings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/delete-nodes-and-return-forest "Delete Nodes And Return Forest") -## 1109. Corporate Flight Bookings (Medium) +## [1109. Corporate Flight Bookings (Medium)](https://leetcode.com/problems/corporate-flight-bookings "่ˆช็ญ้ข„่ฎข็ปŸ่ฎก")

There are n flights, and they are labeled from 1 to n.

diff --git a/problems/count-and-say/README.md b/problems/count-and-say/README.md index 8c4de6341..9cbe06b18 100644 --- a/problems/count-and-say/README.md +++ b/problems/count-and-say/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/combination-sum "Combination Sum") -## 38. Count and Say (Easy) +## [38. Count and Say (Easy)](https://leetcode.com/problems/count-and-say "ๆŠฅๆ•ฐ")

The count-and-say sequence is the sequence of integers with the first five terms as following:

diff --git a/problems/count-binary-substrings/README.md b/problems/count-binary-substrings/README.md index f593a927f..deddaa011 100644 --- a/problems/count-binary-substrings/README.md +++ b/problems/count-binary-substrings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/degree-of-an-array "Degree of an Array") -## 696. Count Binary Substrings (Easy) +## [696. Count Binary Substrings (Easy)](https://leetcode.com/problems/count-binary-substrings "่ฎกๆ•ฐไบŒ่ฟ›ๅˆถๅญไธฒ")

Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these substrings are grouped consecutively.

diff --git a/problems/count-complete-tree-nodes/README.md b/problems/count-complete-tree-nodes/README.md index 5b04503a6..2b1afcb4c 100644 --- a/problems/count-complete-tree-nodes/README.md +++ b/problems/count-complete-tree-nodes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rectangle-area "Rectangle Area") -## 222. Count Complete Tree Nodes (Medium) +## [222. Count Complete Tree Nodes (Medium)](https://leetcode.com/problems/count-complete-tree-nodes "ๅฎŒๅ…จไบŒๅ‰ๆ ‘็š„่Š‚็‚นไธชๆ•ฐ")

Given a complete binary tree, count the number of nodes.

diff --git a/problems/count-different-palindromic-subsequences/README.md b/problems/count-different-palindromic-subsequences/README.md index 74361eeae..8da473279 100644 --- a/problems/count-different-palindromic-subsequences/README.md +++ b/problems/count-different-palindromic-subsequences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/my-calendar-ii "My Calendar II") -## 730. Count Different Palindromic Subsequences (Hard) +## [730. Count Different Palindromic Subsequences (Hard)](https://leetcode.com/problems/count-different-palindromic-subsequences "็ปŸ่ฎกไธๅŒๅ›žๆ–‡ๅญๅญ—็ฌฆไธฒ")

Given a string S, find the number of different non-empty palindromic subsequences in S, and return that number modulo 10^9 + 7. diff --git a/problems/count-numbers-with-unique-digits/README.md b/problems/count-numbers-with-unique-digits/README.md index cb9db2147..c6fd5053b 100644 --- a/problems/count-numbers-with-unique-digits/README.md +++ b/problems/count-numbers-with-unique-digits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rearrange-string-k-distance-apart "Rearrange String k Distance Apart") -## 357. Count Numbers with Unique Digits (Medium) +## [357. Count Numbers with Unique Digits (Medium)](https://leetcode.com/problems/count-numbers-with-unique-digits "่ฎก็ฎ—ๅ„ไธชไฝๆ•ฐไธๅŒ็š„ๆ•ฐๅญ—ไธชๆ•ฐ")

Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n.

diff --git a/problems/count-of-range-sum/README.md b/problems/count-of-range-sum/README.md index b4733952c..5daaa7bfc 100644 --- a/problems/count-of-range-sum/README.md +++ b/problems/count-of-range-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/odd-even-linked-list "Odd Even Linked List") -## 327. Count of Range Sum (Hard) +## [327. Count of Range Sum (Hard)](https://leetcode.com/problems/count-of-range-sum "ๅŒบ้—ดๅ’Œ็š„ไธชๆ•ฐ")

Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive.
Range sum S(i, j) is defined as the sum of the elements in nums between indices i and j (ij), inclusive.

diff --git a/problems/count-of-smaller-numbers-after-self/README.md b/problems/count-of-smaller-numbers-after-self/README.md index 8dbec95e9..e66a2d1f9 100644 --- a/problems/count-of-smaller-numbers-after-self/README.md +++ b/problems/count-of-smaller-numbers-after-self/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-duplicate-letters "Remove Duplicate Letters") -## 315. Count of Smaller Numbers After Self (Hard) +## [315. Count of Smaller Numbers After Self (Hard)](https://leetcode.com/problems/count-of-smaller-numbers-after-self "่ฎก็ฎ—ๅณไพงๅฐไบŽๅฝ“ๅ‰ๅ…ƒ็ด ็š„ไธชๆ•ฐ")

You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smaller elements to the right of nums[i].

diff --git a/problems/count-primes/README.md b/problems/count-primes/README.md index d51bc85eb..6f297d81d 100644 --- a/problems/count-primes/README.md +++ b/problems/count-primes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/isomorphic-strings "Isomorphic Strings") -## 204. Count Primes (Easy) +## [204. Count Primes (Easy)](https://leetcode.com/problems/count-primes "่ฎกๆ•ฐ่ดจๆ•ฐ")

Count the number of prime numbers less than a non-negative number, n.

diff --git a/problems/count-student-number-in-departments/README.md b/problems/count-student-number-in-departments/README.md index 7b961bd8e..c39b281dd 100644 --- a/problems/count-student-number-in-departments/README.md +++ b/problems/count-student-number-in-departments/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-unsorted-continuous-subarray "Shortest Unsorted Continuous Subarray") -## 580. Count Student Number in Departments (Medium) +## [580. Count Student Number in Departments (Medium)](https://leetcode.com/problems/count-student-number-in-departments "็ปŸ่ฎกๅ„ไธ“ไธšๅญฆ็”Ÿไบบๆ•ฐ")

A university uses 2 data tables, student and department, to store data about its students and the departments associated with each major.

diff --git a/problems/count-substrings-with-only-one-distinct-letter/README.md b/problems/count-substrings-with-only-one-distinct-letter/README.md index 00ecd7769..8e6df1b11 100644 --- a/problems/count-substrings-with-only-one-distinct-letter/README.md +++ b/problems/count-substrings-with-only-one-distinct-letter/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/before-and-after-puzzle "Before and After Puzzle") -## 1180. Count Substrings with Only One Distinct Letter (Easy) +## [1180. Count Substrings with Only One Distinct Letter (Easy)](https://leetcode.com/problems/count-substrings-with-only-one-distinct-letter "็ปŸ่ฎกๅชๅซๅ•ไธ€ๅญ—ๆฏ็š„ๅญไธฒ") diff --git a/problems/count-the-repetitions/README.md b/problems/count-the-repetitions/README.md index de6a7df0c..a41a96c6d 100644 --- a/problems/count-the-repetitions/README.md +++ b/problems/count-the-repetitions/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-substrings-in-wraparound-string "Unique Substrings in Wraparound String") -## 466. Count The Repetitions (Hard) +## [466. Count The Repetitions (Hard)](https://leetcode.com/problems/count-the-repetitions "็ปŸ่ฎก้‡ๅคไธชๆ•ฐ")

Define S = [s,n] as the string S which consists of n connected strings s. For example, ["abc", 3] ="abcabcabc".

On the other hand, we define that string s1 can be obtained from string s2 if we can remove some characters from s2 such that it becomes s1. For example, โ€œabcโ€ can be obtained from โ€œabdbecโ€ based on our definition, but it can not be obtained from โ€œacbbeโ€.

diff --git a/problems/count-univalue-subtrees/README.md b/problems/count-univalue-subtrees/README.md index 88ab1303d..3ff6de1b6 100644 --- a/problems/count-univalue-subtrees/README.md +++ b/problems/count-univalue-subtrees/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flatten-2d-vector "Flatten 2D Vector") -## 250. Count Univalue Subtrees (Medium) +## [250. Count Univalue Subtrees (Medium)](https://leetcode.com/problems/count-univalue-subtrees "็ปŸ่ฎกๅŒๅ€ผๅญๆ ‘")

Given a binary tree, count the number of uni-value subtrees.

diff --git a/problems/counting-bits/README.md b/problems/counting-bits/README.md index 30195d2fd..9f17689de 100644 --- a/problems/counting-bits/README.md +++ b/problems/counting-bits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/nested-list-weight-sum "Nested List Weight Sum") -## 338. Counting Bits (Medium) +## [338. Counting Bits (Medium)](https://leetcode.com/problems/counting-bits "ๆฏ”็‰นไฝ่ฎกๆ•ฐ")

Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.

diff --git a/problems/couples-holding-hands/README.md b/problems/couples-holding-hands/README.md index b3e80761e..e9ffd922a 100644 --- a/problems/couples-holding-hands/README.md +++ b/problems/couples-holding-hands/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/toeplitz-matrix "Toeplitz Matrix") -## 765. Couples Holding Hands (Hard) +## [765. Couples Holding Hands (Hard)](https://leetcode.com/problems/couples-holding-hands "ๆƒ…ไพฃ็‰ตๆ‰‹")

N couples sit in 2N seats arranged in a row and want to hold hands. We want to know the minimum number of swaps so that every couple is sitting side by side. A swap consists of choosing any two people, then they stand up and switch seats. diff --git a/problems/course-schedule-ii/README.md b/problems/course-schedule-ii/README.md index ca3342538..a6c13e0ab 100644 --- a/problems/course-schedule-ii/README.md +++ b/problems/course-schedule-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/add-and-search-word-data-structure-design "Add and Search Word - Data structure design") -## 210. Course Schedule II (Medium) +## [210. Course Schedule II (Medium)](https://leetcode.com/problems/course-schedule-ii "่ฏพ็จ‹่กจ II")

There are a total of n courses you have to take, labeled from 0 to n-1.

diff --git a/problems/course-schedule-iii/README.md b/problems/course-schedule-iii/README.md index f46aac4d3..c01f7c980 100644 --- a/problems/course-schedule-iii/README.md +++ b/problems/course-schedule-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-excel-sum-formula "Design Excel Sum Formula") -## 630. Course Schedule III (Hard) +## [630. Course Schedule III (Hard)](https://leetcode.com/problems/course-schedule-iii "่ฏพ็จ‹่กจ III")

There are n different online courses numbered from 1 to n. Each course has some duration(course length) t and closed on dth day. A course should be taken continuously for t days and must be finished before or on the dth day. You will start at the 1st day.

diff --git a/problems/course-schedule/README.md b/problems/course-schedule/README.md index 4f6347124..e3854bc7b 100644 --- a/problems/course-schedule/README.md +++ b/problems/course-schedule/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/implement-trie-prefix-tree "Implement Trie (Prefix Tree)") -## 207. Course Schedule (Medium) +## [207. Course Schedule (Medium)](https://leetcode.com/problems/course-schedule "่ฏพ็จ‹่กจ")

There are a total of n courses you have to take, labeled from 0 to n-1.

diff --git a/problems/cousins-in-binary-tree/README.md b/problems/cousins-in-binary-tree/README.md index 573e62b93..7415ee085 100644 --- a/problems/cousins-in-binary-tree/README.md +++ b/problems/cousins-in-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rotting-oranges "Rotting Oranges") -## 993. Cousins in Binary Tree (Easy) +## [993. Cousins in Binary Tree (Easy)](https://leetcode.com/problems/cousins-in-binary-tree "ไบŒๅ‰ๆ ‘็š„ๅ ‚ๅ…„ๅผŸ่Š‚็‚น")

In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1.

diff --git a/problems/cracking-the-safe/README.md b/problems/cracking-the-safe/README.md index 801b7fb4a..319f2e435 100644 --- a/problems/cracking-the-safe/README.md +++ b/problems/cracking-the-safe/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reach-a-number "Reach a Number") -## 753. Cracking the Safe (Hard) +## [753. Cracking the Safe (Hard)](https://leetcode.com/problems/cracking-the-safe "็ ด่งฃไฟ้™ฉ็ฎฑ")

There is a box protected by a password. The password is a sequence of n digits where each digit can be one of the first k digits 0, 1, ..., k-1.

diff --git a/problems/create-maximum-number/README.md b/problems/create-maximum-number/README.md index 795e1cf11..d57941c34 100644 --- a/problems/create-maximum-number/README.md +++ b/problems/create-maximum-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/coin-change "Coin Change") -## 321. Create Maximum Number (Hard) +## [321. Create Maximum Number (Hard)](https://leetcode.com/problems/create-maximum-number "ๆ‹ผๆŽฅๆœ€ๅคงๆ•ฐ")

Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the two. The relative order of the digits from the same array must be preserved. Return an array of the k digits.

diff --git a/problems/critical-connections-in-a-network/README.md b/problems/critical-connections-in-a-network/README.md index d941838bc..bcb36859c 100644 --- a/problems/critical-connections-in-a-network/README.md +++ b/problems/critical-connections-in-a-network/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/monthly-transactions-i "Monthly Transactions I") -## 1192. Critical Connections in a Network (Hard) +## [1192. Critical Connections in a Network (Hard)](https://leetcode.com/problems/critical-connections-in-a-network "ๆŸฅๆ‰พ้›†็พคๅ†…็š„ใ€Œๅ…ณ้”ฎ่ฟžๆŽฅใ€")

There are n servers numbered from 0 to n-1 connected by undirected server-to-server connections forming a network where connections[i] = [a, b] represents a connection between servers a and b. Any server can reach any other server directly or indirectly through the network.

@@ -38,9 +38,6 @@
  • There are no repeated connections.
  • -### Related Topics - [[Depth-first Search](https://github.com/openset/leetcode/tree/master/tag/depth-first-search/README.md)] - ### Hints
    Hint 1 diff --git a/problems/custom-sort-string/README.md b/problems/custom-sort-string/README.md index 0adff7da0..c6c50ca70 100644 --- a/problems/custom-sort-string/README.md +++ b/problems/custom-sort-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-matching-subsequences "Number of Matching Subsequences") -## 791. Custom Sort String (Medium) +## [791. Custom Sort String (Medium)](https://leetcode.com/problems/custom-sort-string "่‡ชๅฎšไน‰ๅญ—็ฌฆไธฒๆŽ’ๅบ")

    S and T are strings composed of lowercase letters. In S, no letter occurs more than once.

    diff --git a/problems/customer-placing-the-largest-number-of-orders/README.md b/problems/customer-placing-the-largest-number-of-orders/README.md index 6f9441ade..8451e4363 100644 --- a/problems/customer-placing-the-largest-number-of-orders/README.md +++ b/problems/customer-placing-the-largest-number-of-orders/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/erect-the-fence "Erect the Fence") -## 586. Customer Placing the Largest Number of Orders (Easy) +## [586. Customer Placing the Largest Number of Orders (Easy)](https://leetcode.com/problems/customer-placing-the-largest-number-of-orders "่ฎขๅ•ๆœ€ๅคš็š„ๅฎขๆˆท")

    Query the customer_number from the orders table for the customer who has placed the largest number of orders.

    diff --git a/problems/customers-who-bought-all-products/README.md b/problems/customers-who-bought-all-products/README.md index 5eeccdcbf..b362abbef 100644 --- a/problems/customers-who-bought-all-products/README.md +++ b/problems/customers-who-bought-all-products/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/last-stone-weight "Last Stone Weight") -## 1045. Customers Who Bought All Products (Medium) +## [1045. Customers Who Bought All Products (Medium)](https://leetcode.com/problems/customers-who-bought-all-products "ไนฐไธ‹ๆ‰€ๆœ‰ไบงๅ“็š„ๅฎขๆˆท") diff --git a/problems/customers-who-never-order/README.md b/problems/customers-who-never-order/README.md index 3e8135fe5..3bb83537f 100644 --- a/problems/customers-who-never-order/README.md +++ b/problems/customers-who-never-order/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/department-highest-salary "Department Highest Salary") -## 183. Customers Who Never Order (Easy) +## [183. Customers Who Never Order (Easy)](https://leetcode.com/problems/customers-who-never-order "ไปŽไธ่ฎข่ดญ็š„ๅฎขๆˆท")

    Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything.

    diff --git a/problems/cut-off-trees-for-golf-event/README.md b/problems/cut-off-trees-for-golf-event/README.md index 9a72399c0..b250a1f77 100644 --- a/problems/cut-off-trees-for-golf-event/README.md +++ b/problems/cut-off-trees-for-golf-event/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/implement-magic-dictionary "Implement Magic Dictionary") -## 675. Cut Off Trees for Golf Event (Hard) +## [675. Cut Off Trees for Golf Event (Hard)](https://leetcode.com/problems/cut-off-trees-for-golf-event "ไธบ้ซ˜ๅฐ”ๅคซๆฏ”่ต›็ ๆ ‘")

    You are asked to cut off trees in a forest for a golf event. The forest is represented as a non-negative 2D map, in this map:

    diff --git a/problems/daily-temperatures/README.md b/problems/daily-temperatures/README.md index 414173ba3..9c0e7c3b7 100644 --- a/problems/daily-temperatures/README.md +++ b/problems/daily-temperatures/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/delete-and-earn "Delete and Earn") -## 739. Daily Temperatures (Medium) +## [739. Daily Temperatures (Medium)](https://leetcode.com/problems/daily-temperatures "ๆฏๆ—ฅๆธฉๅบฆ")

    Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warmer temperature. If there is no future day for which this is possible, put 0 instead. diff --git a/problems/data-stream-as-disjoint-intervals/README.md b/problems/data-stream-as-disjoint-intervals/README.md index 82bdfdd66..00b7ba5f1 100644 --- a/problems/data-stream-as-disjoint-intervals/README.md +++ b/problems/data-stream-as-disjoint-intervals/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-snake-game "Design Snake Game") -## 352. Data Stream as Disjoint Intervals (Hard) +## [352. Data Stream as Disjoint Intervals (Hard)](https://leetcode.com/problems/data-stream-as-disjoint-intervals "ๅฐ†ๆ•ฐๆฎๆตๅ˜ไธบๅคšไธชไธ็›ธไบคๅŒบ้—ด")

    Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen so far as a list of disjoint intervals.

    diff --git a/problems/day-of-the-week/README.md b/problems/day-of-the-week/README.md index 4556fb615..2dc9e3411 100644 --- a/problems/day-of-the-week/README.md +++ b/problems/day-of-the-week/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-subarray-sum-with-one-deletion "Maximum Subarray Sum with One Deletion") -## 1185. Day of the Week (Easy) +## [1185. Day of the Week (Easy)](https://leetcode.com/problems/day-of-the-week "ไธ€ๅ‘จไธญ็š„็ฌฌๅ‡ ๅคฉ")

    Given a date, return the corresponding day of the week for that date.

    diff --git a/problems/day-of-the-year/README.md b/problems/day-of-the-year/README.md index f397007d9..34f9b79b4 100644 --- a/problems/day-of-the-year/README.md +++ b/problems/day-of-the-year/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-dice-rolls-with-target-sum "Number of Dice Rolls With Target Sum") -## 1154. Day of the Year (Easy) +## [1154. Day of the Year (Easy)](https://leetcode.com/problems/day-of-the-year "")

    Given a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day number of the year.

    diff --git a/problems/decode-string/README.md b/problems/decode-string/README.md index 2883f546f..35004dff4 100644 --- a/problems/decode-string/README.md +++ b/problems/decode-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-substring-with-at-least-k-repeating-characters "Longest Substring with At Least K Repeating Characters") -## 394. Decode String (Medium) +## [394. Decode String (Medium)](https://leetcode.com/problems/decode-string "ๅญ—็ฌฆไธฒ่งฃ็ ")

    Given an encoded string, return its decoded string.

    diff --git a/problems/decode-ways-ii/README.md b/problems/decode-ways-ii/README.md index 2211a3562..53a80f86e 100644 --- a/problems/decode-ways-ii/README.md +++ b/problems/decode-ways-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/solve-the-equation "Solve the Equation") -## 639. Decode Ways II (Hard) +## [639. Decode Ways II (Hard)](https://leetcode.com/problems/decode-ways-ii "่งฃ็ ๆ–นๆณ• 2")

    A message containing letters from A-Z is being encoded to numbers using the following mapping way: diff --git a/problems/decode-ways/README.md b/problems/decode-ways/README.md index 1d8ce1b81..3a2569d2f 100644 --- a/problems/decode-ways/README.md +++ b/problems/decode-ways/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-linked-list-ii "Reverse Linked List II") -## 91. Decode Ways (Medium) +## [91. Decode Ways (Medium)](https://leetcode.com/problems/decode-ways "่งฃ็ ๆ–นๆณ•")

    A message containing letters from A-Z is being encoded to numbers using the following mapping:

    diff --git a/problems/decoded-string-at-index/README.md b/problems/decoded-string-at-index/README.md index 86354056e..d27e7cfc7 100644 --- a/problems/decoded-string-at-index/README.md +++ b/problems/decoded-string-at-index/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/boats-to-save-people "Boats to Save People") -## 880. Decoded String at Index (Medium) +## [880. Decoded String at Index (Medium)](https://leetcode.com/problems/decoded-string-at-index "็ดขๅผ•ๅค„็š„่งฃ็ ๅญ—็ฌฆไธฒ")

    An encoded string S is given.  To find and write the decoded string to a tape, the encoded string is read one character at a time and the following steps are taken:

    diff --git a/problems/decrease-elements-to-make-array-zigzag/README.md b/problems/decrease-elements-to-make-array-zigzag/README.md index 4442b2cc4..ab811dfdb 100644 --- a/problems/decrease-elements-to-make-array-zigzag/README.md +++ b/problems/decrease-elements-to-make-array-zigzag/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-coloring-game "Binary Tree Coloring Game") -## 1144. Decrease Elements To Make Array Zigzag (Medium) +## [1144. Decrease Elements To Make Array Zigzag (Medium)](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag "้€’ๅ‡ๅ…ƒ็ด ไฝฟๆ•ฐ็ป„ๅ‘ˆ้”ฏ้ฝฟ็Šถ")

    Given an array nums of integers, a move consists of choosing any element and decreasing it by 1.

    diff --git a/problems/defanging-an-ip-address/README.md b/problems/defanging-an-ip-address/README.md index 2d4332809..ee99c84bd 100644 --- a/problems/defanging-an-ip-address/README.md +++ b/problems/defanging-an-ip-address/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/corporate-flight-bookings "Corporate Flight Bookings") -## 1108. Defanging an IP Address (Easy) +## [1108. Defanging an IP Address (Easy)](https://leetcode.com/problems/defanging-an-ip-address "IP ๅœฐๅ€ๆ— ๆ•ˆๅŒ–")

    Given a valid (IPv4) IP address, return a defanged version of that IP address.

    diff --git a/problems/degree-of-an-array/README.md b/problems/degree-of-an-array/README.md index c1cdf7072..0046229ed 100644 --- a/problems/degree-of-an-array/README.md +++ b/problems/degree-of-an-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/partition-to-k-equal-sum-subsets "Partition to K Equal Sum Subsets") -## 697. Degree of an Array (Easy) +## [697. Degree of an Array (Easy)](https://leetcode.com/problems/degree-of-an-array "ๆ•ฐ็ป„็š„ๅบฆ")

    Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements.

    Your task is to find the smallest possible length of a (contiguous) subarray of nums, that has the same degree as nums.

    diff --git a/problems/delete-and-earn/README.md b/problems/delete-and-earn/README.md index 0bf34bb8b..ed871877f 100644 --- a/problems/delete-and-earn/README.md +++ b/problems/delete-and-earn/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/cherry-pickup "Cherry Pickup") -## 740. Delete and Earn (Medium) +## [740. Delete and Earn (Medium)](https://leetcode.com/problems/delete-and-earn "ๅˆ ้™คไธŽ่Žทๅพ—็‚นๆ•ฐ")

    Given an array nums of integers, you can perform operations on the array.

    diff --git a/problems/delete-columns-to-make-sorted-ii/README.md b/problems/delete-columns-to-make-sorted-ii/README.md index f8009ec02..c09a89512 100644 --- a/problems/delete-columns-to-make-sorted-ii/README.md +++ b/problems/delete-columns-to-make-sorted-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/tallest-billboard "Tallest Billboard") -## 955. Delete Columns to Make Sorted II (Medium) +## [955. Delete Columns to Make Sorted II (Medium)](https://leetcode.com/problems/delete-columns-to-make-sorted-ii "ๅˆ ๅˆ—้€ ๅบ II")

    We are given an array A of N lowercase letter strings, all of the same length.

    diff --git a/problems/delete-columns-to-make-sorted-iii/README.md b/problems/delete-columns-to-make-sorted-iii/README.md index e5d943f3b..380e6d1d0 100644 --- a/problems/delete-columns-to-make-sorted-iii/README.md +++ b/problems/delete-columns-to-make-sorted-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/n-repeated-element-in-size-2n-array "N-Repeated Element in Size 2N Array") -## 960. Delete Columns to Make Sorted III (Hard) +## [960. Delete Columns to Make Sorted III (Hard)](https://leetcode.com/problems/delete-columns-to-make-sorted-iii "ๅˆ ๅˆ—้€ ๅบ III")

    We are given an array A of N lowercase letter strings, all of the same length.

    diff --git a/problems/delete-columns-to-make-sorted/README.md b/problems/delete-columns-to-make-sorted/README.md index 82ea3792d..88f9e2efe 100644 --- a/problems/delete-columns-to-make-sorted/README.md +++ b/problems/delete-columns-to-make-sorted/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-increment-to-make-array-unique "Minimum Increment to Make Array Unique") -## 944. Delete Columns to Make Sorted (Easy) +## [944. Delete Columns to Make Sorted (Easy)](https://leetcode.com/problems/delete-columns-to-make-sorted "ๅˆ ๅˆ—้€ ๅบ")

    We are given an array A of N lowercase letter strings, all of the same length.

    diff --git a/problems/delete-duplicate-emails/README.md b/problems/delete-duplicate-emails/README.md index 1a83f17dd..514ecc93e 100644 --- a/problems/delete-duplicate-emails/README.md +++ b/problems/delete-duplicate-emails/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rising-temperature "Rising Temperature") -## 196. Delete Duplicate Emails (Easy) +## [196. Delete Duplicate Emails (Easy)](https://leetcode.com/problems/delete-duplicate-emails "ๅˆ ้™ค้‡ๅค็š„็”ตๅญ้‚ฎ็ฎฑ")

    Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id.

    diff --git a/problems/delete-node-in-a-bst/README.md b/problems/delete-node-in-a-bst/README.md index 7ae24ecc5..6921e541f 100644 --- a/problems/delete-node-in-a-bst/README.md +++ b/problems/delete-node-in-a-bst/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sort-characters-by-frequency "Sort Characters By Frequency") -## 450. Delete Node in a BST (Medium) +## [450. Delete Node in a BST (Medium)](https://leetcode.com/problems/delete-node-in-a-bst "ๅˆ ้™คไบŒๅ‰ๆœ็ดขๆ ‘ไธญ็š„่Š‚็‚น")

    Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of the BST.

    diff --git a/problems/delete-node-in-a-linked-list/README.md b/problems/delete-node-in-a-linked-list/README.md index 049cff9db..5df329c78 100644 --- a/problems/delete-node-in-a-linked-list/README.md +++ b/problems/delete-node-in-a-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/product-of-array-except-self "Product of Array Except Self") -## 237. Delete Node in a Linked List (Easy) +## [237. Delete Node in a Linked List (Easy)](https://leetcode.com/problems/delete-node-in-a-linked-list "ๅˆ ้™ค้“พ่กจไธญ็š„่Š‚็‚น")

    Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.

    diff --git a/problems/delete-nodes-and-return-forest/README.md b/problems/delete-nodes-and-return-forest/README.md index 9deedf4a1..ed19b1c24 100644 --- a/problems/delete-nodes-and-return-forest/README.md +++ b/problems/delete-nodes-and-return-forest/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-nesting-depth-of-two-valid-parentheses-strings "Maximum Nesting Depth of Two Valid Parentheses Strings") -## 1110. Delete Nodes And Return Forest (Medium) +## [1110. Delete Nodes And Return Forest (Medium)](https://leetcode.com/problems/delete-nodes-and-return-forest "ๅˆ ็‚นๆˆๆž—")

    Given the root of a binary tree, each node in the tree has a distinct value.

    diff --git a/problems/delete-operation-for-two-strings/README.md b/problems/delete-operation-for-two-strings/README.md index ef9eb2bba..87566b336 100644 --- a/problems/delete-operation-for-two-strings/README.md +++ b/problems/delete-operation-for-two-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-customer-referee "Find Customer Referee") -## 583. Delete Operation for Two Strings (Medium) +## [583. Delete Operation for Two Strings (Medium)](https://leetcode.com/problems/delete-operation-for-two-strings "ไธคไธชๅญ—็ฌฆไธฒ็š„ๅˆ ้™คๆ“ไฝœ")

    Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one character in either string. diff --git a/problems/department-highest-salary/README.md b/problems/department-highest-salary/README.md index 29de509a6..4e64bd78b 100644 --- a/problems/department-highest-salary/README.md +++ b/problems/department-highest-salary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/department-top-three-salaries "Department Top Three Salaries") -## 184. Department Highest Salary (Medium) +## [184. Department Highest Salary (Medium)](https://leetcode.com/problems/department-highest-salary "้ƒจ้—จๅทฅ่ต„ๆœ€้ซ˜็š„ๅ‘˜ๅทฅ")

    The Employee table holds all employees. Every employee has an Id, a salary, and there is also a column for the department Id.

    diff --git a/problems/department-top-three-salaries/README.md b/problems/department-top-three-salaries/README.md index bb5092fcf..98fb00201 100644 --- a/problems/department-top-three-salaries/README.md +++ b/problems/department-top-three-salaries/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-words-in-a-string-ii "Reverse Words in a String II") -## 185. Department Top Three Salaries (Hard) +## [185. Department Top Three Salaries (Hard)](https://leetcode.com/problems/department-top-three-salaries "้ƒจ้—จๅทฅ่ต„ๅ‰ไธ‰้ซ˜็š„ๆ‰€ๆœ‰ๅ‘˜ๅทฅ")

    The Employee table holds all employees. Every employee has an Id, and there is also a column for the department Id.

    diff --git a/problems/design-bounded-blocking-queue/README.md b/problems/design-bounded-blocking-queue/README.md index 3f1148a56..d0ae021d2 100644 --- a/problems/design-bounded-blocking-queue/README.md +++ b/problems/design-bounded-blocking-queue/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-number-of-balloons "Maximum Number of Balloons") -## 1188. Design Bounded Blocking Queue (Medium) +## [1188. Design Bounded Blocking Queue (Medium)](https://leetcode.com/problems/design-bounded-blocking-queue "") diff --git a/problems/design-circular-deque/README.md b/problems/design-circular-deque/README.md index c47d50ca7..d35aa282f 100644 --- a/problems/design-circular-deque/README.md +++ b/problems/design-circular-deque/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-search-autocomplete-system "Design Search Autocomplete System") -## 641. Design Circular Deque (Medium) +## [641. Design Circular Deque (Medium)](https://leetcode.com/problems/design-circular-deque "่ฎพ่ฎกๅพช็ŽฏๅŒ็ซฏ้˜Ÿๅˆ—")

    Design your implementation of the circular double-ended queue (deque).

    diff --git a/problems/design-circular-queue/README.md b/problems/design-circular-queue/README.md index 517436f91..d87c12783 100644 --- a/problems/design-circular-queue/README.md +++ b/problems/design-circular-queue/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/add-one-row-to-tree "Add One Row to Tree") -## 622. Design Circular Queue (Medium) +## [622. Design Circular Queue (Medium)](https://leetcode.com/problems/design-circular-queue "่ฎพ่ฎกๅพช็Žฏ้˜Ÿๅˆ—")

    Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle and the last position is connected back to the first position to make a circle. It is also called "Ring Buffer".

    diff --git a/problems/design-compressed-string-iterator/README.md b/problems/design-compressed-string-iterator/README.md index f20c5d5a2..03cb95090 100644 --- a/problems/design-compressed-string-iterator/README.md +++ b/problems/design-compressed-string-iterator/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/can-place-flowers "Can Place Flowers") -## 604. Design Compressed String Iterator (Easy) +## [604. Design Compressed String Iterator (Easy)](https://leetcode.com/problems/design-compressed-string-iterator "่ฟญไปฃๅŽ‹็ผฉๅญ—็ฌฆไธฒ")

    Design and implement a data structure for a compressed string iterator. It should support the following operations: next and hasNext. diff --git a/problems/design-excel-sum-formula/README.md b/problems/design-excel-sum-formula/README.md index d44af66d9..6fec113cb 100644 --- a/problems/design-excel-sum-formula/README.md +++ b/problems/design-excel-sum-formula/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-range-covering-elements-from-k-lists "Smallest Range Covering Elements from K Lists") -## 631. Design Excel Sum Formula (Hard) +## [631. Design Excel Sum Formula (Hard)](https://leetcode.com/problems/design-excel-sum-formula "่ฎพ่ฎก Excel ๆฑ‚ๅ’Œๅ…ฌๅผ") diff --git a/problems/design-file-system/README.md b/problems/design-file-system/README.md index cd509f74d..a82c1464f 100644 --- a/problems/design-file-system/README.md +++ b/problems/design-file-system/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-cost-to-connect-sticks "Minimum Cost to Connect Sticks") -## 1166. Design File System (Medium) +## [1166. Design File System (Medium)](https://leetcode.com/problems/design-file-system "่ฎพ่ฎกๆ–‡ไปถ็ณป็ปŸ") diff --git a/problems/design-hashmap/README.md b/problems/design-hashmap/README.md index 11365762f..6a547f5e4 100644 --- a/problems/design-hashmap/README.md +++ b/problems/design-hashmap/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-linked-list "Design Linked List") -## 706. Design HashMap (Easy) +## [706. Design HashMap (Easy)](https://leetcode.com/problems/design-hashmap "่ฎพ่ฎกๅ“ˆๅธŒๆ˜ ๅฐ„")

    Design a HashMap without using any built-in hash table libraries.

    diff --git a/problems/design-hashset/README.md b/problems/design-hashset/README.md index 27869ab7c..f2167ee1a 100644 --- a/problems/design-hashset/README.md +++ b/problems/design-hashset/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-hashmap "Design HashMap") -## 705. Design HashSet (Easy) +## [705. Design HashSet (Easy)](https://leetcode.com/problems/design-hashset "่ฎพ่ฎกๅ“ˆๅธŒ้›†ๅˆ")

    Design a HashSet without using any built-in hash table libraries.

    diff --git a/problems/design-hit-counter/README.md b/problems/design-hit-counter/README.md index c47460503..994783774 100644 --- a/problems/design-hit-counter/README.md +++ b/problems/design-hit-counter/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-sum-of-rectangle-no-larger-than-k "Max Sum of Rectangle No Larger Than K") -## 362. Design Hit Counter (Medium) +## [362. Design Hit Counter (Medium)](https://leetcode.com/problems/design-hit-counter "ๆ•ฒๅ‡ป่ฎกๆ•ฐๅ™จ") diff --git a/problems/design-in-memory-file-system/README.md b/problems/design-in-memory-file-system/README.md index ef68f1cb5..c4650d754 100644 --- a/problems/design-in-memory-file-system/README.md +++ b/problems/design-in-memory-file-system/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/n-ary-tree-preorder-traversal "N-ary Tree Preorder Traversal") -## 588. Design In-Memory File System (Hard) +## [588. Design In-Memory File System (Hard)](https://leetcode.com/problems/design-in-memory-file-system "่ฎพ่ฎกๅ†…ๅญ˜ๆ–‡ไปถ็ณป็ปŸ")

    Design an in-memory file system to simulate the following functions:

    diff --git a/problems/design-linked-list/README.md b/problems/design-linked-list/README.md index c6e5b7263..3c9009b67 100644 --- a/problems/design-linked-list/README.md +++ b/problems/design-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/insert-into-a-cyclic-sorted-list "Insert into a Cyclic Sorted List") -## 707. Design Linked List (Easy) +## [707. Design Linked List (Easy)](https://leetcode.com/problems/design-linked-list "่ฎพ่ฎก้“พ่กจ")

    Design your implementation of the linked list. You can choose to use the singly linked list or the doubly linked list. A node in a singly linked list should have two attributes: val and next. val is the value of the current node, and next is a pointer/reference to the next node. If you want to use the doubly linked list, you will need one more attribute prev to indicate the previous node in the linked list. Assume all nodes in the linked list are 0-indexed.

    diff --git a/problems/design-log-storage-system/README.md b/problems/design-log-storage-system/README.md index 1e3890f62..44f46f1aa 100644 --- a/problems/design-log-storage-system/README.md +++ b/problems/design-log-storage-system/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/exclusive-time-of-functions "Exclusive Time of Functions") -## 635. Design Log Storage System (Medium) +## [635. Design Log Storage System (Medium)](https://leetcode.com/problems/design-log-storage-system "่ฎพ่ฎกๆ—ฅๅฟ—ๅญ˜ๅ‚จ็ณป็ปŸ") diff --git a/problems/design-phone-directory/README.md b/problems/design-phone-directory/README.md index 0108400bb..f472ece5f 100644 --- a/problems/design-phone-directory/README.md +++ b/problems/design-phone-directory/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/insert-delete-getrandom-o1 "Insert Delete GetRandom O(1)") -## 379. Design Phone Directory (Medium) +## [379. Design Phone Directory (Medium)](https://leetcode.com/problems/design-phone-directory "็”ต่ฏ็›ฎๅฝ•็ฎก็†็ณป็ปŸ") diff --git a/problems/design-search-autocomplete-system/README.md b/problems/design-search-autocomplete-system/README.md index 262e6aca5..1ed139d1c 100644 --- a/problems/design-search-autocomplete-system/README.md +++ b/problems/design-search-autocomplete-system/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-average-subarray-i "Maximum Average Subarray I") -## 642. Design Search Autocomplete System (Hard) +## [642. Design Search Autocomplete System (Hard)](https://leetcode.com/problems/design-search-autocomplete-system "่ฎพ่ฎกๆœ็ดข่‡ชๅŠจ่กฅๅ…จ็ณป็ปŸ") diff --git a/problems/design-snake-game/README.md b/problems/design-snake-game/README.md index ac2ed9d34..e27bf44e5 100644 --- a/problems/design-snake-game/README.md +++ b/problems/design-snake-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/russian-doll-envelopes "Russian Doll Envelopes") -## 353. Design Snake Game (Medium) +## [353. Design Snake Game (Medium)](https://leetcode.com/problems/design-snake-game "่ดชๅƒ่›‡") diff --git a/problems/design-tic-tac-toe/README.md b/problems/design-tic-tac-toe/README.md index 10404298d..7225cbb6b 100644 --- a/problems/design-tic-tac-toe/README.md +++ b/problems/design-tic-tac-toe/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/intersection-of-two-arrays "Intersection of Two Arrays") -## 348. Design Tic-Tac-Toe (Medium) +## [348. Design Tic-Tac-Toe (Medium)](https://leetcode.com/problems/design-tic-tac-toe "ๅˆคๅฎšไบ•ๅญ—ๆฃ‹่ƒœ่ดŸ") diff --git a/problems/design-twitter/README.md b/problems/design-twitter/README.md index 5f4e82d9e..3542ae84d 100644 --- a/problems/design-twitter/README.md +++ b/problems/design-twitter/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/line-reflection "Line Reflection") -## 355. Design Twitter (Medium) +## [355. Design Twitter (Medium)](https://leetcode.com/problems/design-twitter "่ฎพ่ฎกๆŽจ็‰น")

    Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see the 10 most recent tweets in the user's news feed. Your design should support the following methods:

    diff --git a/problems/detect-capital/README.md b/problems/detect-capital/README.md index a092ebfdd..dcfa152ea 100644 --- a/problems/detect-capital/README.md +++ b/problems/detect-capital/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-uncommon-subsequence-i "Longest Uncommon Subsequence I ") -## 520. Detect Capital (Easy) +## [520. Detect Capital (Easy)](https://leetcode.com/problems/detect-capital "ๆฃ€ๆต‹ๅคงๅ†™ๅญ—ๆฏ")

    Given a word, you need to judge whether the usage of capitals in it is right or not.

    diff --git a/problems/di-string-match/README.md b/problems/di-string-match/README.md index 6b90f69a4..904142157 100644 --- a/problems/di-string-match/README.md +++ b/problems/di-string-match/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-the-shortest-superstring "Find the Shortest Superstring") -## 942. DI String Match (Easy) +## [942. DI String Match (Easy)](https://leetcode.com/problems/di-string-match "ๅขžๅ‡ๅญ—็ฌฆไธฒๅŒน้…")

    Given a string S that only contains "I" (increase) or "D" (decrease), let N = S.length.

    diff --git a/problems/diagonal-traverse/README.md b/problems/diagonal-traverse/README.md index 4257c80ce..73dc3c5b7 100644 --- a/problems/diagonal-traverse/README.md +++ b/problems/diagonal-traverse/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/the-maze-iii "The Maze III") -## 498. Diagonal Traverse (Medium) +## [498. Diagonal Traverse (Medium)](https://leetcode.com/problems/diagonal-traverse "ๅฏน่ง’็บฟ้ๅކ")

    Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order as shown in the below image.

    diff --git a/problems/diameter-of-binary-tree/README.md b/problems/diameter-of-binary-tree/README.md index 591fa303d..43408cbaf 100644 --- a/problems/diameter-of-binary-tree/README.md +++ b/problems/diameter-of-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/output-contest-matches "Output Contest Matches") -## 543. Diameter of Binary Tree (Easy) +## [543. Diameter of Binary Tree (Easy)](https://leetcode.com/problems/diameter-of-binary-tree "ไบŒๅ‰ๆ ‘็š„็›ดๅพ„")

    Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root. diff --git a/problems/diet-plan-performance/README.md b/problems/diet-plan-performance/README.md index b956703fe..c6d6531de 100644 --- a/problems/diet-plan-performance/README.md +++ b/problems/diet-plan-performance/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/can-make-palindrome-from-substring "Can Make Palindrome from Substring") -## 1176. Diet Plan Performance (Easy) +## [1176. Diet Plan Performance (Easy)](https://leetcode.com/problems/diet-plan-performance "ๅฅ่บซ่ฎกๅˆ’่ฏ„ไผฐ")

    A dieter consumes calories[i] calories on the i-th day.  For every consecutive sequence of k days, they look at T, the total calories consumed during that sequence of k days:

    diff --git a/problems/different-ways-to-add-parentheses/README.md b/problems/different-ways-to-add-parentheses/README.md index d27ab6abb..3fe8d055a 100644 --- a/problems/different-ways-to-add-parentheses/README.md +++ b/problems/different-ways-to-add-parentheses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-anagram "Valid Anagram") -## 241. Different Ways to Add Parentheses (Medium) +## [241. Different Ways to Add Parentheses (Medium)](https://leetcode.com/problems/different-ways-to-add-parentheses "ไธบ่ฟ็ฎ—่กจ่พพๅผ่ฎพ่ฎกไผ˜ๅ…ˆ็บง")

    Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +, - and *.

    diff --git a/problems/digit-count-in-range/README.md b/problems/digit-count-in-range/README.md index f273ce02f..0864f21b9 100644 --- a/problems/digit-count-in-range/README.md +++ b/problems/digit-count-in-range/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/product-sales-analysis-i "Product Sales Analysis I") -## 1067. Digit Count in Range (Hard) +## [1067. Digit Count in Range (Hard)](https://leetcode.com/problems/digit-count-in-range "่Œƒๅ›ดๅ†…็š„ๆ•ฐๅญ—่ฎกๆ•ฐ") Given an integer d between 0 and 9, and two positive integers low and high as lower and upper bounds, respectively. Return the number of times that d occurs as a digit in all integers between low and high, including the bounds low and high.

     

    diff --git a/problems/dinner-plate-stacks/README.md b/problems/dinner-plate-stacks/README.md index 1fa219109..60f18c04f 100644 --- a/problems/dinner-plate-stacks/README.md +++ b/problems/dinner-plate-stacks/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/immediate-food-delivery-i "Immediate Food Delivery I") -## 1172. Dinner Plate Stacks (Hard) +## [1172. Dinner Plate Stacks (Hard)](https://leetcode.com/problems/dinner-plate-stacks "้ค็›˜ๆ ˆ")

    You have an infinite number of stacks arranged in a row and numbered (left to right) from 0, each of the stacks has the same maximum capacity.

    diff --git a/problems/distance-between-bus-stops/README.md b/problems/distance-between-bus-stops/README.md index 18f2fd186..f823e5b1d 100644 --- a/problems/distance-between-bus-stops/README.md +++ b/problems/distance-between-bus-stops/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/day-of-the-week "Day of the Week") -## 1184. Distance Between Bus Stops (Easy) +## [1184. Distance Between Bus Stops (Easy)](https://leetcode.com/problems/distance-between-bus-stops "ๅ…ฌไบค็ซ™้—ด็š„่ท็ฆป")

    A bus has n stops numbered from 0 to n - 1 that form a circle. We know the distance between all pairs of neighboring stops where distance[i] is the distance between the stops number i and (i + 1) % n.

    diff --git a/problems/distant-barcodes/README.md b/problems/distant-barcodes/README.md index 4ace1e3dd..bc984cc96 100644 --- a/problems/distant-barcodes/README.md +++ b/problems/distant-barcodes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-way-to-form-string "Shortest Way to Form String") -## 1054. Distant Barcodes (Medium) +## [1054. Distant Barcodes (Medium)](https://leetcode.com/problems/distant-barcodes "่ท็ฆป็›ธ็ญ‰็š„ๆกๅฝข็ ")

    In a warehouse, there is a row of barcodes, where the i-th barcode is barcodes[i].

    diff --git a/problems/distinct-subsequences-ii/README.md b/problems/distinct-subsequences-ii/README.md index 3b4da08d5..c72aa44f6 100644 --- a/problems/distinct-subsequences-ii/README.md +++ b/problems/distinct-subsequences-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-mountain-array "Valid Mountain Array") -## 940. Distinct Subsequences II (Hard) +## [940. Distinct Subsequences II (Hard)](https://leetcode.com/problems/distinct-subsequences-ii "ไธๅŒ็š„ๅญๅบๅˆ— II")

    Given a string S, count the number of distinct, non-empty subsequences of S .

    diff --git a/problems/distinct-subsequences/README.md b/problems/distinct-subsequences/README.md index 2151958a0..9ba9a29ed 100644 --- a/problems/distinct-subsequences/README.md +++ b/problems/distinct-subsequences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/populating-next-right-pointers-in-each-node "Populating Next Right Pointers in Each Node") -## 115. Distinct Subsequences (Hard) +## [115. Distinct Subsequences (Hard)](https://leetcode.com/problems/distinct-subsequences "ไธๅŒ็š„ๅญๅบๅˆ—")

    Given a string S and a string T, count the number of distinct subsequences of S which equals T.

    diff --git a/problems/distribute-candies-to-people/README.md b/problems/distribute-candies-to-people/README.md index cc2f331e3..a40be9024 100644 --- a/problems/distribute-candies-to-people/README.md +++ b/problems/distribute-candies-to-people/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/path-in-zigzag-labelled-binary-tree "Path In Zigzag Labelled Binary Tree") -## 1103. Distribute Candies to People (Easy) +## [1103. Distribute Candies to People (Easy)](https://leetcode.com/problems/distribute-candies-to-people "ๅˆ†็ณ–ๆžœ II")

    We distribute some number of candies, to a row of n = num_people people in the following way:

    diff --git a/problems/distribute-candies/README.md b/problems/distribute-candies/README.md index 075344529..7d5cb2f31 100644 --- a/problems/distribute-candies/README.md +++ b/problems/distribute-candies/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/out-of-boundary-paths "Out of Boundary Paths") -## 575. Distribute Candies (Easy) +## [575. Distribute Candies (Easy)](https://leetcode.com/problems/distribute-candies "ๅˆ†็ณ–ๆžœ") Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind. You need to distribute these candies equally in number to brother and sister. Return the maximum number of kinds of candies the sister could gain. diff --git a/problems/distribute-coins-in-binary-tree/README.md b/problems/distribute-coins-in-binary-tree/README.md index f5b475d0a..677a8a1ec 100644 --- a/problems/distribute-coins-in-binary-tree/README.md +++ b/problems/distribute-coins-in-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-paths-iii "Unique Paths III") -## 979. Distribute Coins in Binary Tree (Medium) +## [979. Distribute Coins in Binary Tree (Medium)](https://leetcode.com/problems/distribute-coins-in-binary-tree "ๅœจไบŒๅ‰ๆ ‘ไธญๅˆ†้…็กฌๅธ")

    Given the root of a binary tree with N nodes, each node in the tree has node.val coins, and there are N coins total.

    diff --git a/problems/divide-array-into-increasing-sequences/README.md b/problems/divide-array-into-increasing-sequences/README.md index 9ffb67626..d9b5c6d64 100644 --- a/problems/divide-array-into-increasing-sequences/README.md +++ b/problems/divide-array-into-increasing-sequences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/relative-sort-array "Relative Sort Array") -## 1121. Divide Array Into Increasing Sequences (Hard) +## [1121. Divide Array Into Increasing Sequences (Hard)](https://leetcode.com/problems/divide-array-into-increasing-sequences "ๅฐ†ๆ•ฐ็ป„ๅˆ†ๆˆๅ‡ ไธช้€’ๅขžๅบๅˆ—") diff --git a/problems/divide-two-integers/README.md b/problems/divide-two-integers/README.md index 6fd8bc6b3..013767ec8 100644 --- a/problems/divide-two-integers/README.md +++ b/problems/divide-two-integers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/substring-with-concatenation-of-all-words "Substring with Concatenation of All Words") -## 29. Divide Two Integers (Medium) +## [29. Divide Two Integers (Medium)](https://leetcode.com/problems/divide-two-integers "ไธคๆ•ฐ็›ธ้™ค")

    Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.

    diff --git a/problems/divisor-game/README.md b/problems/divisor-game/README.md index f73bbf6b6..d39492181 100644 --- a/problems/divisor-game/README.md +++ b/problems/divisor-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-difference-between-node-and-ancestor "Maximum Difference Between Node and Ancestor") -## 1025. Divisor Game (Easy) +## [1025. Divisor Game (Easy)](https://leetcode.com/problems/divisor-game "้™คๆ•ฐๅšๅผˆ")

    Alice and Bob take turns playing a game, with Alice starting first.

    diff --git a/problems/domino-and-tromino-tiling/README.md b/problems/domino-and-tromino-tiling/README.md index 2493757fb..67d8e276b 100644 --- a/problems/domino-and-tromino-tiling/README.md +++ b/problems/domino-and-tromino-tiling/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/custom-sort-string "Custom Sort String") -## 790. Domino and Tromino Tiling (Medium) +## [790. Domino and Tromino Tiling (Medium)](https://leetcode.com/problems/domino-and-tromino-tiling "ๅคš็ฑณ่ฏบๅ’Œๆ‰˜็ฑณ่ฏบๅนณ้“บ")

    We have two types of tiles: a 2x1 domino shape, and an "L" tromino shape. These shapes may be rotated.

    diff --git a/problems/dota2-senate/README.md b/problems/dota2-senate/README.md index 423a94f11..e0a6664fa 100644 --- a/problems/dota2-senate/README.md +++ b/problems/dota2-senate/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/2-keys-keyboard "2 Keys Keyboard") -## 649. Dota2 Senate (Medium) +## [649. Dota2 Senate (Medium)](https://leetcode.com/problems/dota2-senate "Dota2 ๅ‚่ฎฎ้™ข")

    In the world of Dota2, there are two parties: the Radiant and the Dire.

    diff --git a/problems/dungeon-game/README.md b/problems/dungeon-game/README.md index a8f1297d4..97a9a1adb 100644 --- a/problems/dungeon-game/README.md +++ b/problems/dungeon-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/combine-two-tables "Combine Two Tables") -## 174. Dungeon Game (Hard) +## [174. Dungeon Game (Hard)](https://leetcode.com/problems/dungeon-game "ๅœฐไธ‹ๅŸŽๆธธๆˆ")

    The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initially positioned in the top-left room and must fight his way through the dungeon to rescue the princess.

    diff --git a/problems/duplicate-emails/README.md b/problems/duplicate-emails/README.md index 86b65529a..6c3c10853 100644 --- a/problems/duplicate-emails/README.md +++ b/problems/duplicate-emails/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/customers-who-never-order "Customers Who Never Order") -## 182. Duplicate Emails (Easy) +## [182. Duplicate Emails (Easy)](https://leetcode.com/problems/duplicate-emails "ๆŸฅๆ‰พ้‡ๅค็š„็”ตๅญ้‚ฎ็ฎฑ")

    Write a SQL query to find all duplicate emails in a table named Person.

    diff --git a/problems/duplicate-zeros/README.md b/problems/duplicate-zeros/README.md index 677d68441..ed16b029d 100644 --- a/problems/duplicate-zeros/README.md +++ b/problems/duplicate-zeros/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-values-from-labels "Largest Values From Labels") -## 1089. Duplicate Zeros (Easy) +## [1089. Duplicate Zeros (Easy)](https://leetcode.com/problems/duplicate-zeros "ๅคๅ†™้›ถ")

    Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right.

    diff --git a/problems/edit-distance/README.md b/problems/edit-distance/README.md index 2a345cbc3..adaa032a4 100644 --- a/problems/edit-distance/README.md +++ b/problems/edit-distance/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/set-matrix-zeroes "Set Matrix Zeroes") -## 72. Edit Distance (Hard) +## [72. Edit Distance (Hard)](https://leetcode.com/problems/edit-distance "็ผ–่พ‘่ท็ฆป")

    Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.

    diff --git a/problems/elimination-game/README.md b/problems/elimination-game/README.md index 9813f4f0d..ea1bc19a1 100644 --- a/problems/elimination-game/README.md +++ b/problems/elimination-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/perfect-rectangle "Perfect Rectangle") -## 390. Elimination Game (Medium) +## [390. Elimination Game (Medium)](https://leetcode.com/problems/elimination-game "ๆถˆ้™คๆธธๆˆ")

    There is a list of sorted integers from 1 to n. Starting from left to right, remove the first number and every other number afterward until you reach the end of the list.

    diff --git a/problems/employee-bonus/README.md b/problems/employee-bonus/README.md index 5a49394f2..5f390e4f5 100644 --- a/problems/employee-bonus/README.md +++ b/problems/employee-bonus/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/get-highest-answer-rate-question "Get Highest Answer Rate Question") -## 577. Employee Bonus (Easy) +## [577. Employee Bonus (Easy)](https://leetcode.com/problems/employee-bonus "ๅ‘˜ๅทฅๅฅ–้‡‘")

    Select all employee's name and bonus whose bonus is < 1000.

    diff --git a/problems/employee-free-time/README.md b/problems/employee-free-time/README.md index 3335e7e76..e221df32c 100644 --- a/problems/employee-free-time/README.md +++ b/problems/employee-free-time/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-anagram-mappings "Find Anagram Mappings") -## 759. Employee Free Time (Hard) +## [759. Employee Free Time (Hard)](https://leetcode.com/problems/employee-free-time "ๅ‘˜ๅทฅ็ฉบ้—ฒๆ—ถ้—ด") diff --git a/problems/employee-importance/README.md b/problems/employee-importance/README.md index 73763fd05..17f9c8afa 100644 --- a/problems/employee-importance/README.md +++ b/problems/employee-importance/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/stickers-to-spell-word "Stickers to Spell Word") -## 690. Employee Importance (Easy) +## [690. Employee Importance (Easy)](https://leetcode.com/problems/employee-importance "ๅ‘˜ๅทฅ็š„้‡่ฆๆ€ง")

    You are given a data structure of employee information, which includes the employee's unique id, his importance value and his direct subordinates' id.

    diff --git a/problems/employees-earning-more-than-their-managers/README.md b/problems/employees-earning-more-than-their-managers/README.md index 602ae9051..4f6b0b684 100644 --- a/problems/employees-earning-more-than-their-managers/README.md +++ b/problems/employees-earning-more-than-their-managers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/duplicate-emails "Duplicate Emails") -## 181. Employees Earning More Than Their Managers (Easy) +## [181. Employees Earning More Than Their Managers (Easy)](https://leetcode.com/problems/employees-earning-more-than-their-managers "่ถ…่ฟ‡็ป็†ๆ”ถๅ…ฅ็š„ๅ‘˜ๅทฅ")

    The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id.

    diff --git a/problems/encode-and-decode-strings/README.md b/problems/encode-and-decode-strings/README.md index 06132a8f9..ab52b1dca 100644 --- a/problems/encode-and-decode-strings/README.md +++ b/problems/encode-and-decode-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/closest-binary-search-tree-value-ii "Closest Binary Search Tree Value II") -## 271. Encode and Decode Strings (Medium) +## [271. Encode and Decode Strings (Medium)](https://leetcode.com/problems/encode-and-decode-strings "ๅญ—็ฌฆไธฒ็š„็ผ–็ ไธŽ่งฃ็ ")

    Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the network and is decoded back to the original list of strings.

    diff --git a/problems/encode-and-decode-tinyurl/README.md b/problems/encode-and-decode-tinyurl/README.md index b6db29900..d4ac836c6 100644 --- a/problems/encode-and-decode-tinyurl/README.md +++ b/problems/encode-and-decode-tinyurl/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/construct-binary-tree-from-string "Construct Binary Tree from String") -## 535. Encode and Decode TinyURL (Medium) +## [535. Encode and Decode TinyURL (Medium)](https://leetcode.com/problems/encode-and-decode-tinyurl "TinyURL ็š„ๅŠ ๅฏ†ไธŽ่งฃๅฏ†")
    Note: This is a companion problem to the System Design problem: Design TinyURL.
    diff --git a/problems/encode-n-ary-tree-to-binary-tree/README.md b/problems/encode-n-ary-tree-to-binary-tree/README.md index a0644ebe2..14f2da0b8 100644 --- a/problems/encode-n-ary-tree-to-binary-tree/README.md +++ b/problems/encode-n-ary-tree-to-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/all-oone-data-structure "All O`one Data Structure") -## 431. Encode N-ary Tree to Binary Tree (Hard) +## [431. Encode N-ary Tree to Binary Tree (Hard)](https://leetcode.com/problems/encode-n-ary-tree-to-binary-tree "ๅฐ† N ๅ‰ๆ ‘็ผ–็ ไธบไบŒๅ‰ๆ ‘") diff --git a/problems/encode-string-with-shortest-length/README.md b/problems/encode-string-with-shortest-length/README.md index 3cb78bad4..c69e47085 100644 --- a/problems/encode-string-with-shortest-length/README.md +++ b/problems/encode-string-with-shortest-length/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/concatenated-words "Concatenated Words") -## 471. Encode String with Shortest Length (Hard) +## [471. Encode String with Shortest Length (Hard)](https://leetcode.com/problems/encode-string-with-shortest-length "็ผ–็ ๆœ€็Ÿญ้•ฟๅบฆ็š„ๅญ—็ฌฆไธฒ") diff --git a/problems/equal-rational-numbers/README.md b/problems/equal-rational-numbers/README.md index dfbecae61..7b30d8133 100644 --- a/problems/equal-rational-numbers/README.md +++ b/problems/equal-rational-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/k-closest-points-to-origin "K Closest Points to Origin") -## 972. Equal Rational Numbers (Hard) +## [972. Equal Rational Numbers (Hard)](https://leetcode.com/problems/equal-rational-numbers "็›ธ็ญ‰็š„ๆœ‰็†ๆ•ฐ")

    Given two strings S and T, each of which represents a non-negative rational number, return True if and only if they represent the same number. The strings may use parentheses to denote the repeating part of the rational number.

    diff --git a/problems/equal-tree-partition/README.md b/problems/equal-tree-partition/README.md index ca4c14666..19e441893 100644 --- a/problems/equal-tree-partition/README.md +++ b/problems/equal-tree-partition/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/strange-printer "Strange Printer") -## 663. Equal Tree Partition (Medium) +## [663. Equal Tree Partition (Medium)](https://leetcode.com/problems/equal-tree-partition "ๅ‡ๅŒ€ๆ ‘ๅˆ’ๅˆ†")

    Given a binary tree with n nodes, your task is to check if it's possible to partition the tree to two trees which have the equal sum of values after removing exactly one edge on the original tree. diff --git a/problems/erect-the-fence/README.md b/problems/erect-the-fence/README.md index b10d63036..200ec6428 100644 --- a/problems/erect-the-fence/README.md +++ b/problems/erect-the-fence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-in-memory-file-system "Design In-Memory File System") -## 587. Erect the Fence (Hard) +## [587. Erect the Fence (Hard)](https://leetcode.com/problems/erect-the-fence "ๅฎ‰่ฃ…ๆ …ๆ ")

    There are some trees, where each tree is represented by (x,y) coordinate in a two-dimensional garden. Your job is to fence the entire garden using the minimum length of rope as it is expensive. The garden is well fenced only if all the trees are enclosed. Your task is to help find the coordinates of trees which are exactly located on the fence perimeter.

    diff --git a/problems/escape-a-large-maze/README.md b/problems/escape-a-large-maze/README.md index 38bf0e5bb..b36b78f3b 100644 --- a/problems/escape-a-large-maze/README.md +++ b/problems/escape-a-large-maze/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-boomerang "Valid Boomerang") -## 1036. Escape a Large Maze (Hard) +## [1036. Escape a Large Maze (Hard)](https://leetcode.com/problems/escape-a-large-maze "้€ƒ็ฆปๅคง่ฟทๅฎซ")

    In a 1 million by 1 million grid, the coordinates of each grid square are (x, y) with 0 <= x, y < 10^6.

    diff --git a/problems/escape-the-ghosts/README.md b/problems/escape-the-ghosts/README.md index 072e235df..b26beb934 100644 --- a/problems/escape-the-ghosts/README.md +++ b/problems/escape-the-ghosts/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/domino-and-tromino-tiling "Domino and Tromino Tiling") -## 789. Escape The Ghosts (Medium) +## [789. Escape The Ghosts (Medium)](https://leetcode.com/problems/escape-the-ghosts "้€ƒ่„ฑ้˜ป็ข่€…")

    You are playing a simplified Pacman game. You start at the point (0, 0), and your destination is (target[0], target[1]). There are several ghosts on the map, the i-th ghost starts at (ghosts[i][0], ghosts[i][1]).

    diff --git a/problems/evaluate-division/README.md b/problems/evaluate-division/README.md index 7eada3b1f..ba9219a90 100644 --- a/problems/evaluate-division/README.md +++ b/problems/evaluate-division/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/nth-digit "Nth Digit") -## 399. Evaluate Division (Medium) +## [399. Evaluate Division (Medium)](https://leetcode.com/problems/evaluate-division "้™คๆณ•ๆฑ‚ๅ€ผ")

    Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given some queries, return the answers. If the answer does not exist, return -1.0.

    diff --git a/problems/evaluate-reverse-polish-notation/README.md b/problems/evaluate-reverse-polish-notation/README.md index 34dd262df..e0e1ba1c9 100644 --- a/problems/evaluate-reverse-polish-notation/README.md +++ b/problems/evaluate-reverse-polish-notation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-words-in-a-string "Reverse Words in a String") -## 150. Evaluate Reverse Polish Notation (Medium) +## [150. Evaluate Reverse Polish Notation (Medium)](https://leetcode.com/problems/evaluate-reverse-polish-notation "้€†ๆณขๅ…ฐ่กจ่พพๅผๆฑ‚ๅ€ผ")

    Evaluate the value of an arithmetic expression in Reverse Polish Notation.

    diff --git a/problems/exam-room/README.md b/problems/exam-room/README.md index 51a03c3ec..3e40ccb17 100644 --- a/problems/exam-room/README.md +++ b/problems/exam-room/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/score-of-parentheses "Score of Parentheses") -## 855. Exam Room (Medium) +## [855. Exam Room (Medium)](https://leetcode.com/problems/exam-room "่€ƒๅœบๅฐฑๅบง")

    In an exam room, there are N seats in a single row, numbered 0, 1, 2, ..., N-1.

    diff --git a/problems/excel-sheet-column-number/README.md b/problems/excel-sheet-column-number/README.md index 09b4f1504..0a2fed74a 100644 --- a/problems/excel-sheet-column-number/README.md +++ b/problems/excel-sheet-column-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/factorial-trailing-zeroes "Factorial Trailing Zeroes") -## 171. Excel Sheet Column Number (Easy) +## [171. Excel Sheet Column Number (Easy)](https://leetcode.com/problems/excel-sheet-column-number "Excel่กจๅˆ—ๅบๅท")

    Given a column title as appear in an Excel sheet, return its corresponding column number.

    diff --git a/problems/excel-sheet-column-title/README.md b/problems/excel-sheet-column-title/README.md index b5dcb87cb..ad0ca9fde 100644 --- a/problems/excel-sheet-column-title/README.md +++ b/problems/excel-sheet-column-title/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/majority-element "Majority Element") -## 168. Excel Sheet Column Title (Easy) +## [168. Excel Sheet Column Title (Easy)](https://leetcode.com/problems/excel-sheet-column-title "Excel่กจๅˆ—ๅ็งฐ")

    Given a positive integer, return its corresponding column title as appear in an Excel sheet.

    diff --git a/problems/exchange-seats/README.md b/problems/exchange-seats/README.md index 2bb05c096..f433e5da1 100644 --- a/problems/exchange-seats/README.md +++ b/problems/exchange-seats/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/swap-salary "Swap Salary") -## 626. Exchange Seats (Medium) +## [626. Exchange Seats (Medium)](https://leetcode.com/problems/exchange-seats "ๆขๅบงไฝ")

    Mary is a teacher in a middle school and she has a table seat storing students' names and their corresponding seat ids.

    The column id is continuous increment. diff --git a/problems/exclusive-time-of-functions/README.md b/problems/exclusive-time-of-functions/README.md index cac4d2d69..d7109cfcd 100644 --- a/problems/exclusive-time-of-functions/README.md +++ b/problems/exclusive-time-of-functions/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/average-of-levels-in-binary-tree "Average of Levels in Binary Tree") -## 636. Exclusive Time of Functions (Medium) +## [636. Exclusive Time of Functions (Medium)](https://leetcode.com/problems/exclusive-time-of-functions "ๅ‡ฝๆ•ฐ็š„็‹ฌๅ ๆ—ถ้—ด")

    On a single threaded CPU, we execute some functions.  Each function has a unique id between 0 and N-1.

    diff --git a/problems/expression-add-operators/README.md b/problems/expression-add-operators/README.md index b1c1de219..0705843ca 100644 --- a/problems/expression-add-operators/README.md +++ b/problems/expression-add-operators/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/move-zeroes "Move Zeroes") -## 282. Expression Add Operators (Hard) +## [282. Expression Add Operators (Hard)](https://leetcode.com/problems/expression-add-operators "็ป™่กจ่พพๅผๆทปๅŠ ่ฟ็ฎ—็ฌฆ")

    Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the digits so they evaluate to the target value.

    diff --git a/problems/expressive-words/README.md b/problems/expressive-words/README.md index 5e032a5a1..580f18da8 100644 --- a/problems/expressive-words/README.md +++ b/problems/expressive-words/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/chalkboard-xor-game "Chalkboard XOR Game") -## 809. Expressive Words (Medium) +## [809. Expressive Words (Medium)](https://leetcode.com/problems/expressive-words "ๆƒ…ๆ„ŸไธฐๅฏŒ็š„ๆ–‡ๅญ—")

    Sometimes people repeat letters to represent extra feeling, such as "hello" -> "heeellooo", "hi" -> "hiiii".  In these strings like "heeellooo", we have groups of adjacent letters that are all the same:  "h", "eee", "ll", "ooo".

    diff --git a/problems/factor-combinations/README.md b/problems/factor-combinations/README.md index 70800c7c1..9e07e7737 100644 --- a/problems/factor-combinations/README.md +++ b/problems/factor-combinations/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/verify-preorder-sequence-in-binary-search-tree "Verify Preorder Sequence in Binary Search Tree") -## 254. Factor Combinations (Medium) +## [254. Factor Combinations (Medium)](https://leetcode.com/problems/factor-combinations "ๅ› ๅญ็š„็ป„ๅˆ") diff --git a/problems/factorial-trailing-zeroes/README.md b/problems/factorial-trailing-zeroes/README.md index ce62e8eef..699e5d0a6 100644 --- a/problems/factorial-trailing-zeroes/README.md +++ b/problems/factorial-trailing-zeroes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-search-tree-iterator "Binary Search Tree Iterator") -## 172. Factorial Trailing Zeroes (Easy) +## [172. Factorial Trailing Zeroes (Easy)](https://leetcode.com/problems/factorial-trailing-zeroes "้˜ถไน˜ๅŽ็š„้›ถ")

    Given an integer n, return the number of trailing zeroes in n!.

    diff --git a/problems/fair-candy-swap/README.md b/problems/fair-candy-swap/README.md index 7760b31d8..77ec6bc00 100644 --- a/problems/fair-candy-swap/README.md +++ b/problems/fair-candy-swap/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/construct-binary-tree-from-preorder-and-postorder-traversal "Construct Binary Tree from Preorder and Postorder Traversal") -## 888. Fair Candy Swap (Easy) +## [888. Fair Candy Swap (Easy)](https://leetcode.com/problems/fair-candy-swap "ๅ…ฌๅนณ็š„็ณ–ๆžœไบคๆข")

    Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar of candy that Bob has.

    diff --git a/problems/falling-squares/README.md b/problems/falling-squares/README.md index 513a015a6..07f33153d 100644 --- a/problems/falling-squares/README.md +++ b/problems/falling-squares/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/search-in-a-binary-search-tree "Search in a Binary Search Tree") -## 699. Falling Squares (Hard) +## [699. Falling Squares (Hard)](https://leetcode.com/problems/falling-squares "ๆމ่ฝ็š„ๆ–นๅ—")

    On an infinite number line (x-axis), we drop given squares in the order they are given.

    diff --git a/problems/fibonacci-number/README.md b/problems/fibonacci-number/README.md index ca8f9e949..fcb1407d4 100644 --- a/problems/fibonacci-number/README.md +++ b/problems/fibonacci-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/inorder-successor-in-bst-ii "Inorder Successor in BST II") -## 509. Fibonacci Number (Easy) +## [509. Fibonacci Number (Easy)](https://leetcode.com/problems/fibonacci-number "ๆ–ๆณข้‚ฃๅฅ‘ๆ•ฐ")

    The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1. That is,

    diff --git a/problems/filling-bookcase-shelves/README.md b/problems/filling-bookcase-shelves/README.md index 8bdb10cc6..996594860 100644 --- a/problems/filling-bookcase-shelves/README.md +++ b/problems/filling-bookcase-shelves/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/parsing-a-boolean-expression "Parsing A Boolean Expression") -## 1105. Filling Bookcase Shelves (Medium) +## [1105. Filling Bookcase Shelves (Medium)](https://leetcode.com/problems/filling-bookcase-shelves "ๅกซๅ……ไนฆๆžถ")

    We have a sequence of books: the i-th book has thickness books[i][0] and height books[i][1].

    diff --git a/problems/find-all-anagrams-in-a-string/README.md b/problems/find-all-anagrams-in-a-string/README.md index 1930205f5..e73b41b27 100644 --- a/problems/find-all-anagrams-in-a-string/README.md +++ b/problems/find-all-anagrams-in-a-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/ternary-expression-parser "Ternary Expression Parser") -## 438. Find All Anagrams in a String (Easy) +## [438. Find All Anagrams in a String (Easy)](https://leetcode.com/problems/find-all-anagrams-in-a-string "ๆ‰พๅˆฐๅญ—็ฌฆไธฒไธญๆ‰€ๆœ‰ๅญ—ๆฏๅผ‚ไฝ่ฏ")

    Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.

    diff --git a/problems/find-all-duplicates-in-an-array/README.md b/problems/find-all-duplicates-in-an-array/README.md index a51e11ff0..b1068827c 100644 --- a/problems/find-all-duplicates-in-an-array/README.md +++ b/problems/find-all-duplicates-in-an-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/string-compression "String Compression") -## 442. Find All Duplicates in an Array (Medium) +## [442. Find All Duplicates in an Array (Medium)](https://leetcode.com/problems/find-all-duplicates-in-an-array "ๆ•ฐ็ป„ไธญ้‡ๅค็š„ๆ•ฐๆฎ")

    Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.

    diff --git a/problems/find-all-numbers-disappeared-in-an-array/README.md b/problems/find-all-numbers-disappeared-in-an-array/README.md index 4d034d887..5e2363f9f 100644 --- a/problems/find-all-numbers-disappeared-in-an-array/README.md +++ b/problems/find-all-numbers-disappeared-in-an-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/serialize-and-deserialize-bst "Serialize and Deserialize BST") -## 448. Find All Numbers Disappeared in an Array (Easy) +## [448. Find All Numbers Disappeared in an Array (Easy)](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array "ๆ‰พๅˆฐๆ‰€ๆœ‰ๆ•ฐ็ป„ไธญๆถˆๅคฑ็š„ๆ•ฐๅญ—")

    Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.

    diff --git a/problems/find-anagram-mappings/README.md b/problems/find-anagram-mappings/README.md index a31d770a5..6fe0b3d78 100644 --- a/problems/find-anagram-mappings/README.md +++ b/problems/find-anagram-mappings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/special-binary-string "Special Binary String") -## 760. Find Anagram Mappings (Easy) +## [760. Find Anagram Mappings (Easy)](https://leetcode.com/problems/find-anagram-mappings "ๆ‰พๅ‡บๅ˜ไฝๆ˜ ๅฐ„") diff --git a/problems/find-and-replace-in-string/README.md b/problems/find-and-replace-in-string/README.md index a07dade5d..989beeab2 100644 --- a/problems/find-and-replace-in-string/README.md +++ b/problems/find-and-replace-in-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-of-distances-in-tree "Sum of Distances in Tree") -## 833. Find And Replace in String (Medium) +## [833. Find And Replace in String (Medium)](https://leetcode.com/problems/find-and-replace-in-string "ๅญ—็ฌฆไธฒไธญ็š„ๆŸฅๆ‰พไธŽๆ›ฟๆข")

    To some string S, we will perform some replacement operations that replace groups of letters with new ones (not necessarily the same size).

    diff --git a/problems/find-and-replace-pattern/README.md b/problems/find-and-replace-pattern/README.md index 36b6adc6c..c67de166b 100644 --- a/problems/find-and-replace-pattern/README.md +++ b/problems/find-and-replace-pattern/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-of-subsequence-widths "Sum of Subsequence Widths") -## 890. Find and Replace Pattern (Medium) +## [890. Find and Replace Pattern (Medium)](https://leetcode.com/problems/find-and-replace-pattern "ๆŸฅๆ‰พๅ’Œๆ›ฟๆขๆจกๅผ")

    You have a list of words and a pattern, and you want to know which words in words matches the pattern.

    diff --git a/problems/find-bottom-left-tree-value/README.md b/problems/find-bottom-left-tree-value/README.md index 2bba4d1ec..811616711 100644 --- a/problems/find-bottom-left-tree-value/README.md +++ b/problems/find-bottom-left-tree-value/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/freedom-trail "Freedom Trail") -## 513. Find Bottom Left Tree Value (Medium) +## [513. Find Bottom Left Tree Value (Medium)](https://leetcode.com/problems/find-bottom-left-tree-value "ๆ‰พๆ ‘ๅทฆไธ‹่ง’็š„ๅ€ผ")

    Given a binary tree, find the leftmost value in the last row of the tree. diff --git a/problems/find-common-characters/README.md b/problems/find-common-characters/README.md index da6e1937b..4da233435 100644 --- a/problems/find-common-characters/README.md +++ b/problems/find-common-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/check-if-word-is-valid-after-substitutions "Check If Word Is Valid After Substitutions") -## 1002. Find Common Characters (Easy) +## [1002. Find Common Characters (Easy)](https://leetcode.com/problems/find-common-characters "ๆŸฅๆ‰พๅธธ็”จๅญ—็ฌฆ")

    Given an array A of strings made only from lowercase letters, return a list of all characters that show up in all strings within the list (including duplicates).  For example, if a character occurs 3 times in all strings but not 4 times, you need to include that character three times in the final answer.

    diff --git a/problems/find-cumulative-salary-of-an-employee/README.md b/problems/find-cumulative-salary-of-an-employee/README.md index 5160b7a33..e2833723f 100644 --- a/problems/find-cumulative-salary-of-an-employee/README.md +++ b/problems/find-cumulative-salary-of-an-employee/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-student-number-in-departments "Count Student Number in Departments") -## 579. Find Cumulative Salary of an Employee (Hard) +## [579. Find Cumulative Salary of an Employee (Hard)](https://leetcode.com/problems/find-cumulative-salary-of-an-employee "ๆŸฅ่ฏขๅ‘˜ๅทฅ็š„็ดฏ่ฎก่–ชๆฐด")

    The Employee table holds the salary information in a year.

    diff --git a/problems/find-customer-referee/README.md b/problems/find-customer-referee/README.md index f6323a4d5..3c97763f6 100644 --- a/problems/find-customer-referee/README.md +++ b/problems/find-customer-referee/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/investments-in-2016 "Investments in 2016") -## 584. Find Customer Referee (Easy) +## [584. Find Customer Referee (Easy)](https://leetcode.com/problems/find-customer-referee "ๅฏปๆ‰พ็”จๆˆทๆŽจ่ไบบ")

    Given a table customer holding customers information and the referee.

    diff --git a/problems/find-duplicate-file-in-system/README.md b/problems/find-duplicate-file-in-system/README.md index 87cf12dae..0a3efdeb9 100644 --- a/problems/find-duplicate-file-in-system/README.md +++ b/problems/find-duplicate-file-in-system/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/triangle-judgement "Triangle Judgement") -## 609. Find Duplicate File in System (Medium) +## [609. Find Duplicate File in System (Medium)](https://leetcode.com/problems/find-duplicate-file-in-system "ๅœจ็ณป็ปŸไธญๆŸฅๆ‰พ้‡ๅคๆ–‡ไปถ")

    Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of duplicate files in the file system in terms of their paths.

    diff --git a/problems/find-duplicate-subtrees/README.md b/problems/find-duplicate-subtrees/README.md index f4f5a87b3..f5fa2de52 100644 --- a/problems/find-duplicate-subtrees/README.md +++ b/problems/find-duplicate-subtrees/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/two-sum-iv-input-is-a-bst "Two Sum IV - Input is a BST") -## 652. Find Duplicate Subtrees (Medium) +## [652. Find Duplicate Subtrees (Medium)](https://leetcode.com/problems/find-duplicate-subtrees "ๅฏปๆ‰พ้‡ๅค็š„ๅญๆ ‘")

    Given a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to return the root node of any one of them.

    diff --git a/problems/find-eventual-safe-states/README.md b/problems/find-eventual-safe-states/README.md index c31220dea..6a01cb5dc 100644 --- a/problems/find-eventual-safe-states/README.md +++ b/problems/find-eventual-safe-states/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bricks-falling-when-hit "Bricks Falling When Hit") -## 802. Find Eventual Safe States (Medium) +## [802. Find Eventual Safe States (Medium)](https://leetcode.com/problems/find-eventual-safe-states "ๆ‰พๅˆฐๆœ€็ปˆ็š„ๅฎ‰ๅ…จ็Šถๆ€")

    In a directed graph, we start at some node and every turn, walk along a directed edge of the graph.  If we reach a node that is terminal (that is, it has no outgoing directed edges), we stop.

    diff --git a/problems/find-first-and-last-position-of-element-in-sorted-array/README.md b/problems/find-first-and-last-position-of-element-in-sorted-array/README.md index 9b0cbf914..cd6946bc6 100644 --- a/problems/find-first-and-last-position-of-element-in-sorted-array/README.md +++ b/problems/find-first-and-last-position-of-element-in-sorted-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/search-insert-position "Search Insert Position") -## 34. Find First and Last Position of Element in Sorted Array (Medium) +## [34. Find First and Last Position of Element in Sorted Array (Medium)](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array "ๅœจๆŽ’ๅบๆ•ฐ็ป„ไธญๆŸฅๆ‰พๅ…ƒ็ด ็š„็ฌฌไธ€ไธชๅ’Œๆœ€ๅŽไธ€ไธชไฝ็ฝฎ")

    Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.

    diff --git a/problems/find-in-mountain-array/README.md b/problems/find-in-mountain-array/README.md index bc8bc0db9..e1953c42a 100644 --- a/problems/find-in-mountain-array/README.md +++ b/problems/find-in-mountain-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/brace-expansion-ii "Brace Expansion II") -## 1095. Find in Mountain Array (Hard) +## [1095. Find in Mountain Array (Hard)](https://leetcode.com/problems/find-in-mountain-array "ๅฑฑ่„‰ๆ•ฐ็ป„ไธญๆŸฅๆ‰พ็›ฎๆ ‡ๅ€ผ")

    (This problem is an interactive problem.)

    diff --git a/problems/find-k-closest-elements/README.md b/problems/find-k-closest-elements/README.md index 7914985bf..994312f97 100644 --- a/problems/find-k-closest-elements/README.md +++ b/problems/find-k-closest-elements/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/split-array-into-consecutive-subsequences "Split Array into Consecutive Subsequences") -## 658. Find K Closest Elements (Medium) +## [658. Find K Closest Elements (Medium)](https://leetcode.com/problems/find-k-closest-elements "ๆ‰พๅˆฐ K ไธชๆœ€ๆŽฅ่ฟ‘็š„ๅ…ƒ็ด ")

    Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. diff --git a/problems/find-k-length-substrings-with-no-repeated-characters/README.md b/problems/find-k-length-substrings-with-no-repeated-characters/README.md index ba394ec31..e9bb44c68 100644 --- a/problems/find-k-length-substrings-with-no-repeated-characters/README.md +++ b/problems/find-k-length-substrings-with-no-repeated-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/the-earliest-moment-when-everyone-become-friends "The Earliest Moment When Everyone Become Friends") -## 1100. Find K-Length Substrings With No Repeated Characters (Medium) +## [1100. Find K-Length Substrings With No Repeated Characters (Medium)](https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters "้•ฟๅบฆไธบ K ็š„ๆ— ้‡ๅคๅญ—็ฌฆๅญไธฒ")

    Given a string S, return the number of substrings of length K with no repeated characters.

    diff --git a/problems/find-k-pairs-with-smallest-sums/README.md b/problems/find-k-pairs-with-smallest-sums/README.md index 2f82dafa0..07c6b6f11 100644 --- a/problems/find-k-pairs-with-smallest-sums/README.md +++ b/problems/find-k-pairs-with-smallest-sums/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/guess-number-higher-or-lower "Guess Number Higher or Lower") -## 373. Find K Pairs with Smallest Sums (Medium) +## [373. Find K Pairs with Smallest Sums (Medium)](https://leetcode.com/problems/find-k-pairs-with-smallest-sums "ๆŸฅๆ‰พๅ’Œๆœ€ๅฐ็š„Kๅฏนๆ•ฐๅญ—")

    You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k.

    diff --git a/problems/find-k-th-smallest-pair-distance/README.md b/problems/find-k-th-smallest-pair-distance/README.md index 40afaff2e..7a8e6bd1d 100644 --- a/problems/find-k-th-smallest-pair-distance/README.md +++ b/problems/find-k-th-smallest-pair-distance/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-word-in-dictionary "Longest Word in Dictionary") -## 719. Find K-th Smallest Pair Distance (Hard) +## [719. Find K-th Smallest Pair Distance (Hard)](https://leetcode.com/problems/find-k-th-smallest-pair-distance "ๆ‰พๅ‡บ็ฌฌ k ๅฐ็š„่ท็ฆปๅฏน")

    Given an integer array, return the k-th smallest distance among all the pairs. The distance of a pair (A, B) is defined as the absolute difference between A and B.

    diff --git a/problems/find-largest-value-in-each-tree-row/README.md b/problems/find-largest-value-in-each-tree-row/README.md index 838931a7e..de0ee2a27 100644 --- a/problems/find-largest-value-in-each-tree-row/README.md +++ b/problems/find-largest-value-in-each-tree-row/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-palindromic-subsequence "Longest Palindromic Subsequence") -## 515. Find Largest Value in Each Tree Row (Medium) +## [515. Find Largest Value in Each Tree Row (Medium)](https://leetcode.com/problems/find-largest-value-in-each-tree-row "ๅœจๆฏไธชๆ ‘่กŒไธญๆ‰พๆœ€ๅคงๅ€ผ")

    You need to find the largest value in each row of a binary tree.

    diff --git a/problems/find-leaves-of-binary-tree/README.md b/problems/find-leaves-of-binary-tree/README.md index 2b2bb7b2e..1f8243b2b 100644 --- a/problems/find-leaves-of-binary-tree/README.md +++ b/problems/find-leaves-of-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-perfect-square "Valid Perfect Square") -## 366. Find Leaves of Binary Tree (Medium) +## [366. Find Leaves of Binary Tree (Medium)](https://leetcode.com/problems/find-leaves-of-binary-tree "ๅฏปๆ‰พๅฎŒๅ…จไบŒๅ‰ๆ ‘็š„ๅถๅญ่Š‚็‚น") diff --git a/problems/find-median-from-data-stream/README.md b/problems/find-median-from-data-stream/README.md index 32994a14c..dc926a24e 100644 --- a/problems/find-median-from-data-stream/README.md +++ b/problems/find-median-from-data-stream/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/best-meeting-point "Best Meeting Point") -## 295. Find Median from Data Stream (Hard) +## [295. Find Median from Data Stream (Hard)](https://leetcode.com/problems/find-median-from-data-stream "ๆ•ฐๆฎๆต็š„ไธญไฝๆ•ฐ")

    Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value.

    For example, diff --git a/problems/find-median-given-frequency-of-numbers/README.md b/problems/find-median-given-frequency-of-numbers/README.md index fb8c14473..d91722fef 100644 --- a/problems/find-median-given-frequency-of-numbers/README.md +++ b/problems/find-median-given-frequency-of-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/subtree-of-another-tree "Subtree of Another Tree") -## 571. Find Median Given Frequency of Numbers (Hard) +## [571. Find Median Given Frequency of Numbers (Hard)](https://leetcode.com/problems/find-median-given-frequency-of-numbers "็ป™ๅฎšๆ•ฐๅญ—็š„้ข‘็އๆŸฅ่ฏขไธญไฝๆ•ฐ") diff --git a/problems/find-minimum-in-rotated-sorted-array-ii/README.md b/problems/find-minimum-in-rotated-sorted-array-ii/README.md index 214889767..c1b778710 100644 --- a/problems/find-minimum-in-rotated-sorted-array-ii/README.md +++ b/problems/find-minimum-in-rotated-sorted-array-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/min-stack "Min Stack") -## 154. Find Minimum in Rotated Sorted Array II (Hard) +## [154. Find Minimum in Rotated Sorted Array II (Hard)](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii "ๅฏปๆ‰พๆ—‹่ฝฌๆŽ’ๅบๆ•ฐ็ป„ไธญ็š„ๆœ€ๅฐๅ€ผ II")

    Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

    diff --git a/problems/find-minimum-in-rotated-sorted-array/README.md b/problems/find-minimum-in-rotated-sorted-array/README.md index 6fbed009f..462253a0d 100644 --- a/problems/find-minimum-in-rotated-sorted-array/README.md +++ b/problems/find-minimum-in-rotated-sorted-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-minimum-in-rotated-sorted-array-ii "Find Minimum in Rotated Sorted Array II") -## 153. Find Minimum in Rotated Sorted Array (Medium) +## [153. Find Minimum in Rotated Sorted Array (Medium)](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array "ๅฏปๆ‰พๆ—‹่ฝฌๆŽ’ๅบๆ•ฐ็ป„ไธญ็š„ๆœ€ๅฐๅ€ผ")

    Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

    diff --git a/problems/find-mode-in-binary-search-tree/README.md b/problems/find-mode-in-binary-search-tree/README.md index 4222da7e2..a93834723 100644 --- a/problems/find-mode-in-binary-search-tree/README.md +++ b/problems/find-mode-in-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/ipo "IPO") -## 501. Find Mode in Binary Search Tree (Easy) +## [501. Find Mode in Binary Search Tree (Easy)](https://leetcode.com/problems/find-mode-in-binary-search-tree "ไบŒๅ‰ๆœ็ดขๆ ‘ไธญ็š„ไผ—ๆ•ฐ")

    Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST.

    diff --git a/problems/find-peak-element/README.md b/problems/find-peak-element/README.md index 8d23e1ac7..3f853163e 100644 --- a/problems/find-peak-element/README.md +++ b/problems/find-peak-element/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/missing-ranges "Missing Ranges") -## 162. Find Peak Element (Medium) +## [162. Find Peak Element (Medium)](https://leetcode.com/problems/find-peak-element "ๅฏปๆ‰พๅณฐๅ€ผ")

    A peak element is an element that is greater than its neighbors.

    diff --git a/problems/find-permutation/README.md b/problems/find-permutation/README.md index 235dd091b..6b22df79e 100644 --- a/problems/find-permutation/README.md +++ b/problems/find-permutation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-consecutive-ones "Max Consecutive Ones") -## 484. Find Permutation (Medium) +## [484. Find Permutation (Medium)](https://leetcode.com/problems/find-permutation "ๅฏปๆ‰พๆŽ’ๅˆ—")

    By now, you are given a secret signature consisting of character 'D' and 'I'. 'D' represents a decreasing relationship between two numbers, 'I' represents an increasing relationship between two numbers. And our secret signature was constructed by a special integer array, which contains uniquely all the different number from 1 to n (n is the length of the secret signature plus 1). For example, the secret signature "DI" can be constructed by array [2,1,3] or [3,1,2], but won't be constructed by array [3,2,4] or [2,1,3,4], which are both illegal constructing special string that can't represent the "DI" secret signature. diff --git a/problems/find-pivot-index/README.md b/problems/find-pivot-index/README.md index 377bb0f70..29ffd6664 100644 --- a/problems/find-pivot-index/README.md +++ b/problems/find-pivot-index/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/split-linked-list-in-parts "Split Linked List in Parts") -## 724. Find Pivot Index (Easy) +## [724. Find Pivot Index (Easy)](https://leetcode.com/problems/find-pivot-index "ๅฏปๆ‰พๆ•ฐ็ป„็š„ไธญๅฟƒ็ดขๅผ•")

    Given an array of integers nums, write a method that returns the "pivot" index of this array.

    diff --git a/problems/find-right-interval/README.md b/problems/find-right-interval/README.md index c248d7a33..52dc003d4 100644 --- a/problems/find-right-interval/README.md +++ b/problems/find-right-interval/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/path-sum-iii "Path Sum III") -## 436. Find Right Interval (Medium) +## [436. Find Right Interval (Medium)](https://leetcode.com/problems/find-right-interval "ๅฏปๆ‰พๅณๅŒบ้—ด")

    Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal to the end point of the interval i, which can be called that j is on the "right" of i.

    diff --git a/problems/find-smallest-letter-greater-than-target/README.md b/problems/find-smallest-letter-greater-than-target/README.md index 87757f359..0de26a3ff 100644 --- a/problems/find-smallest-letter-greater-than-target/README.md +++ b/problems/find-smallest-letter-greater-than-target/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/prefix-and-suffix-search "Prefix and Suffix Search") -## 744. Find Smallest Letter Greater Than Target (Easy) +## [744. Find Smallest Letter Greater Than Target (Easy)](https://leetcode.com/problems/find-smallest-letter-greater-than-target "ๅฏปๆ‰พๆฏ”็›ฎๆ ‡ๅญ—ๆฏๅคง็š„ๆœ€ๅฐๅญ—ๆฏ")

    Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list that is larger than the given target. diff --git a/problems/find-the-celebrity/README.md b/problems/find-the-celebrity/README.md index a84449961..a6d9f9e8d 100644 --- a/problems/find-the-celebrity/README.md +++ b/problems/find-the-celebrity/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/first-bad-version "First Bad Version") -## 277. Find the Celebrity (Medium) +## [277. Find the Celebrity (Medium)](https://leetcode.com/problems/find-the-celebrity "ๆœๅฏปๅไบบ") diff --git a/problems/find-the-closest-palindrome/README.md b/problems/find-the-closest-palindrome/README.md index acf598f53..7e935cd5f 100644 --- a/problems/find-the-closest-palindrome/README.md +++ b/problems/find-the-closest-palindrome/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/array-nesting "Array Nesting") -## 564. Find the Closest Palindrome (Hard) +## [564. Find the Closest Palindrome (Hard)](https://leetcode.com/problems/find-the-closest-palindrome "ๅฏปๆ‰พๆœ€่ฟ‘็š„ๅ›žๆ–‡ๆ•ฐ")

    Given an integer n, find the closest integer (not including itself), which is a palindrome.

    diff --git a/problems/find-the-derangement-of-an-array/README.md b/problems/find-the-derangement-of-an-array/README.md index 1e6417b74..c1e5abef8 100644 --- a/problems/find-the-derangement-of-an-array/README.md +++ b/problems/find-the-derangement-of-an-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-log-storage-system "Design Log Storage System") -## 634. Find the Derangement of An Array (Medium) +## [634. Find the Derangement of An Array (Medium)](https://leetcode.com/problems/find-the-derangement-of-an-array "ๅฏปๆ‰พๆ•ฐ็ป„็š„้”™ไฝๆŽ’ๅˆ—") diff --git a/problems/find-the-difference/README.md b/problems/find-the-difference/README.md index 87e71db13..4acc0919f 100644 --- a/problems/find-the-difference/README.md +++ b/problems/find-the-difference/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/elimination-game "Elimination Game") -## 389. Find the Difference (Easy) +## [389. Find the Difference (Easy)](https://leetcode.com/problems/find-the-difference "ๆ‰พไธๅŒ")

    Given two strings s and t which consist of only lowercase letters.

    diff --git a/problems/find-the-duplicate-number/README.md b/problems/find-the-duplicate-number/README.md index c91c61826..df3d0d69e 100644 --- a/problems/find-the-duplicate-number/README.md +++ b/problems/find-the-duplicate-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-word-abbreviation "Unique Word Abbreviation") -## 287. Find the Duplicate Number (Medium) +## [287. Find the Duplicate Number (Medium)](https://leetcode.com/problems/find-the-duplicate-number "ๅฏปๆ‰พ้‡ๅคๆ•ฐ")

    Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, find the duplicate one.

    diff --git a/problems/find-the-shortest-superstring/README.md b/problems/find-the-shortest-superstring/README.md index 5d5013a9f..aa5436013 100644 --- a/problems/find-the-shortest-superstring/README.md +++ b/problems/find-the-shortest-superstring/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/delete-columns-to-make-sorted "Delete Columns to Make Sorted") -## 943. Find the Shortest Superstring (Hard) +## [943. Find the Shortest Superstring (Hard)](https://leetcode.com/problems/find-the-shortest-superstring "ๆœ€็Ÿญ่ถ…็บงไธฒ")

    Given an array A of strings, find any smallest string that contains each string in A as a substring.

    diff --git a/problems/find-the-town-judge/README.md b/problems/find-the-town-judge/README.md index b9a6a480d..b4d33bf73 100644 --- a/problems/find-the-town-judge/README.md +++ b/problems/find-the-town-judge/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-binary-tree-ii "Maximum Binary Tree II") -## 997. Find the Town Judge (Easy) +## [997. Find the Town Judge (Easy)](https://leetcode.com/problems/find-the-town-judge "ๆ‰พๅˆฐๅฐ้•‡็š„ๆณ•ๅฎ˜")

    In a town, there are N people labelled from 1 to N.  There is a rumor that one of these people is secretly the town judge.

    diff --git a/problems/find-words-that-can-be-formed-by-characters/README.md b/problems/find-words-that-can-be-formed-by-characters/README.md index 2389b1e0a..4099acf07 100644 --- a/problems/find-words-that-can-be-formed-by-characters/README.md +++ b/problems/find-words-that-can-be-formed-by-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-level-sum-of-a-binary-tree "Maximum Level Sum of a Binary Tree") -## 1160. Find Words That Can Be Formed by Characters (Easy) +## [1160. Find Words That Can Be Formed by Characters (Easy)](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters "ๆ‹ผๅ†™ๅ•่ฏ")

    You are given an array of strings words and a string chars.

    diff --git a/problems/first-bad-version/README.md b/problems/first-bad-version/README.md index c93d1c464..a276cc7ca 100644 --- a/problems/first-bad-version/README.md +++ b/problems/first-bad-version/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/perfect-squares "Perfect Squares") -## 278. First Bad Version (Easy) +## [278. First Bad Version (Easy)](https://leetcode.com/problems/first-bad-version "็ฌฌไธ€ไธช้”™่ฏฏ็š„็‰ˆๆœฌ")

    You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad.

    diff --git a/problems/first-missing-positive/README.md b/problems/first-missing-positive/README.md index 8edd30755..6a2455ba1 100644 --- a/problems/first-missing-positive/README.md +++ b/problems/first-missing-positive/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/trapping-rain-water "Trapping Rain Water") -## 41. First Missing Positive (Hard) +## [41. First Missing Positive (Hard)](https://leetcode.com/problems/first-missing-positive "็ผบๅคฑ็š„็ฌฌไธ€ไธชๆญฃๆ•ฐ")

    Given an unsorted integer array, find the smallest missing positive integer.

    diff --git a/problems/first-unique-character-in-a-string/README.md b/problems/first-unique-character-in-a-string/README.md index b75aa9d82..8653cc639 100644 --- a/problems/first-unique-character-in-a-string/README.md +++ b/problems/first-unique-character-in-a-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-absolute-file-path "Longest Absolute File Path") -## 387. First Unique Character in a String (Easy) +## [387. First Unique Character in a String (Easy)](https://leetcode.com/problems/first-unique-character-in-a-string "ๅญ—็ฌฆไธฒไธญ็š„็ฌฌไธ€ไธชๅ”ฏไธ€ๅญ—็ฌฆ")

    Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. diff --git a/problems/fixed-point/README.md b/problems/fixed-point/README.md index 9bba63a3a..41d948be5 100644 --- a/problems/fixed-point/README.md +++ b/problems/fixed-point/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/index-pairs-of-a-string "Index Pairs of a String") -## 1064. Fixed Point (Easy) +## [1064. Fixed Point (Easy)](https://leetcode.com/problems/fixed-point "ไธๅŠจ็‚น")

    Given an array A of distinct integers sorted in ascending order, return the smallest index i that satisfies A[i] == i.  Return -1 if no such i exists.

    diff --git a/problems/fizz-buzz-multithreaded/README.md b/problems/fizz-buzz-multithreaded/README.md new file mode 100644 index 000000000..0998957ee --- /dev/null +++ b/problems/fizz-buzz-multithreaded/README.md @@ -0,0 +1,46 @@ + + + + + + + +[< Previous](https://github.com/openset/leetcode/tree/master/problems/tournament-winners "Tournament Winners") +ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ +Next > + +## [1195. Fizz Buzz Multithreaded (Medium)](https://leetcode.com/problems/fizz-buzz-multithreaded "") + +

    Write a program that outputs the string representation of numbers from 1 to n, however:

    + +
      +
    • If the number is divisible by 3, output "fizz".
    • +
    • If the number is divisible by 5, output "buzz".
    • +
    • If the number is divisible by both 3 and 5, output "fizzbuzz".
    • +
    + +

    For example, for n = 15, we output: 1, 2, fizz, 4, buzz, fizz, 7, 8, fizz, buzz, 11, fizz, 13, 14, fizzbuzz.

    + +

    Suppose you are given the following code:

    + +
    +class FizzBuzz {
    +  public FizzBuzz(int n) { ... }               // constructor
    +  public void fizz(printFizz) { ... }          // only output "fizz"
    +  public void buzz(printBuzz) { ... }          // only output "buzz"
    +  public void fizzbuzz(printFizzBuzz) { ... }  // only output "fizzbuzz"
    +  public void number(printNumber) { ... }      // only output the numbers
    +}
    + +

    Implement a multithreaded version of FizzBuzz with four threads. The same instance of FizzBuzz will be passed to four different threads:

    + +
      +
    1. Thread A will call fizz() to check for divisibility of 3 and outputs fizz.
    2. +
    3. Thread B will call buzz() to check for divisibility of 5 and outputs buzz.
    4. +
    5. Thread C will call fizzbuzz() to check for divisibility of 3 and 5 and outputs fizzbuzz.
    6. +
    7. Thread D will call number() which should only output the numbers.
    8. +
    + +### Similar Questions + 1. [Fizz Buzz](https://github.com/openset/leetcode/tree/master/problems/fizz-buzz) (Easy) + 1. [Print Zero Even Odd](https://github.com/openset/leetcode/tree/master/problems/print-zero-even-odd) (Medium) diff --git a/problems/fizz-buzz/README.md b/problems/fizz-buzz/README.md index 79fb509a2..d6844e7d2 100644 --- a/problems/fizz-buzz/README.md +++ b/problems/fizz-buzz/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/arithmetic-slices "Arithmetic Slices") -## 412. Fizz Buzz (Easy) +## [412. Fizz Buzz (Easy)](https://leetcode.com/problems/fizz-buzz "Fizz Buzz")

    Write a program that outputs the string representation of numbers from 1 to n.

    diff --git a/problems/flatten-2d-vector/README.md b/problems/flatten-2d-vector/README.md index 694f604af..6807d9727 100644 --- a/problems/flatten-2d-vector/README.md +++ b/problems/flatten-2d-vector/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/meeting-rooms "Meeting Rooms") -## 251. Flatten 2D Vector (Medium) +## [251. Flatten 2D Vector (Medium)](https://leetcode.com/problems/flatten-2d-vector "ๅฑ•ๅผ€ไบŒ็ปดๅ‘้‡") diff --git a/problems/flatten-a-multilevel-doubly-linked-list/README.md b/problems/flatten-a-multilevel-doubly-linked-list/README.md index e59d207e0..8049638b1 100644 --- a/problems/flatten-a-multilevel-doubly-linked-list/README.md +++ b/problems/flatten-a-multilevel-doubly-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/encode-n-ary-tree-to-binary-tree "Encode N-ary Tree to Binary Tree") -## 430. Flatten a Multilevel Doubly Linked List (Medium) +## [430. Flatten a Multilevel Doubly Linked List (Medium)](https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list "ๆ‰ๅนณๅŒ–ๅคš็บงๅŒๅ‘้“พ่กจ")

    You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a separate doubly linked list. These child lists may have one or more children of their own, and so on, to produce a multilevel data structure, as shown in the example below.

    diff --git a/problems/flatten-binary-tree-to-linked-list/README.md b/problems/flatten-binary-tree-to-linked-list/README.md index a1e2f8f62..19ce00839 100644 --- a/problems/flatten-binary-tree-to-linked-list/README.md +++ b/problems/flatten-binary-tree-to-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/distinct-subsequences "Distinct Subsequences") -## 114. Flatten Binary Tree to Linked List (Medium) +## [114. Flatten Binary Tree to Linked List (Medium)](https://leetcode.com/problems/flatten-binary-tree-to-linked-list "ไบŒๅ‰ๆ ‘ๅฑ•ๅผ€ไธบ้“พ่กจ")

    Given a binary tree, flatten it to a linked list in-place.

    diff --git a/problems/flatten-nested-list-iterator/README.md b/problems/flatten-nested-list-iterator/README.md index eac691a10..ba6e79897 100644 --- a/problems/flatten-nested-list-iterator/README.md +++ b/problems/flatten-nested-list-iterator/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/power-of-four "Power of Four") -## 341. Flatten Nested List Iterator (Medium) +## [341. Flatten Nested List Iterator (Medium)](https://leetcode.com/problems/flatten-nested-list-iterator "ๆ‰ๅนณๅŒ–ๅตŒๅฅ—ๅˆ—่กจ่ฟญไปฃๅ™จ")

    Given a nested list of integers, implement an iterator to flatten it.

    diff --git a/problems/flip-binary-tree-to-match-preorder-traversal/README.md b/problems/flip-binary-tree-to-match-preorder-traversal/README.md index 338df4558..ee0574964 100644 --- a/problems/flip-binary-tree-to-match-preorder-traversal/README.md +++ b/problems/flip-binary-tree-to-match-preorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/equal-rational-numbers "Equal Rational Numbers") -## 971. Flip Binary Tree To Match Preorder Traversal (Medium) +## [971. Flip Binary Tree To Match Preorder Traversal (Medium)](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal "็ฟป่ฝฌไบŒๅ‰ๆ ‘ไปฅๅŒน้…ๅ…ˆๅบ้ๅކ")

    Given a binary tree with N nodes, each node has a different value from {1, ..., N}.

    diff --git a/problems/flip-columns-for-maximum-number-of-equal-rows/README.md b/problems/flip-columns-for-maximum-number-of-equal-rows/README.md index 7ebf44724..3ef1408b7 100644 --- a/problems/flip-columns-for-maximum-number-of-equal-rows/README.md +++ b/problems/flip-columns-for-maximum-number-of-equal-rows/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/adding-two-negabinary-numbers "Adding Two Negabinary Numbers") -## 1072. Flip Columns For Maximum Number of Equal Rows (Medium) +## [1072. Flip Columns For Maximum Number of Equal Rows (Medium)](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows "ๆŒ‰ๅˆ—็ฟป่ฝฌๅพ—ๅˆฐๆœ€ๅคงๅ€ผ็ญ‰่กŒๆ•ฐ")

    Given a matrix consisting of 0s and 1s, we may choose any number of columns in the matrix and flip every cell in that column.  Flipping a cell changes the value of that cell from 0 to 1 or from 1 to 0.

    diff --git a/problems/flip-equivalent-binary-trees/README.md b/problems/flip-equivalent-binary-trees/README.md index 7c55f2940..b13f1a5d1 100644 --- a/problems/flip-equivalent-binary-trees/README.md +++ b/problems/flip-equivalent-binary-trees/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-component-size-by-common-factor "Largest Component Size by Common Factor") -## 951. Flip Equivalent Binary Trees (Medium) +## [951. Flip Equivalent Binary Trees (Medium)](https://leetcode.com/problems/flip-equivalent-binary-trees "็ฟป่ฝฌ็ญ‰ไปทไบŒๅ‰ๆ ‘")

    For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees.

    diff --git a/problems/flip-game-ii/README.md b/problems/flip-game-ii/README.md index b43e75b14..6ef06b359 100644 --- a/problems/flip-game-ii/README.md +++ b/problems/flip-game-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-median-from-data-stream "Find Median from Data Stream") -## 294. Flip Game II (Medium) +## [294. Flip Game II (Medium)](https://leetcode.com/problems/flip-game-ii "็ฟป่ฝฌๆธธๆˆ II") diff --git a/problems/flip-game/README.md b/problems/flip-game/README.md index 509f9f032..6f2e94b20 100644 --- a/problems/flip-game/README.md +++ b/problems/flip-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flip-game-ii "Flip Game II") -## 293. Flip Game (Easy) +## [293. Flip Game (Easy)](https://leetcode.com/problems/flip-game "็ฟป่ฝฌๆธธๆˆ") diff --git a/problems/flip-string-to-monotone-increasing/README.md b/problems/flip-string-to-monotone-increasing/README.md index 437dcd85c..84c4939a8 100644 --- a/problems/flip-string-to-monotone-increasing/README.md +++ b/problems/flip-string-to-monotone-increasing/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/three-equal-parts "Three Equal Parts") -## 926. Flip String to Monotone Increasing (Medium) +## [926. Flip String to Monotone Increasing (Medium)](https://leetcode.com/problems/flip-string-to-monotone-increasing "ๅฐ†ๅญ—็ฌฆไธฒ็ฟป่ฝฌๅˆฐๅ•่ฐƒ้€’ๅขž")

    A string of '0's and '1's is monotone increasing if it consists of some number of '0's (possibly 0), followed by some number of '1's (also possibly 0.)

    diff --git a/problems/flipping-an-image/README.md b/problems/flipping-an-image/README.md index 5a8150fd9..b16f0ac6d 100644 --- a/problems/flipping-an-image/README.md +++ b/problems/flipping-an-image/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-and-replace-in-string "Find And Replace in String") -## 832. Flipping an Image (Easy) +## [832. Flipping an Image (Easy)](https://leetcode.com/problems/flipping-an-image "็ฟป่ฝฌๅ›พๅƒ")

    Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.

    diff --git a/problems/flood-fill/README.md b/problems/flood-fill/README.md index c9e82e7e1..82943c989 100644 --- a/problems/flood-fill/README.md +++ b/problems/flood-fill/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sentence-similarity "Sentence Similarity") -## 733. Flood Fill (Easy) +## [733. Flood Fill (Easy)](https://leetcode.com/problems/flood-fill "ๅ›พๅƒๆธฒๆŸ“")

    An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). diff --git a/problems/flower-planting-with-no-adjacent/README.md b/problems/flower-planting-with-no-adjacent/README.md index 27a71bf7b..f2af46149 100644 --- a/problems/flower-planting-with-no-adjacent/README.md +++ b/problems/flower-planting-with-no-adjacent/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/partition-array-for-maximum-sum "Partition Array for Maximum Sum") -## 1042. Flower Planting With No Adjacent (Easy) +## [1042. Flower Planting With No Adjacent (Easy)](https://leetcode.com/problems/flower-planting-with-no-adjacent "ไธ้‚ปๆŽฅๆค่Šฑ")

    You have N gardens, labelled 1 to N.  In each garden, you want to plant one of 4 types of flowers.

    diff --git a/problems/fraction-addition-and-subtraction/README.md b/problems/fraction-addition-and-subtraction/README.md index 787f0bb4e..0abcb3900 100644 --- a/problems/fraction-addition-and-subtraction/README.md +++ b/problems/fraction-addition-and-subtraction/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-square "Valid Square") -## 592. Fraction Addition and Subtraction (Medium) +## [592. Fraction Addition and Subtraction (Medium)](https://leetcode.com/problems/fraction-addition-and-subtraction "ๅˆ†ๆ•ฐๅŠ ๅ‡่ฟ็ฎ—")

    Given a string representing an expression of fraction addition and subtraction, you need to return the calculation result in string format. The final result should be irreducible fraction. If your final result is an integer, say 2, you need to change it to the format of fraction that has denominator 1. So in this case, 2 should be converted to 2/1.

    diff --git a/problems/fraction-to-recurring-decimal/README.md b/problems/fraction-to-recurring-decimal/README.md index 7b79517e4..954f18ab8 100644 --- a/problems/fraction-to-recurring-decimal/README.md +++ b/problems/fraction-to-recurring-decimal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/two-sum-ii-input-array-is-sorted "Two Sum II - Input array is sorted") -## 166. Fraction to Recurring Decimal (Medium) +## [166. Fraction to Recurring Decimal (Medium)](https://leetcode.com/problems/fraction-to-recurring-decimal "ๅˆ†ๆ•ฐๅˆฐๅฐๆ•ฐ")

    Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.

    diff --git a/problems/freedom-trail/README.md b/problems/freedom-trail/README.md index 6cfef0155..a3fec895b 100644 --- a/problems/freedom-trail/README.md +++ b/problems/freedom-trail/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-largest-value-in-each-tree-row "Find Largest Value in Each Tree Row") -## 514. Freedom Trail (Hard) +## [514. Freedom Trail (Hard)](https://leetcode.com/problems/freedom-trail "่‡ช็”ฑไน‹่ทฏ")

    In the video game Fallout 4, the quest "Road to Freedom" requires players to reach a metal dial called the "Freedom Trail Ring", and use the dial to spell a specific keyword in order to open the door.

    diff --git a/problems/friend-circles/README.md b/problems/friend-circles/README.md index 931fed448..6e05570a9 100644 --- a/problems/friend-circles/README.md +++ b/problems/friend-circles/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/split-array-with-equal-sum "Split Array with Equal Sum") -## 547. Friend Circles (Medium) +## [547. Friend Circles (Medium)](https://leetcode.com/problems/friend-circles "ๆœ‹ๅ‹ๅœˆ")

    There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct friend of B, and B is a direct friend of C, then A is an indirect friend of C. And we defined a friend circle is a group of students who are direct or indirect friends. diff --git a/problems/friend-requests-i-overall-acceptance-rate/README.md b/problems/friend-requests-i-overall-acceptance-rate/README.md index 0a498599e..f9b2bc667 100644 --- a/problems/friend-requests-i-overall-acceptance-rate/README.md +++ b/problems/friend-requests-i-overall-acceptance-rate/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/range-addition-ii "Range Addition II") -## 597. Friend Requests I: Overall Acceptance Rate (Easy) +## [597. Friend Requests I: Overall Acceptance Rate (Easy)](https://leetcode.com/problems/friend-requests-i-overall-acceptance-rate "ๅฅฝๅ‹็”ณ่ฏท I ๏ผšๆ€ปไฝ“้€š่ฟ‡็އ") In social network like Facebook or Twitter, people send friend requests and accept others’ requests as well. Now given two tables as below:

     

    diff --git a/problems/friend-requests-ii-who-has-the-most-friends/README.md b/problems/friend-requests-ii-who-has-the-most-friends/README.md index f17eefce5..9ffdb5e8f 100644 --- a/problems/friend-requests-ii-who-has-the-most-friends/README.md +++ b/problems/friend-requests-ii-who-has-the-most-friends/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/consecutive-available-seats "Consecutive Available Seats") -## 602. Friend Requests II: Who Has the Most Friends (Medium) +## [602. Friend Requests II: Who Has the Most Friends (Medium)](https://leetcode.com/problems/friend-requests-ii-who-has-the-most-friends "ๅฅฝๅ‹็”ณ่ฏท II ๏ผš่ฐๆœ‰ๆœ€ๅคš็š„ๅฅฝๅ‹") In social network like Facebook or Twitter, people send friend requests and accept others' requests as well.

     

    diff --git a/problems/friends-of-appropriate-ages/README.md b/problems/friends-of-appropriate-ages/README.md index 96136aecc..ff3ee28c5 100644 --- a/problems/friends-of-appropriate-ages/README.md +++ b/problems/friends-of-appropriate-ages/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/most-profit-assigning-work "Most Profit Assigning Work") -## 825. Friends Of Appropriate Ages (Medium) +## [825. Friends Of Appropriate Ages (Medium)](https://leetcode.com/problems/friends-of-appropriate-ages "้€‚้พ„็š„ๆœ‹ๅ‹")

    Some people will make friend requests. The list of their ages is given and ages[i] is the age of the ith person. 

    diff --git a/problems/frog-jump/README.md b/problems/frog-jump/README.md index e117c1774..683d006d2 100644 --- a/problems/frog-jump/README.md +++ b/problems/frog-jump/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-of-left-leaves "Sum of Left Leaves") -## 403. Frog Jump (Hard) +## [403. Frog Jump (Hard)](https://leetcode.com/problems/frog-jump "้’่›™่ฟ‡ๆฒณ")

    A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but it must not jump into the water.

    diff --git a/problems/fruit-into-baskets/README.md b/problems/fruit-into-baskets/README.md index 995a63a23..4277daa0b 100644 --- a/problems/fruit-into-baskets/README.md +++ b/problems/fruit-into-baskets/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sort-array-by-parity "Sort Array By Parity") -## 904. Fruit Into Baskets (Medium) +## [904. Fruit Into Baskets (Medium)](https://leetcode.com/problems/fruit-into-baskets "ๆฐดๆžœๆˆ็ฏฎ")

    In a row of trees, the i-th tree produces fruit with type tree[i].

    diff --git a/problems/game-of-life/README.md b/problems/game-of-life/README.md index 3085b0872..0689c2701 100644 --- a/problems/game-of-life/README.md +++ b/problems/game-of-life/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-pattern "Word Pattern") -## 289. Game of Life (Medium) +## [289. Game of Life (Medium)](https://leetcode.com/problems/game-of-life "็”Ÿๅ‘ฝๆธธๆˆ")

    According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970."

    diff --git a/problems/game-play-analysis-i/README.md b/problems/game-play-analysis-i/README.md index d14abac28..55c809a3b 100644 --- a/problems/game-play-analysis-i/README.md +++ b/problems/game-play-analysis-i/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/game-play-analysis-ii "Game Play Analysis II") -## 511. Game Play Analysis I (Easy) +## [511. Game Play Analysis I (Easy)](https://leetcode.com/problems/game-play-analysis-i "ๆธธๆˆ็Žฉๆณ•ๅˆ†ๆž I") diff --git a/problems/game-play-analysis-ii/README.md b/problems/game-play-analysis-ii/README.md index 8d056d6e5..25acc875a 100644 --- a/problems/game-play-analysis-ii/README.md +++ b/problems/game-play-analysis-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-bottom-left-tree-value "Find Bottom Left Tree Value") -## 512. Game Play Analysis II (Easy) +## [512. Game Play Analysis II (Easy)](https://leetcode.com/problems/game-play-analysis-ii "ๆธธๆˆ็Žฉๆณ•ๅˆ†ๆž II") diff --git a/problems/game-play-analysis-iii/README.md b/problems/game-play-analysis-iii/README.md index 5a37e7347..ea930de8f 100644 --- a/problems/game-play-analysis-iii/README.md +++ b/problems/game-play-analysis-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/encode-and-decode-tinyurl "Encode and Decode TinyURL") -## 534. Game Play Analysis III (Medium) +## [534. Game Play Analysis III (Medium)](https://leetcode.com/problems/game-play-analysis-iii "") diff --git a/problems/game-play-analysis-iv/README.md b/problems/game-play-analysis-iv/README.md index 5576d29d7..76dea3e3e 100644 --- a/problems/game-play-analysis-iv/README.md +++ b/problems/game-play-analysis-iv/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/student-attendance-record-i "Student Attendance Record I") -## 550. Game Play Analysis IV (Medium) +## [550. Game Play Analysis IV (Medium)](https://leetcode.com/problems/game-play-analysis-iv "") diff --git a/problems/game-play-analysis-v/README.md b/problems/game-play-analysis-v/README.md index a8c5009f0..68bc6787c 100644 --- a/problems/game-play-analysis-v/README.md +++ b/problems/game-play-analysis-v/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unpopular-books "Unpopular Books") -## 1097. Game Play Analysis V (Hard) +## [1097. Game Play Analysis V (Hard)](https://leetcode.com/problems/game-play-analysis-v "") diff --git a/problems/gas-station/README.md b/problems/gas-station/README.md index d78cee906..f7d8de52d 100644 --- a/problems/gas-station/README.md +++ b/problems/gas-station/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/candy "Candy") -## 134. Gas Station (Medium) +## [134. Gas Station (Medium)](https://leetcode.com/problems/gas-station "ๅŠ ๆฒน็ซ™")

    There are N gas stations along a circular route, where the amount of gas at station i is gas[i].

    diff --git a/problems/generalized-abbreviation/README.md b/problems/generalized-abbreviation/README.md index aa7b38408..6608479a4 100644 --- a/problems/generalized-abbreviation/README.md +++ b/problems/generalized-abbreviation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/create-maximum-number "Create Maximum Number") -## 320. Generalized Abbreviation (Medium) +## [320. Generalized Abbreviation (Medium)](https://leetcode.com/problems/generalized-abbreviation "ๅˆ—ไธพๅ•่ฏ็š„ๅ…จ้ƒจ็ผฉๅ†™") diff --git a/problems/generate-parentheses/README.md b/problems/generate-parentheses/README.md index 587563fee..cc22abf0f 100644 --- a/problems/generate-parentheses/README.md +++ b/problems/generate-parentheses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/merge-k-sorted-lists "Merge k Sorted Lists") -## 22. Generate Parentheses (Medium) +## [22. Generate Parentheses (Medium)](https://leetcode.com/problems/generate-parentheses "ๆ‹ฌๅท็”Ÿๆˆ")

    Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. diff --git a/problems/generate-random-point-in-a-circle/README.md b/problems/generate-random-point-in-a-circle/README.md index 4cedffed0..12f720905 100644 --- a/problems/generate-random-point-in-a-circle/README.md +++ b/problems/generate-random-point-in-a-circle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-palindrome-product "Largest Palindrome Product") -## 478. Generate Random Point in a Circle (Medium) +## [478. Generate Random Point in a Circle (Medium)](https://leetcode.com/problems/generate-random-point-in-a-circle "ๅœจๅœ†ๅ†…้šๆœบ็”Ÿๆˆ็‚น")

    Given the radius and x-y positions of the center of a circle, write a function randPoint which generates a uniform random point in the circle.

    diff --git a/problems/get-highest-answer-rate-question/README.md b/problems/get-highest-answer-rate-question/README.md index b966f8761..4f9aac8eb 100644 --- a/problems/get-highest-answer-rate-question/README.md +++ b/problems/get-highest-answer-rate-question/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-cumulative-salary-of-an-employee "Find Cumulative Salary of an Employee") -## 578. Get Highest Answer Rate Question (Medium) +## [578. Get Highest Answer Rate Question (Medium)](https://leetcode.com/problems/get-highest-answer-rate-question "ๆŸฅ่ฏขๅ›ž็ญ”็އๆœ€้ซ˜็š„้—ฎ้ข˜")

    Get the highest answer rate question from a table survey_log with these columns: uid, action, question_id, answer_id, q_num, timestamp.

    diff --git a/problems/global-and-local-inversions/README.md b/problems/global-and-local-inversions/README.md index c3bd9267c..ca5c69374 100644 --- a/problems/global-and-local-inversions/README.md +++ b/problems/global-and-local-inversions/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/split-bst "Split BST") -## 775. Global and Local Inversions (Medium) +## [775. Global and Local Inversions (Medium)](https://leetcode.com/problems/global-and-local-inversions "ๅ…จๅฑ€ๅ€’็ฝฎไธŽๅฑ€้ƒจๅ€’็ฝฎ")

    We have some permutation A of [0, 1, ..., N - 1], where N is the length of A.

    diff --git a/problems/goat-latin/README.md b/problems/goat-latin/README.md index 26c7055ac..5725ac1db 100644 --- a/problems/goat-latin/README.md +++ b/problems/goat-latin/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/friends-of-appropriate-ages "Friends Of Appropriate Ages") -## 824. Goat Latin (Easy) +## [824. Goat Latin (Easy)](https://leetcode.com/problems/goat-latin "ๅฑฑ็พŠๆ‹‰ไธๆ–‡")

    A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only.

    diff --git a/problems/graph-valid-tree/README.md b/problems/graph-valid-tree/README.md index d6c4b21b3..fbe0b5511 100644 --- a/problems/graph-valid-tree/README.md +++ b/problems/graph-valid-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/trips-and-users "Trips and Users") -## 261. Graph Valid Tree (Medium) +## [261. Graph Valid Tree (Medium)](https://leetcode.com/problems/graph-valid-tree "ไปฅๅ›พๅˆคๆ ‘") diff --git a/problems/gray-code/README.md b/problems/gray-code/README.md index 1b2951047..e2cbe11f9 100644 --- a/problems/gray-code/README.md +++ b/problems/gray-code/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/subsets-ii "Subsets II") -## 89. Gray Code (Medium) +## [89. Gray Code (Medium)](https://leetcode.com/problems/gray-code "ๆ ผ้›ท็ผ–็ ")

    The gray code is a binary numeral system where two successive values differ in only one bit.

    diff --git a/problems/greatest-common-divisor-of-strings/README.md b/problems/greatest-common-divisor-of-strings/README.md index 19b4abc58..fe1cafc8e 100644 --- a/problems/greatest-common-divisor-of-strings/README.md +++ b/problems/greatest-common-divisor-of-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flip-columns-for-maximum-number-of-equal-rows "Flip Columns For Maximum Number of Equal Rows") -## 1071. Greatest Common Divisor of Strings (Easy) +## [1071. Greatest Common Divisor of Strings (Easy)](https://leetcode.com/problems/greatest-common-divisor-of-strings "ๅญ—็ฌฆไธฒ็š„ๆœ€ๅคงๅ…ฌๅ› ๅญ")

    For strings S and T, we say "T divides S" if and only if S = T + ... + T  (T concatenated with itself 1 or more times)

    diff --git a/problems/grid-illumination/README.md b/problems/grid-illumination/README.md index 97ee68877..cb727408e 100644 --- a/problems/grid-illumination/README.md +++ b/problems/grid-illumination/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-common-characters "Find Common Characters") -## 1001. Grid Illumination (Hard) +## [1001. Grid Illumination (Hard)](https://leetcode.com/problems/grid-illumination "็ฝ‘ๆ ผ็…งๆ˜Ž")

    On a N x N grid of cells, each cell (x, y) with 0 <= x < N and 0 <= y < N has a lamp.

    diff --git a/problems/group-anagrams/README.md b/problems/group-anagrams/README.md index 468dc73d9..1b3206ce6 100644 --- a/problems/group-anagrams/README.md +++ b/problems/group-anagrams/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/powx-n "Pow(x, n)") -## 49. Group Anagrams (Medium) +## [49. Group Anagrams (Medium)](https://leetcode.com/problems/group-anagrams "ๅญ—ๆฏๅผ‚ไฝ่ฏๅˆ†็ป„")

    Given an array of strings, group anagrams together.

    diff --git a/problems/group-shifted-strings/README.md b/problems/group-shifted-strings/README.md index d2ec747ca..52120a0f2 100644 --- a/problems/group-shifted-strings/README.md +++ b/problems/group-shifted-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-univalue-subtrees "Count Univalue Subtrees") -## 249. Group Shifted Strings (Medium) +## [249. Group Shifted Strings (Medium)](https://leetcode.com/problems/group-shifted-strings "็งปไฝๅญ—็ฌฆไธฒๅˆ†็ป„") diff --git a/problems/groups-of-special-equivalent-strings/README.md b/problems/groups-of-special-equivalent-strings/README.md index 263dd2b3c..08a9998b2 100644 --- a/problems/groups-of-special-equivalent-strings/README.md +++ b/problems/groups-of-special-equivalent-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/all-possible-full-binary-trees "All Possible Full Binary Trees") -## 893. Groups of Special-Equivalent Strings (Easy) +## [893. Groups of Special-Equivalent Strings (Easy)](https://leetcode.com/problems/groups-of-special-equivalent-strings "็‰นๆฎŠ็ญ‰ไปทๅญ—็ฌฆไธฒ็ป„")

    You are given an array A of strings.

    diff --git a/problems/grumpy-bookstore-owner/README.md b/problems/grumpy-bookstore-owner/README.md index 4400b229b..d448161e1 100644 --- a/problems/grumpy-bookstore-owner/README.md +++ b/problems/grumpy-bookstore-owner/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/previous-permutation-with-one-swap "Previous Permutation With One Swap") -## 1052. Grumpy Bookstore Owner (Medium) +## [1052. Grumpy Bookstore Owner (Medium)](https://leetcode.com/problems/grumpy-bookstore-owner "็ˆฑ็”Ÿๆฐ”็š„ไนฆๅบ—่€ๆฟ")

    Today, the bookstore owner has a store open for customers.length minutes.  Every minute, some number of customers (customers[i]) enter the store, and all those customers leave after the end of that minute.

    diff --git a/problems/guess-number-higher-or-lower-ii/README.md b/problems/guess-number-higher-or-lower-ii/README.md index 769a265b6..1ba4686b3 100644 --- a/problems/guess-number-higher-or-lower-ii/README.md +++ b/problems/guess-number-higher-or-lower-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/wiggle-subsequence "Wiggle Subsequence") -## 375. Guess Number Higher or Lower II (Medium) +## [375. Guess Number Higher or Lower II (Medium)](https://leetcode.com/problems/guess-number-higher-or-lower-ii "็Œœๆ•ฐๅญ—ๅคงๅฐ II")

    We are playing the Guess Game. The game is as follows:

    diff --git a/problems/guess-number-higher-or-lower/README.md b/problems/guess-number-higher-or-lower/README.md index d66c1efa0..598ab18b4 100644 --- a/problems/guess-number-higher-or-lower/README.md +++ b/problems/guess-number-higher-or-lower/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/guess-number-higher-or-lower-ii "Guess Number Higher or Lower II") -## 374. Guess Number Higher or Lower (Easy) +## [374. Guess Number Higher or Lower (Easy)](https://leetcode.com/problems/guess-number-higher-or-lower "็Œœๆ•ฐๅญ—ๅคงๅฐ")

    We are playing the Guess Game. The game is as follows:

    diff --git a/problems/guess-the-word/README.md b/problems/guess-the-word/README.md index 11d8493f7..a5cb5b43f 100644 --- a/problems/guess-the-word/README.md +++ b/problems/guess-the-word/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/backspace-string-compare "Backspace String Compare") -## 843. Guess the Word (Hard) +## [843. Guess the Word (Hard)](https://leetcode.com/problems/guess-the-word "็Œœ็Œœ่ฟ™ไธชๅ•่ฏ")

    This problem is an interactive problem new to the LeetCode platform.

    diff --git a/problems/h-index-ii/README.md b/problems/h-index-ii/README.md index 8d457c535..8d88f86ae 100644 --- a/problems/h-index-ii/README.md +++ b/problems/h-index-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/paint-fence "Paint Fence") -## 275. H-Index II (Medium) +## [275. H-Index II (Medium)](https://leetcode.com/problems/h-index-ii "HๆŒ‡ๆ•ฐ II")

    Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.

    diff --git a/problems/h-index/README.md b/problems/h-index/README.md index 1ffdd3127..39476a408 100644 --- a/problems/h-index/README.md +++ b/problems/h-index/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/h-index-ii "H-Index II") -## 274. H-Index (Medium) +## [274. H-Index (Medium)](https://leetcode.com/problems/h-index "HๆŒ‡ๆ•ฐ")

    Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.

    diff --git a/problems/hamming-distance/README.md b/problems/hamming-distance/README.md index 7536c9df0..11d24a912 100644 --- a/problems/hamming-distance/README.md +++ b/problems/hamming-distance/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-moves-to-equal-array-elements-ii "Minimum Moves to Equal Array Elements II") -## 461. Hamming Distance (Easy) +## [461. Hamming Distance (Easy)](https://leetcode.com/problems/hamming-distance "ๆฑ‰ๆ˜Ž่ท็ฆป")

    The Hamming distance between two integers is the number of positions at which the corresponding bits are different.

    diff --git a/problems/hand-of-straights/README.md b/problems/hand-of-straights/README.md index d2bccf691..c2ad4a023 100644 --- a/problems/hand-of-straights/README.md +++ b/problems/hand-of-straights/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-path-visiting-all-nodes "Shortest Path Visiting All Nodes") -## 846. Hand of Straights (Medium) +## [846. Hand of Straights (Medium)](https://leetcode.com/problems/hand-of-straights "ไธ€ๆ‰‹้กบๅญ")

    Alice has a hand of cards, given as an array of integers.

    diff --git a/problems/happy-number/README.md b/problems/happy-number/README.md index 0e1aedf63..6c4e98a6e 100644 --- a/problems/happy-number/README.md +++ b/problems/happy-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-linked-list-elements "Remove Linked List Elements") -## 202. Happy Number (Easy) +## [202. Happy Number (Easy)](https://leetcode.com/problems/happy-number "ๅฟซไนๆ•ฐ")

    Write an algorithm to determine if a number is "happy".

    diff --git a/problems/heaters/README.md b/problems/heaters/README.md index 1d1e63e28..e1d252034 100644 --- a/problems/heaters/README.md +++ b/problems/heaters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-complement "Number Complement") -## 475. Heaters (Easy) +## [475. Heaters (Easy)](https://leetcode.com/problems/heaters "ไพ›ๆš–ๅ™จ")

    Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses.

    diff --git a/problems/height-checker/README.md b/problems/height-checker/README.md index 3156a9495..c540c1287 100644 --- a/problems/height-checker/README.md +++ b/problems/height-checker/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/grumpy-bookstore-owner "Grumpy Bookstore Owner") -## 1051. Height Checker (Easy) +## [1051. Height Checker (Easy)](https://leetcode.com/problems/height-checker "้ซ˜ๅบฆๆฃ€ๆŸฅๅ™จ")

    Students are asked to stand in non-decreasing order of heights for an annual photo.

    diff --git a/problems/high-five/README.md b/problems/high-five/README.md index 47ea3a916..be848bcad 100644 --- a/problems/high-five/README.md +++ b/problems/high-five/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/brace-expansion "Brace Expansion") -## 1086. High Five (Easy) +## [1086. High Five (Easy)](https://leetcode.com/problems/high-five "ๅ‰ไบ”็ง‘็š„ๅ‡ๅˆ†")

    Given a list of scores of different students, return the average score of each student's top five scores in the order of each student's id.

    diff --git a/problems/highest-grade-for-each-student/README.md b/problems/highest-grade-for-each-student/README.md index 8ad65fe38..b4333dfed 100644 --- a/problems/highest-grade-for-each-student/README.md +++ b/problems/highest-grade-for-each-student/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reported-posts "Reported Posts") -## 1112. Highest Grade For Each Student (Medium) +## [1112. Highest Grade For Each Student (Medium)](https://leetcode.com/problems/highest-grade-for-each-student "") diff --git a/problems/house-robber-ii/README.md b/problems/house-robber-ii/README.md index eb64d1019..f6edda3dd 100644 --- a/problems/house-robber-ii/README.md +++ b/problems/house-robber-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-palindrome "Shortest Palindrome") -## 213. House Robber II (Medium) +## [213. House Robber II (Medium)](https://leetcode.com/problems/house-robber-ii "ๆ‰“ๅฎถๅŠซ่ˆ II")

    You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That means the first house is the neighbor of the last one. Meanwhile, adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken into on the same night.

    diff --git a/problems/house-robber-iii/README.md b/problems/house-robber-iii/README.md index acf202cad..8b0537266 100644 --- a/problems/house-robber-iii/README.md +++ b/problems/house-robber-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/counting-bits "Counting Bits") -## 337. House Robber III (Medium) +## [337. House Robber III (Medium)](https://leetcode.com/problems/house-robber-iii "ๆ‰“ๅฎถๅŠซ่ˆ III")

    The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each house has one and only one parent house. After a tour, the smart thief realized that "all houses in this place forms a binary tree". It will automatically contact the police if two directly-linked houses were broken into on the same night.

    diff --git a/problems/house-robber/README.md b/problems/house-robber/README.md index ad20fcc60..0ef57af06 100644 --- a/problems/house-robber/README.md +++ b/problems/house-robber/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-right-side-view "Binary Tree Right Side View") -## 198. House Robber (Easy) +## [198. House Robber (Easy)](https://leetcode.com/problems/house-robber "ๆ‰“ๅฎถๅŠซ่ˆ")

    You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken into on the same night.

    diff --git a/problems/human-traffic-of-stadium/README.md b/problems/human-traffic-of-stadium/README.md index d5385a63d..7736d01d7 100644 --- a/problems/human-traffic-of-stadium/README.md +++ b/problems/human-traffic-of-stadium/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/friend-requests-ii-who-has-the-most-friends "Friend Requests II: Who Has the Most Friends") -## 601. Human Traffic of Stadium (Hard) +## [601. Human Traffic of Stadium (Hard)](https://leetcode.com/problems/human-traffic-of-stadium "ไฝ“่‚ฒ้ฆ†็š„ไบบๆต้‡")

    X city built a new stadium, each day many people visit it and the stats are saved as these columns: id, visit_date, people

    diff --git a/problems/image-overlap/README.md b/problems/image-overlap/README.md index 2789f45b1..e31ff5267 100644 --- a/problems/image-overlap/README.md +++ b/problems/image-overlap/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rectangle-overlap "Rectangle Overlap") -## 835. Image Overlap (Medium) +## [835. Image Overlap (Medium)](https://leetcode.com/problems/image-overlap "ๅ›พๅƒ้‡ๅ ")

    Two images A and B are given, represented as binary, square matrices of the same size.  (A binary matrix has only 0s and 1s as values.)

    diff --git a/problems/image-smoother/README.md b/problems/image-smoother/README.md index d8ac8871f..1ebcce18f 100644 --- a/problems/image-smoother/README.md +++ b/problems/image-smoother/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-width-of-binary-tree "Maximum Width of Binary Tree") -## 661. Image Smoother (Easy) +## [661. Image Smoother (Easy)](https://leetcode.com/problems/image-smoother "ๅ›พ็‰‡ๅนณๆป‘ๅ™จ")

    Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the average gray scale (rounding down) of all the 8 surrounding cells and itself. If a cell has less than 8 surrounding cells, then use as many as you can.

    diff --git a/problems/immediate-food-delivery-i/README.md b/problems/immediate-food-delivery-i/README.md index 41b3b5f9f..ef4ce8a74 100644 --- a/problems/immediate-food-delivery-i/README.md +++ b/problems/immediate-food-delivery-i/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/immediate-food-delivery-ii "Immediate Food Delivery II") -## 1173. Immediate Food Delivery I (Easy) +## [1173. Immediate Food Delivery I (Easy)](https://leetcode.com/problems/immediate-food-delivery-i "") diff --git a/problems/immediate-food-delivery-ii/README.md b/problems/immediate-food-delivery-ii/README.md index d08d9b25b..d386d4778 100644 --- a/problems/immediate-food-delivery-ii/README.md +++ b/problems/immediate-food-delivery-ii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/prime-arrangements "Prime Arrangements") -## 1174. Immediate Food Delivery II (Medium) +## [1174. Immediate Food Delivery II (Medium)](https://leetcode.com/problems/immediate-food-delivery-ii "") diff --git a/problems/implement-magic-dictionary/README.md b/problems/implement-magic-dictionary/README.md index b5418d108..971cd6a4b 100644 --- a/problems/implement-magic-dictionary/README.md +++ b/problems/implement-magic-dictionary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/map-sum-pairs "Map Sum Pairs") -## 676. Implement Magic Dictionary (Medium) +## [676. Implement Magic Dictionary (Medium)](https://leetcode.com/problems/implement-magic-dictionary "ๅฎž็Žฐไธ€ไธช้ญ”ๆณ•ๅญ—ๅ…ธ")

    Implement a magic directory with buildDict, and search methods. diff --git a/problems/implement-queue-using-stacks/README.md b/problems/implement-queue-using-stacks/README.md index 1c7be94b3..8d0069b46 100644 --- a/problems/implement-queue-using-stacks/README.md +++ b/problems/implement-queue-using-stacks/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-digit-one "Number of Digit One") -## 232. Implement Queue using Stacks (Easy) +## [232. Implement Queue using Stacks (Easy)](https://leetcode.com/problems/implement-queue-using-stacks "็”จๆ ˆๅฎž็Žฐ้˜Ÿๅˆ—")

    Implement the following operations of a queue using stacks.

    diff --git a/problems/implement-rand10-using-rand7/README.md b/problems/implement-rand10-using-rand7/README.md index cff8d50ae..d0cb8c918 100644 --- a/problems/implement-rand10-using-rand7/README.md +++ b/problems/implement-rand10-using-rand7/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/encode-string-with-shortest-length "Encode String with Shortest Length") -## 470. Implement Rand10() Using Rand7() (Medium) +## [470. Implement Rand10() Using Rand7() (Medium)](https://leetcode.com/problems/implement-rand10-using-rand7 "็”จ Rand7() ๅฎž็Žฐ Rand10()")

    Given a function rand7 which generates a uniform random integer in the range 1 to 7, write a function rand10 which generates a uniform random integer in the range 1 to 10.

    diff --git a/problems/implement-stack-using-queues/README.md b/problems/implement-stack-using-queues/README.md index 6a9dd4793..379c3968e 100644 --- a/problems/implement-stack-using-queues/README.md +++ b/problems/implement-stack-using-queues/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/invert-binary-tree "Invert Binary Tree") -## 225. Implement Stack using Queues (Easy) +## [225. Implement Stack using Queues (Easy)](https://leetcode.com/problems/implement-stack-using-queues "็”จ้˜Ÿๅˆ—ๅฎž็Žฐๆ ˆ")

    Implement the following operations of a stack using queues.

    diff --git a/problems/implement-strstr/README.md b/problems/implement-strstr/README.md index 725acb872..496f433f8 100644 --- a/problems/implement-strstr/README.md +++ b/problems/implement-strstr/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/divide-two-integers "Divide Two Integers") -## 28. Implement strStr() (Easy) +## [28. Implement strStr() (Easy)](https://leetcode.com/problems/implement-strstr "ๅฎž็Žฐ strStr()")

    Implement strStr().

    diff --git a/problems/implement-trie-prefix-tree/README.md b/problems/implement-trie-prefix-tree/README.md index 4e10a6840..2a4891a32 100644 --- a/problems/implement-trie-prefix-tree/README.md +++ b/problems/implement-trie-prefix-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-size-subarray-sum "Minimum Size Subarray Sum") -## 208. Implement Trie (Prefix Tree) (Medium) +## [208. Implement Trie (Prefix Tree) (Medium)](https://leetcode.com/problems/implement-trie-prefix-tree "ๅฎž็Žฐ Trie (ๅ‰็ผ€ๆ ‘)")

    Implement a trie with insert, search, and startsWith methods.

    diff --git a/problems/increasing-order-search-tree/README.md b/problems/increasing-order-search-tree/README.md index 7ac77c267..54d7a14e3 100644 --- a/problems/increasing-order-search-tree/README.md +++ b/problems/increasing-order-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bitwise-ors-of-subarrays "Bitwise ORs of Subarrays") -## 897. Increasing Order Search Tree (Easy) +## [897. Increasing Order Search Tree (Easy)](https://leetcode.com/problems/increasing-order-search-tree "้€’ๅขž้กบๅบๆŸฅๆ‰พๆ ‘")

    Given a binary search tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no left child and only 1 right child.

    diff --git a/problems/increasing-subsequences/README.md b/problems/increasing-subsequences/README.md index b3e4be3ef..853458ab5 100644 --- a/problems/increasing-subsequences/README.md +++ b/problems/increasing-subsequences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/construct-the-rectangle "Construct the Rectangle") -## 491. Increasing Subsequences (Medium) +## [491. Increasing Subsequences (Medium)](https://leetcode.com/problems/increasing-subsequences "้€’ๅขžๅญๅบๅˆ—")

    Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increasing subsequence should be at least 2 . diff --git a/problems/increasing-triplet-subsequence/README.md b/problems/increasing-triplet-subsequence/README.md index 25e987f2d..9dd4ff799 100644 --- a/problems/increasing-triplet-subsequence/README.md +++ b/problems/increasing-triplet-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/self-crossing "Self Crossing") -## 334. Increasing Triplet Subsequence (Medium) +## [334. Increasing Triplet Subsequence (Medium)](https://leetcode.com/problems/increasing-triplet-subsequence "้€’ๅขž็š„ไธ‰ๅ…ƒๅญๅบๅˆ—")

    Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.

    diff --git a/problems/index-pairs-of-a-string/README.md b/problems/index-pairs-of-a-string/README.md index 416b128bb..5de15d158 100644 --- a/problems/index-pairs-of-a-string/README.md +++ b/problems/index-pairs-of-a-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/campus-bikes-ii "Campus Bikes II") -## 1065. Index Pairs of a String (Easy) +## [1065. Index Pairs of a String (Easy)](https://leetcode.com/problems/index-pairs-of-a-string "ๅญ—็ฌฆไธฒ็š„็ดขๅผ•ๅฏน")

    Given a text string and words (a list of strings), return all index pairs [i, j] so that the substring text[i]...text[j] is in the list of words.

    diff --git a/problems/inorder-successor-in-bst-ii/README.md b/problems/inorder-successor-in-bst-ii/README.md index a2634fbdd..d7f0ccd75 100644 --- a/problems/inorder-successor-in-bst-ii/README.md +++ b/problems/inorder-successor-in-bst-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/game-play-analysis-i "Game Play Analysis I") -## 510. Inorder Successor in BST II (Medium) +## [510. Inorder Successor in BST II (Medium)](https://leetcode.com/problems/inorder-successor-in-bst-ii "ไบŒๅ‰ๆœ็ดขๆ ‘ไธญ็š„ไธญๅบๅŽ็ปง II") diff --git a/problems/inorder-successor-in-bst/README.md b/problems/inorder-successor-in-bst/README.md index 70093b914..94f17f008 100644 --- a/problems/inorder-successor-in-bst/README.md +++ b/problems/inorder-successor-in-bst/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/walls-and-gates "Walls and Gates") -## 285. Inorder Successor in BST (Medium) +## [285. Inorder Successor in BST (Medium)](https://leetcode.com/problems/inorder-successor-in-bst "ไบŒๅ‰ๆœ็ดขๆ ‘ไธญ็š„้กบๅบๅŽ็ปง")

    Given a binary search tree and a node in it, find the in-order successor of that node in the BST.

    diff --git a/problems/insert-delete-getrandom-o1-duplicates-allowed/README.md b/problems/insert-delete-getrandom-o1-duplicates-allowed/README.md index 9c87927b6..9fbae1c04 100644 --- a/problems/insert-delete-getrandom-o1-duplicates-allowed/README.md +++ b/problems/insert-delete-getrandom-o1-duplicates-allowed/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/linked-list-random-node "Linked List Random Node") -## 381. Insert Delete GetRandom O(1) - Duplicates allowed (Hard) +## [381. Insert Delete GetRandom O(1) - Duplicates allowed (Hard)](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed "O(1) ๆ—ถ้—ดๆ’ๅ…ฅใ€ๅˆ ้™คๅ’Œ่Žทๅ–้šๆœบๅ…ƒ็ด  - ๅ…่ฎธ้‡ๅค")

    Design a data structure that supports all following operations in average O(1) time.

    Note: Duplicate elements are allowed. diff --git a/problems/insert-delete-getrandom-o1/README.md b/problems/insert-delete-getrandom-o1/README.md index ab42c32e1..48c55f95a 100644 --- a/problems/insert-delete-getrandom-o1/README.md +++ b/problems/insert-delete-getrandom-o1/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/insert-delete-getrandom-o1-duplicates-allowed "Insert Delete GetRandom O(1) - Duplicates allowed") -## 380. Insert Delete GetRandom O(1) (Medium) +## [380. Insert Delete GetRandom O(1) (Medium)](https://leetcode.com/problems/insert-delete-getrandom-o1 "ๅธธๆ•ฐๆ—ถ้—ดๆ’ๅ…ฅใ€ๅˆ ้™คๅ’Œ่Žทๅ–้šๆœบๅ…ƒ็ด ")

    Design a data structure that supports all following operations in average O(1) time.

    diff --git a/problems/insert-interval/README.md b/problems/insert-interval/README.md index a34c1a051..a2c0cfd5e 100644 --- a/problems/insert-interval/README.md +++ b/problems/insert-interval/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/length-of-last-word "Length of Last Word") -## 57. Insert Interval (Hard) +## [57. Insert Interval (Hard)](https://leetcode.com/problems/insert-interval "ๆ’ๅ…ฅๅŒบ้—ด")

    Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).

    diff --git a/problems/insert-into-a-binary-search-tree/README.md b/problems/insert-into-a-binary-search-tree/README.md index 2bf97e6da..d4b358b18 100644 --- a/problems/insert-into-a-binary-search-tree/README.md +++ b/problems/insert-into-a-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/search-in-a-sorted-array-of-unknown-size "Search in a Sorted Array of Unknown Size") -## 701. Insert into a Binary Search Tree (Medium) +## [701. Insert into a Binary Search Tree (Medium)](https://leetcode.com/problems/insert-into-a-binary-search-tree "ไบŒๅ‰ๆœ็ดขๆ ‘ไธญ็š„ๆ’ๅ…ฅๆ“ไฝœ")

    Given the root node of a binary search tree (BST) and a value to be inserted into the tree, insert the value into the BST. Return the root node of the BST after the insertion. It is guaranteed that the new value does not exist in the original BST.

    diff --git a/problems/insert-into-a-cyclic-sorted-list/README.md b/problems/insert-into-a-cyclic-sorted-list/README.md index 5858fe573..75b5b45e7 100644 --- a/problems/insert-into-a-cyclic-sorted-list/README.md +++ b/problems/insert-into-a-cyclic-sorted-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/to-lower-case "To Lower Case") -## 708. Insert into a Cyclic Sorted List (Medium) +## [708. Insert into a Cyclic Sorted List (Medium)](https://leetcode.com/problems/insert-into-a-cyclic-sorted-list "ๅพช็Žฏๆœ‰ๅบๅˆ—่กจ็š„ๆ’ๅ…ฅ") diff --git a/problems/insertion-sort-list/README.md b/problems/insertion-sort-list/README.md index 9c657ad6a..4d57bc765 100644 --- a/problems/insertion-sort-list/README.md +++ b/problems/insertion-sort-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sort-list "Sort List") -## 147. Insertion Sort List (Medium) +## [147. Insertion Sort List (Medium)](https://leetcode.com/problems/insertion-sort-list "ๅฏน้“พ่กจ่ฟ›่กŒๆ’ๅ…ฅๆŽ’ๅบ")

    Sort a linked list using insertion sort.

    diff --git a/problems/insufficient-nodes-in-root-to-leaf-paths/README.md b/problems/insufficient-nodes-in-root-to-leaf-paths/README.md index bad3cf1bb..8c31b30a4 100644 --- a/problems/insufficient-nodes-in-root-to-leaf-paths/README.md +++ b/problems/insufficient-nodes-in-root-to-leaf-paths/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-subsequence-of-distinct-characters "Smallest Subsequence of Distinct Characters") -## 1080. Insufficient Nodes in Root to Leaf Paths (Medium) +## [1080. Insufficient Nodes in Root to Leaf Paths (Medium)](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths "ๆ นๅˆฐๅถ่ทฏๅพ„ไธŠ็š„ไธ่ถณ่Š‚็‚น")

    Given the root of a binary tree, consider all root to leaf paths: paths from the root to any leaf.  (A leaf is a node with no children.)

    diff --git a/problems/integer-break/README.md b/problems/integer-break/README.md index be521ceee..7e8ca366f 100644 --- a/problems/integer-break/README.md +++ b/problems/integer-break/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-string "Reverse String") -## 343. Integer Break (Medium) +## [343. Integer Break (Medium)](https://leetcode.com/problems/integer-break "ๆ•ดๆ•ฐๆ‹†ๅˆ†")

    Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get.

    diff --git a/problems/integer-replacement/README.md b/problems/integer-replacement/README.md index 21e3786dc..919ebe4c9 100644 --- a/problems/integer-replacement/README.md +++ b/problems/integer-replacement/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/random-pick-index "Random Pick Index") -## 397. Integer Replacement (Medium) +## [397. Integer Replacement (Medium)](https://leetcode.com/problems/integer-replacement "ๆ•ดๆ•ฐๆ›ฟๆข")

    Given a positive integer n and you can do operations as follow: diff --git a/problems/integer-to-english-words/README.md b/problems/integer-to-english-words/README.md index cd451ee55..4d9d65718 100644 --- a/problems/integer-to-english-words/README.md +++ b/problems/integer-to-english-words/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/h-index "H-Index") -## 273. Integer to English Words (Hard) +## [273. Integer to English Words (Hard)](https://leetcode.com/problems/integer-to-english-words "ๆ•ดๆ•ฐ่ฝฌๆข่‹ฑๆ–‡่กจ็คบ")

    Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1.

    diff --git a/problems/integer-to-roman/README.md b/problems/integer-to-roman/README.md index ddbdc53a6..517255a16 100644 --- a/problems/integer-to-roman/README.md +++ b/problems/integer-to-roman/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/roman-to-integer "Roman to Integer") -## 12. Integer to Roman (Medium) +## [12. Integer to Roman (Medium)](https://leetcode.com/problems/integer-to-roman "ๆ•ดๆ•ฐ่ฝฌ็ฝ—้ฉฌๆ•ฐๅญ—")

    Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.

    diff --git a/problems/interleaving-string/README.md b/problems/interleaving-string/README.md index 96029d1c3..720d1ab49 100644 --- a/problems/interleaving-string/README.md +++ b/problems/interleaving-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/validate-binary-search-tree "Validate Binary Search Tree") -## 97. Interleaving String (Hard) +## [97. Interleaving String (Hard)](https://leetcode.com/problems/interleaving-string "ไบค้”™ๅญ—็ฌฆไธฒ")

    Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.

    diff --git a/problems/intersection-of-two-arrays-ii/README.md b/problems/intersection-of-two-arrays-ii/README.md index 291566725..de9020c26 100644 --- a/problems/intersection-of-two-arrays-ii/README.md +++ b/problems/intersection-of-two-arrays-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/android-unlock-patterns "Android Unlock Patterns") -## 350. Intersection of Two Arrays II (Easy) +## [350. Intersection of Two Arrays II (Easy)](https://leetcode.com/problems/intersection-of-two-arrays-ii "ไธคไธชๆ•ฐ็ป„็š„ไบค้›† II")

    Given two arrays, write a function to compute their intersection.

    diff --git a/problems/intersection-of-two-arrays/README.md b/problems/intersection-of-two-arrays/README.md index ea3ccd6ea..c12adb21c 100644 --- a/problems/intersection-of-two-arrays/README.md +++ b/problems/intersection-of-two-arrays/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/intersection-of-two-arrays-ii "Intersection of Two Arrays II") -## 349. Intersection of Two Arrays (Easy) +## [349. Intersection of Two Arrays (Easy)](https://leetcode.com/problems/intersection-of-two-arrays "ไธคไธชๆ•ฐ็ป„็š„ไบค้›†")

    Given two arrays, write a function to compute their intersection.

    diff --git a/problems/intersection-of-two-linked-lists/README.md b/problems/intersection-of-two-linked-lists/README.md index 72e1c7a7b..5cf0c6857 100644 --- a/problems/intersection-of-two-linked-lists/README.md +++ b/problems/intersection-of-two-linked-lists/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/one-edit-distance "One Edit Distance") -## 160. Intersection of Two Linked Lists (Easy) +## [160. Intersection of Two Linked Lists (Easy)](https://leetcode.com/problems/intersection-of-two-linked-lists "็›ธไบค้“พ่กจ")

    Write a program to find the node at which the intersection of two singly linked lists begins.

    diff --git a/problems/interval-list-intersections/README.md b/problems/interval-list-intersections/README.md index 4d7a642ef..f9effce18 100644 --- a/problems/interval-list-intersections/README.md +++ b/problems/interval-list-intersections/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/vertical-order-traversal-of-a-binary-tree "Vertical Order Traversal of a Binary Tree") -## 986. Interval List Intersections (Medium) +## [986. Interval List Intersections (Medium)](https://leetcode.com/problems/interval-list-intersections "ๅŒบ้—ดๅˆ—่กจ็š„ไบค้›†")

    Given two lists of closed intervals, each list of intervals is pairwise disjoint and in sorted order.

    diff --git a/problems/invalid-transactions/README.md b/problems/invalid-transactions/README.md index 73c8d3039..e30804e9a 100644 --- a/problems/invalid-transactions/README.md +++ b/problems/invalid-transactions/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/compare-strings-by-frequency-of-the-smallest-character "Compare Strings by Frequency of the Smallest Character") -## 1169. Invalid Transactions (Easy) +## [1169. Invalid Transactions (Easy)](https://leetcode.com/problems/invalid-transactions "ๆŸฅ่ฏขๆ— ๆ•ˆไบคๆ˜“")

    A transaction is possibly invalid if:

    diff --git a/problems/invert-binary-tree/README.md b/problems/invert-binary-tree/README.md index f94e22f43..3396784cb 100644 --- a/problems/invert-binary-tree/README.md +++ b/problems/invert-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/basic-calculator-ii "Basic Calculator II") -## 226. Invert Binary Tree (Easy) +## [226. Invert Binary Tree (Easy)](https://leetcode.com/problems/invert-binary-tree "็ฟป่ฝฌไบŒๅ‰ๆ ‘")

    Invert a binary tree.

    diff --git a/problems/investments-in-2016/README.md b/problems/investments-in-2016/README.md index aba668b4c..c9ebdb56d 100644 --- a/problems/investments-in-2016/README.md +++ b/problems/investments-in-2016/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/customer-placing-the-largest-number-of-orders "Customer Placing the Largest Number of Orders") -## 585. Investments in 2016 (Medium) +## [585. Investments in 2016 (Medium)](https://leetcode.com/problems/investments-in-2016 "2016ๅนด็š„ๆŠ•่ต„")

    Write a query to print the sum of all total investment values in 2016 (TIV_2016), to a scale of 2 decimal places, for all policy holders who meet the following criteria:

    diff --git a/problems/ip-to-cidr/README.md b/problems/ip-to-cidr/README.md index 281607d02..ea6141d82 100644 --- a/problems/ip-to-cidr/README.md +++ b/problems/ip-to-cidr/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/open-the-lock "Open the Lock") -## 751. IP to CIDR (Easy) +## [751. IP to CIDR (Easy)](https://leetcode.com/problems/ip-to-cidr "IP ๅˆฐ CIDR") diff --git a/problems/ipo/README.md b/problems/ipo/README.md index f1059f951..e8b474d5b 100644 --- a/problems/ipo/README.md +++ b/problems/ipo/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/next-greater-element-ii "Next Greater Element II") -## 502. IPO (Hard) +## [502. IPO (Hard)](https://leetcode.com/problems/ipo "IPO")

    Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects to increase its capital before the IPO. Since it has limited resources, it can only finish at most k distinct projects before the IPO. Help LeetCode design the best way to maximize its total capital after finishing at most k distinct projects. diff --git a/problems/is-graph-bipartite/README.md b/problems/is-graph-bipartite/README.md index d532928e4..207186c72 100644 --- a/problems/is-graph-bipartite/README.md +++ b/problems/is-graph-bipartite/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/k-th-smallest-prime-fraction "K-th Smallest Prime Fraction") -## 785. Is Graph Bipartite? (Medium) +## [785. Is Graph Bipartite? (Medium)](https://leetcode.com/problems/is-graph-bipartite "ๅˆคๆ–ญไบŒๅˆ†ๅ›พ")

    Given an undirected graph, return true if and only if it is bipartite.

    diff --git a/problems/is-subsequence/README.md b/problems/is-subsequence/README.md index d0f47ba39..a143bde41 100644 --- a/problems/is-subsequence/README.md +++ b/problems/is-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/utf-8-validation "UTF-8 Validation") -## 392. Is Subsequence (Easy) +## [392. Is Subsequence (Easy)](https://leetcode.com/problems/is-subsequence "ๅˆคๆ–ญๅญๅบๅˆ—")

    Given a string s and a string t, check if s is subsequence of t. diff --git a/problems/island-perimeter/README.md b/problems/island-perimeter/README.md index 0617fd033..3554e4726 100644 --- a/problems/island-perimeter/README.md +++ b/problems/island-perimeter/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/can-i-win "Can I Win") -## 463. Island Perimeter (Easy) +## [463. Island Perimeter (Easy)](https://leetcode.com/problems/island-perimeter "ๅฒ›ๅฑฟ็š„ๅ‘จ้•ฟ")

    You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water.

    diff --git a/problems/isomorphic-strings/README.md b/problems/isomorphic-strings/README.md index cbce94cfb..592ffa1f0 100644 --- a/problems/isomorphic-strings/README.md +++ b/problems/isomorphic-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-linked-list "Reverse Linked List") -## 205. Isomorphic Strings (Easy) +## [205. Isomorphic Strings (Easy)](https://leetcode.com/problems/isomorphic-strings "ๅŒๆž„ๅญ—็ฌฆไธฒ")

    Given two strings s and t, determine if they are isomorphic.

    diff --git a/problems/jewels-and-stones/README.md b/problems/jewels-and-stones/README.md index 1e599a751..5a026378d 100644 --- a/problems/jewels-and-stones/README.md +++ b/problems/jewels-and-stones/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/basic-calculator-iii "Basic Calculator III") -## 771. Jewels and Stones (Easy) +## [771. Jewels and Stones (Easy)](https://leetcode.com/problems/jewels-and-stones "ๅฎ็ŸณไธŽ็Ÿณๅคด")

    You're given strings J representing the types of stones that are jewels, and S representing the stones you have.  Each character in S is a type of stone you have.  You want to know how many of the stones you have are also jewels.

    diff --git a/problems/jump-game-ii/README.md b/problems/jump-game-ii/README.md index f5989c618..d6de691f2 100644 --- a/problems/jump-game-ii/README.md +++ b/problems/jump-game-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/permutations "Permutations") -## 45. Jump Game II (Hard) +## [45. Jump Game II (Hard)](https://leetcode.com/problems/jump-game-ii "่ทณ่ทƒๆธธๆˆ II")

    Given an array of non-negative integers, you are initially positioned at the first index of the array.

    diff --git a/problems/jump-game/README.md b/problems/jump-game/README.md index ac2ef46ff..953be26d3 100644 --- a/problems/jump-game/README.md +++ b/problems/jump-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/merge-intervals "Merge Intervals") -## 55. Jump Game (Medium) +## [55. Jump Game (Medium)](https://leetcode.com/problems/jump-game "่ทณ่ทƒๆธธๆˆ")

    Given an array of non-negative integers, you are initially positioned at the first index of the array.

    diff --git a/problems/k-closest-points-to-origin/README.md b/problems/k-closest-points-to-origin/README.md index 3904f74be..f406cbe11 100644 --- a/problems/k-closest-points-to-origin/README.md +++ b/problems/k-closest-points-to-origin/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/subarray-sums-divisible-by-k "Subarray Sums Divisible by K") -## 973. K Closest Points to Origin (Medium) +## [973. K Closest Points to Origin (Medium)](https://leetcode.com/problems/k-closest-points-to-origin "ๆœ€ๆŽฅ่ฟ‘ๅŽŸ็‚น็š„ K ไธช็‚น")

    We have a list of points on the plane.  Find the K closest points to the origin (0, 0).

    diff --git a/problems/k-concatenation-maximum-sum/README.md b/problems/k-concatenation-maximum-sum/README.md index be7beb1fa..5a02076b0 100644 --- a/problems/k-concatenation-maximum-sum/README.md +++ b/problems/k-concatenation-maximum-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/critical-connections-in-a-network "Critical Connections in a Network") -## 1191. K-Concatenation Maximum Sum (Medium) +## [1191. K-Concatenation Maximum Sum (Medium)](https://leetcode.com/problems/k-concatenation-maximum-sum "K ๆฌกไธฒ่”ๅŽๆœ€ๅคงๅญๆ•ฐ็ป„ไน‹ๅ’Œ")

    Given an integer array arr and an integer k, modify the array by repeating it k times.

    @@ -50,9 +50,6 @@
  • -10^4 <= arr[i] <= 10^4
  • -### Related Topics - [[Dynamic Programming](https://github.com/openset/leetcode/tree/master/tag/dynamic-programming/README.md)] - ### Hints
    Hint 1 diff --git a/problems/k-diff-pairs-in-an-array/README.md b/problems/k-diff-pairs-in-an-array/README.md index 9dd6b2a10..79fe9d09a 100644 --- a/problems/k-diff-pairs-in-an-array/README.md +++ b/problems/k-diff-pairs-in-an-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lonely-pixel-ii "Lonely Pixel II") -## 532. K-diff Pairs in an Array (Easy) +## [532. K-diff Pairs in an Array (Easy)](https://leetcode.com/problems/k-diff-pairs-in-an-array "ๆ•ฐ็ป„ไธญ็š„K-diffๆ•ฐๅฏน")

    Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an integer pair (i, j), where i and j are both numbers in the array and their absolute difference is k. diff --git a/problems/k-empty-slots/README.md b/problems/k-empty-slots/README.md index cc2d3bb13..6c4c43d80 100644 --- a/problems/k-empty-slots/README.md +++ b/problems/k-empty-slots/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/redundant-connection "Redundant Connection") -## 683. K Empty Slots (Hard) +## [683. K Empty Slots (Hard)](https://leetcode.com/problems/k-empty-slots "K ไธช็ฉบ่Šฑ็›†") diff --git a/problems/k-inverse-pairs-array/README.md b/problems/k-inverse-pairs-array/README.md index 574d2c34c..992df9c84 100644 --- a/problems/k-inverse-pairs-array/README.md +++ b/problems/k-inverse-pairs-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/course-schedule-iii "Course Schedule III") -## 629. K Inverse Pairs Array (Hard) +## [629. K Inverse Pairs Array (Hard)](https://leetcode.com/problems/k-inverse-pairs-array "Kไธช้€†ๅบๅฏนๆ•ฐ็ป„")

    Given two integers n and k, find how many different arrays consist of numbers from 1 to n such that there are exactly k inverse pairs.

    diff --git a/problems/k-similar-strings/README.md b/problems/k-similar-strings/README.md index 3be731ba1..df0aea392 100644 --- a/problems/k-similar-strings/README.md +++ b/problems/k-similar-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/exam-room "Exam Room") -## 854. K-Similar Strings (Hard) +## [854. K-Similar Strings (Hard)](https://leetcode.com/problems/k-similar-strings "็›ธไผผๅบฆไธบ K ็š„ๅญ—็ฌฆไธฒ")

    Strings A and B are K-similar (for some non-negative integer K) if we can swap the positions of two letters in A exactly K times so that the resulting string equals B.

    diff --git a/problems/k-th-smallest-in-lexicographical-order/README.md b/problems/k-th-smallest-in-lexicographical-order/README.md index 83a3f4815..14c0b9193 100644 --- a/problems/k-th-smallest-in-lexicographical-order/README.md +++ b/problems/k-th-smallest-in-lexicographical-order/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/arranging-coins "Arranging Coins") -## 440. K-th Smallest in Lexicographical Order (Hard) +## [440. K-th Smallest in Lexicographical Order (Hard)](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order "ๅญ—ๅ…ธๅบ็š„็ฌฌKๅฐๆ•ฐๅญ—")

    Given integers n and k, find the lexicographically k-th smallest integer in the range from 1 to n.

    diff --git a/problems/k-th-smallest-prime-fraction/README.md b/problems/k-th-smallest-prime-fraction/README.md index 6029ee771..9ef5aace3 100644 --- a/problems/k-th-smallest-prime-fraction/README.md +++ b/problems/k-th-smallest-prime-fraction/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/cheapest-flights-within-k-stops "Cheapest Flights Within K Stops") -## 786. K-th Smallest Prime Fraction (Hard) +## [786. K-th Smallest Prime Fraction (Hard)](https://leetcode.com/problems/k-th-smallest-prime-fraction "็ฌฌ K ไธชๆœ€ๅฐ็š„็ด ๆ•ฐๅˆ†ๆ•ฐ")

    A sorted list A contains 1, plus some number of primes.  Then, for every p < q in the list, we consider the fraction p/q.

    diff --git a/problems/k-th-symbol-in-grammar/README.md b/problems/k-th-symbol-in-grammar/README.md index 30d3ea3a6..b876f07f3 100644 --- a/problems/k-th-symbol-in-grammar/README.md +++ b/problems/k-th-symbol-in-grammar/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reaching-points "Reaching Points") -## 779. K-th Symbol in Grammar (Medium) +## [779. K-th Symbol in Grammar (Medium)](https://leetcode.com/problems/k-th-symbol-in-grammar "็ฌฌKไธช่ฏญๆณ•็ฌฆๅท")

    On the first row, we write a 0. Now in every subsequent row, we look at the previous row and replace each occurrence of 0 with 01, and each occurrence of 1 with 10.

    diff --git a/problems/keyboard-row/README.md b/problems/keyboard-row/README.md index f03c7f5f7..a233ceb2a 100644 --- a/problems/keyboard-row/README.md +++ b/problems/keyboard-row/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-mode-in-binary-search-tree "Find Mode in Binary Search Tree") -## 500. Keyboard Row (Easy) +## [500. Keyboard Row (Easy)](https://leetcode.com/problems/keyboard-row "้”ฎ็›˜่กŒ")

    Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below.

    diff --git a/problems/keys-and-rooms/README.md b/problems/keys-and-rooms/README.md index a831bad3b..122a65ab9 100644 --- a/problems/keys-and-rooms/README.md +++ b/problems/keys-and-rooms/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/split-array-into-fibonacci-sequence "Split Array into Fibonacci Sequence") -## 841. Keys and Rooms (Medium) +## [841. Keys and Rooms (Medium)](https://leetcode.com/problems/keys-and-rooms "้’ฅๅŒ™ๅ’Œๆˆฟ้—ด")

    There are N rooms and you start in room 0.  Each room has a distinct number in 0, 1, 2, ..., N-1, and each room may have some keys to access the next room. 

    diff --git a/problems/kill-process/README.md b/problems/kill-process/README.md index 900076d52..5b6be6ce7 100644 --- a/problems/kill-process/README.md +++ b/problems/kill-process/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/delete-operation-for-two-strings "Delete Operation for Two Strings") -## 582. Kill Process (Medium) +## [582. Kill Process (Medium)](https://leetcode.com/problems/kill-process "ๆ€ๆญป่ฟ›็จ‹")

    Given n processes, each process has a unique PID (process id) and its PPID (parent process id). diff --git a/problems/knight-dialer/README.md b/problems/knight-dialer/README.md index 6e6848b47..f6deb9d5b 100644 --- a/problems/knight-dialer/README.md +++ b/problems/knight-dialer/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/stamping-the-sequence "Stamping The Sequence") -## 935. Knight Dialer (Medium) +## [935. Knight Dialer (Medium)](https://leetcode.com/problems/knight-dialer "้ช‘ๅฃซๆ‹จๅทๅ™จ")

    A chess knight can move as indicated in the chess diagram below:

    diff --git a/problems/knight-probability-in-chessboard/README.md b/problems/knight-probability-in-chessboard/README.md index 64aec122d..107cb01d1 100644 --- a/problems/knight-probability-in-chessboard/README.md +++ b/problems/knight-probability-in-chessboard/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-sum-of-3-non-overlapping-subarrays "Maximum Sum of 3 Non-Overlapping Subarrays") -## 688. Knight Probability in Chessboard (Medium) +## [688. Knight Probability in Chessboard (Medium)](https://leetcode.com/problems/knight-probability-in-chessboard "โ€œ้ฉฌโ€ๅœจๆฃ‹็›˜ไธŠ็š„ๆฆ‚็އ")

    On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts to make exactly K moves. The rows and columns are 0 indexed, so the top-left square is (0, 0), and the bottom-right square is (N-1, N-1).

    diff --git a/problems/koko-eating-bananas/README.md b/problems/koko-eating-bananas/README.md index 12a3d4765..1d6dba0f0 100644 --- a/problems/koko-eating-bananas/README.md +++ b/problems/koko-eating-bananas/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/middle-of-the-linked-list "Middle of the Linked List") -## 875. Koko Eating Bananas (Medium) +## [875. Koko Eating Bananas (Medium)](https://leetcode.com/problems/koko-eating-bananas "็ˆฑๅƒ้ฆ™่•‰็š„็‚็‚")

    Koko loves to eat bananas.  There are N piles of bananas, the i-th pile has piles[i] bananas.  The guards have gone and will come back in H hours.

    diff --git a/problems/kth-largest-element-in-a-stream/README.md b/problems/kth-largest-element-in-a-stream/README.md index dcbcbb37c..5aa77bc9c 100644 --- a/problems/kth-largest-element-in-a-stream/README.md +++ b/problems/kth-largest-element-in-a-stream/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-search "Binary Search") -## 703. Kth Largest Element in a Stream (Easy) +## [703. Kth Largest Element in a Stream (Easy)](https://leetcode.com/problems/kth-largest-element-in-a-stream "ๆ•ฐๆฎๆตไธญ็š„็ฌฌKๅคงๅ…ƒ็ด ")

    Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element.

    diff --git a/problems/kth-largest-element-in-an-array/README.md b/problems/kth-largest-element-in-an-array/README.md index 1086c5da9..301b0c4d3 100644 --- a/problems/kth-largest-element-in-an-array/README.md +++ b/problems/kth-largest-element-in-an-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/combination-sum-iii "Combination Sum III") -## 215. Kth Largest Element in an Array (Medium) +## [215. Kth Largest Element in an Array (Medium)](https://leetcode.com/problems/kth-largest-element-in-an-array "ๆ•ฐ็ป„ไธญ็š„็ฌฌKไธชๆœ€ๅคงๅ…ƒ็ด ")

    Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.

    diff --git a/problems/kth-smallest-element-in-a-bst/README.md b/problems/kth-smallest-element-in-a-bst/README.md index bc7c1b933..9800e1247 100644 --- a/problems/kth-smallest-element-in-a-bst/README.md +++ b/problems/kth-smallest-element-in-a-bst/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/power-of-two "Power of Two") -## 230. Kth Smallest Element in a BST (Medium) +## [230. Kth Smallest Element in a BST (Medium)](https://leetcode.com/problems/kth-smallest-element-in-a-bst "ไบŒๅ‰ๆœ็ดขๆ ‘ไธญ็ฌฌKๅฐ็š„ๅ…ƒ็ด ")

    Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.

    diff --git a/problems/kth-smallest-element-in-a-sorted-matrix/README.md b/problems/kth-smallest-element-in-a-sorted-matrix/README.md index bd773fbed..51d45f218 100644 --- a/problems/kth-smallest-element-in-a-sorted-matrix/README.md +++ b/problems/kth-smallest-element-in-a-sorted-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-phone-directory "Design Phone Directory") -## 378. Kth Smallest Element in a Sorted Matrix (Medium) +## [378. Kth Smallest Element in a Sorted Matrix (Medium)](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix "ๆœ‰ๅบ็Ÿฉ้˜ตไธญ็ฌฌKๅฐ็š„ๅ…ƒ็ด ")

    Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix.

    diff --git a/problems/kth-smallest-number-in-multiplication-table/README.md b/problems/kth-smallest-number-in-multiplication-table/README.md index 631eb2857..6711926e3 100644 --- a/problems/kth-smallest-number-in-multiplication-table/README.md +++ b/problems/kth-smallest-number-in-multiplication-table/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/trim-a-binary-search-tree "Trim a Binary Search Tree") -## 668. Kth Smallest Number in Multiplication Table (Hard) +## [668. Kth Smallest Number in Multiplication Table (Hard)](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table "ไน˜ๆณ•่กจไธญ็ฌฌkๅฐ็š„ๆ•ฐ")

    Nearly every one have used the Multiplication Table. But could you find out the k-th smallest number quickly from the multiplication table? diff --git a/problems/largest-1-bordered-square/README.md b/problems/largest-1-bordered-square/README.md index c59d8c8cb..9bce2275a 100644 --- a/problems/largest-1-bordered-square/README.md +++ b/problems/largest-1-bordered-square/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/stone-game-ii "Stone Game II") -## 1139. Largest 1-Bordered Square (Medium) +## [1139. Largest 1-Bordered Square (Medium)](https://leetcode.com/problems/largest-1-bordered-square "ๆœ€ๅคง็š„ไปฅ 1 ไธบ่พน็•Œ็š„ๆญฃๆ–นๅฝข")

    Given a 2D grid of 0s and 1s, return the number of elements in the largest square subgrid that has all 1s on its border, or 0 if such a subgrid doesn't exist in the grid.

    diff --git a/problems/largest-bst-subtree/README.md b/problems/largest-bst-subtree/README.md index 1fecad7d6..315243c47 100644 --- a/problems/largest-bst-subtree/README.md +++ b/problems/largest-bst-subtree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/increasing-triplet-subsequence "Increasing Triplet Subsequence") -## 333. Largest BST Subtree (Medium) +## [333. Largest BST Subtree (Medium)](https://leetcode.com/problems/largest-bst-subtree "ๆœ€ๅคง BST ๅญๆ ‘") diff --git a/problems/largest-component-size-by-common-factor/README.md b/problems/largest-component-size-by-common-factor/README.md index c956768e5..f30b527f9 100644 --- a/problems/largest-component-size-by-common-factor/README.md +++ b/problems/largest-component-size-by-common-factor/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/verifying-an-alien-dictionary "Verifying an Alien Dictionary") -## 952. Largest Component Size by Common Factor (Hard) +## [952. Largest Component Size by Common Factor (Hard)](https://leetcode.com/problems/largest-component-size-by-common-factor "ๆŒ‰ๅ…ฌๅ› ๆ•ฐ่ฎก็ฎ—ๆœ€ๅคง็ป„ไปถๅคงๅฐ")

    Given a non-empty array of unique positive integers A, consider the following graph:

    diff --git a/problems/largest-divisible-subset/README.md b/problems/largest-divisible-subset/README.md index fbfdf389d..802b0b65e 100644 --- a/problems/largest-divisible-subset/README.md +++ b/problems/largest-divisible-subset/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/plus-one-linked-list "Plus One Linked List") -## 368. Largest Divisible Subset (Medium) +## [368. Largest Divisible Subset (Medium)](https://leetcode.com/problems/largest-divisible-subset "ๆœ€ๅคงๆ•ด้™คๅญ้›†")

    Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies:

    diff --git a/problems/largest-number-at-least-twice-of-others/README.md b/problems/largest-number-at-least-twice-of-others/README.md index 2be1375ab..661744bae 100644 --- a/problems/largest-number-at-least-twice-of-others/README.md +++ b/problems/largest-number-at-least-twice-of-others/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-completing-word "Shortest Completing Word") -## 747. Largest Number At Least Twice of Others (Easy) +## [747. Largest Number At Least Twice of Others (Easy)](https://leetcode.com/problems/largest-number-at-least-twice-of-others "่‡ณๅฐ‘ๆ˜ฏๅ…ถไป–ๆ•ฐๅญ—ไธคๅ€็š„ๆœ€ๅคงๆ•ฐ")

    In a given integer array nums, there is always exactly one largest element.

    diff --git a/problems/largest-number/README.md b/problems/largest-number/README.md index 004931bbc..ba5e7c7ac 100644 --- a/problems/largest-number/README.md +++ b/problems/largest-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/consecutive-numbers "Consecutive Numbers") -## 179. Largest Number (Medium) +## [179. Largest Number (Medium)](https://leetcode.com/problems/largest-number "ๆœ€ๅคงๆ•ฐ")

    Given a list of non negative integers, arrange them such that they form the largest number.

    diff --git a/problems/largest-palindrome-product/README.md b/problems/largest-palindrome-product/README.md index f3ce6aea2..55aa3844c 100644 --- a/problems/largest-palindrome-product/README.md +++ b/problems/largest-palindrome-product/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sliding-window-median "Sliding Window Median") -## 479. Largest Palindrome Product (Hard) +## [479. Largest Palindrome Product (Hard)](https://leetcode.com/problems/largest-palindrome-product "ๆœ€ๅคงๅ›žๆ–‡ๆ•ฐไน˜็งฏ")

    Find the largest palindrome made from the product of two n-digit numbers.

    diff --git a/problems/largest-perimeter-triangle/README.md b/problems/largest-perimeter-triangle/README.md index f3ac5fcf3..f36682e64 100644 --- a/problems/largest-perimeter-triangle/README.md +++ b/problems/largest-perimeter-triangle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/squares-of-a-sorted-array "Squares of a Sorted Array") -## 976. Largest Perimeter Triangle (Easy) +## [976. Largest Perimeter Triangle (Easy)](https://leetcode.com/problems/largest-perimeter-triangle "ไธ‰่ง’ๅฝข็š„ๆœ€ๅคงๅ‘จ้•ฟ")

    Given an array A of positive lengths, return the largest perimeter of a triangle with non-zero area, formed from 3 of these lengths.

    diff --git a/problems/largest-plus-sign/README.md b/problems/largest-plus-sign/README.md index 3968edab9..65668f2f3 100644 --- a/problems/largest-plus-sign/README.md +++ b/problems/largest-plus-sign/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/couples-holding-hands "Couples Holding Hands") -## 764. Largest Plus Sign (Medium) +## [764. Largest Plus Sign (Medium)](https://leetcode.com/problems/largest-plus-sign "ๆœ€ๅคงๅŠ ๅทๆ ‡ๅฟ—")

    In a 2D grid from (0, 0) to (N-1, N-1), every cell contains a 1, except those cells in the given list mines which are 0. What is the largest axis-aligned plus sign of 1s contained in the grid? Return the order of the plus sign. If there is none, return 0. diff --git a/problems/largest-rectangle-in-histogram/README.md b/problems/largest-rectangle-in-histogram/README.md index fa437f533..f9f7a7bf8 100644 --- a/problems/largest-rectangle-in-histogram/README.md +++ b/problems/largest-rectangle-in-histogram/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximal-rectangle "Maximal Rectangle") -## 84. Largest Rectangle in Histogram (Hard) +## [84. Largest Rectangle in Histogram (Hard)](https://leetcode.com/problems/largest-rectangle-in-histogram "ๆŸฑ็Šถๅ›พไธญๆœ€ๅคง็š„็Ÿฉๅฝข")

    Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.

    diff --git a/problems/largest-sum-of-averages/README.md b/problems/largest-sum-of-averages/README.md index 49b204694..f2ca7d91f 100644 --- a/problems/largest-sum-of-averages/README.md +++ b/problems/largest-sum-of-averages/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-pruning "Binary Tree Pruning") -## 813. Largest Sum of Averages (Medium) +## [813. Largest Sum of Averages (Medium)](https://leetcode.com/problems/largest-sum-of-averages "ๆœ€ๅคงๅนณๅ‡ๅ€ผๅ’Œ็š„ๅˆ†็ป„")

    We partition a row of numbers A into at most K adjacent (non-empty) groups, then our score is the sum of the average of each group. What is the largest score we can achieve?

    diff --git a/problems/largest-time-for-given-digits/README.md b/problems/largest-time-for-given-digits/README.md index a2e8ed63d..3a799ce67 100644 --- a/problems/largest-time-for-given-digits/README.md +++ b/problems/largest-time-for-given-digits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reveal-cards-in-increasing-order "Reveal Cards In Increasing Order") -## 949. Largest Time for Given Digits (Easy) +## [949. Largest Time for Given Digits (Easy)](https://leetcode.com/problems/largest-time-for-given-digits "็ป™ๅฎšๆ•ฐๅญ—่ƒฝ็ป„ๆˆ็š„ๆœ€ๅคงๆ—ถ้—ด")

    Given an array of 4 digits, return the largest 24 hour time that can be made.

    diff --git a/problems/largest-triangle-area/README.md b/problems/largest-triangle-area/README.md index 3939afb55..b8158ebab 100644 --- a/problems/largest-triangle-area/README.md +++ b/problems/largest-triangle-area/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-sum-of-averages "Largest Sum of Averages") -## 812. Largest Triangle Area (Easy) +## [812. Largest Triangle Area (Easy)](https://leetcode.com/problems/largest-triangle-area "ๆœ€ๅคงไธ‰่ง’ๅฝข้ข็งฏ")

    You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the points.

    diff --git a/problems/largest-unique-number/README.md b/problems/largest-unique-number/README.md index ea26f3b3e..3e089e9b5 100644 --- a/problems/largest-unique-number/README.md +++ b/problems/largest-unique-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/armstrong-number "Armstrong Number") -## 1133. Largest Unique Number (Easy) +## [1133. Largest Unique Number (Easy)](https://leetcode.com/problems/largest-unique-number "ๆœ€ๅคงๅ”ฏไธ€ๆ•ฐ") diff --git a/problems/largest-values-from-labels/README.md b/problems/largest-values-from-labels/README.md index 625c5cdb3..756d02405 100644 --- a/problems/largest-values-from-labels/README.md +++ b/problems/largest-values-from-labels/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-path-in-binary-matrix "Shortest Path in Binary Matrix") -## 1090. Largest Values From Labels (Medium) +## [1090. Largest Values From Labels (Medium)](https://leetcode.com/problems/largest-values-from-labels "ๅ—ๆ ‡็ญพๅฝฑๅ“็š„ๆœ€ๅคงๅ€ผ")

    We have a set of items: the i-th item has value values[i] and label labels[i].

    diff --git a/problems/last-stone-weight-ii/README.md b/problems/last-stone-weight-ii/README.md index 418eb9cf0..2d1469310 100644 --- a/problems/last-stone-weight-ii/README.md +++ b/problems/last-stone-weight-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/actors-and-directors-who-cooperated-at-least-three-times "Actors and Directors Who Cooperated At Least Three Times") -## 1049. Last Stone Weight II (Medium) +## [1049. Last Stone Weight II (Medium)](https://leetcode.com/problems/last-stone-weight-ii "ๆœ€ๅŽไธ€ๅ—็Ÿณๅคด็š„้‡้‡ II")

    We have a collection of rocks, each rock has a positive integer weight.

    diff --git a/problems/last-stone-weight/README.md b/problems/last-stone-weight/README.md index e9a08f64a..0964d5b57 100644 --- a/problems/last-stone-weight/README.md +++ b/problems/last-stone-weight/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-all-adjacent-duplicates-in-string "Remove All Adjacent Duplicates In String") -## 1046. Last Stone Weight (Easy) +## [1046. Last Stone Weight (Easy)](https://leetcode.com/problems/last-stone-weight "ๆœ€ๅŽไธ€ๅ—็Ÿณๅคด็š„้‡้‡")

    We have a collection of rocks, each rock has a positive integer weight.

    diff --git a/problems/last-substring-in-lexicographical-order/README.md b/problems/last-substring-in-lexicographical-order/README.md index 182bb6ecc..cff2004a5 100644 --- a/problems/last-substring-in-lexicographical-order/README.md +++ b/problems/last-substring-in-lexicographical-order/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/product-price-at-a-given-date "Product Price at a Given Date") -## 1163. Last Substring in Lexicographical Order (Hard) +## [1163. Last Substring in Lexicographical Order (Hard)](https://leetcode.com/problems/last-substring-in-lexicographical-order "ๆŒ‰ๅญ—ๅ…ธๅบๆŽ’ๅœจๆœ€ๅŽ็š„ๅญไธฒ")

    Given a string s, return the last substring of s in lexicographical order.

    diff --git a/problems/leaf-similar-trees/README.md b/problems/leaf-similar-trees/README.md index 793ea25bd..f19aeff35 100644 --- a/problems/leaf-similar-trees/README.md +++ b/problems/leaf-similar-trees/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/length-of-longest-fibonacci-subsequence "Length of Longest Fibonacci Subsequence") -## 872. Leaf-Similar Trees (Easy) +## [872. Leaf-Similar Trees (Easy)](https://leetcode.com/problems/leaf-similar-trees "ๅถๅญ็›ธไผผ็š„ๆ ‘")

    Consider all the leaves of a binary tree.  From left to right order, the values of those leaves form a leaf value sequence.

    diff --git a/problems/least-operators-to-express-number/README.md b/problems/least-operators-to-express-number/README.md index 246d3703a..29ca8ddc9 100644 --- a/problems/least-operators-to-express-number/README.md +++ b/problems/least-operators-to-express-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/univalued-binary-tree "Univalued Binary Tree") -## 964. Least Operators to Express Number (Hard) +## [964. Least Operators to Express Number (Hard)](https://leetcode.com/problems/least-operators-to-express-number "่กจ็คบๆ•ฐๅญ—็š„ๆœ€ๅฐ‘่ฟ็ฎ—็ฌฆ")

    Given a single positive integer x, we will write an expression of the form x (op1) x (op2) x (op3) x ... where each operator op1, op2, etc. is either addition, subtraction, multiplication, or division (+, -, *, or /).  For example, with x = 3, we might write 3 * 3 / 3 + 3 - 3 which is a value of 3.

    diff --git a/problems/lemonade-change/README.md b/problems/lemonade-change/README.md index dce20bf3f..7f8959e1f 100644 --- a/problems/lemonade-change/README.md +++ b/problems/lemonade-change/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/score-after-flipping-matrix "Score After Flipping Matrix") -## 860. Lemonade Change (Easy) +## [860. Lemonade Change (Easy)](https://leetcode.com/problems/lemonade-change "ๆŸ ๆชฌๆฐดๆ‰พ้›ถ")

    At a lemonade stand, each lemonade costs $5

    diff --git a/problems/length-of-last-word/README.md b/problems/length-of-last-word/README.md index 3c46357a0..60594f868 100644 --- a/problems/length-of-last-word/README.md +++ b/problems/length-of-last-word/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/spiral-matrix-ii "Spiral Matrix II") -## 58. Length of Last Word (Easy) +## [58. Length of Last Word (Easy)](https://leetcode.com/problems/length-of-last-word "ๆœ€ๅŽไธ€ไธชๅ•่ฏ็š„้•ฟๅบฆ")

    Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.

    diff --git a/problems/length-of-longest-fibonacci-subsequence/README.md b/problems/length-of-longest-fibonacci-subsequence/README.md index 66ca04ef2..bb1269950 100644 --- a/problems/length-of-longest-fibonacci-subsequence/README.md +++ b/problems/length-of-longest-fibonacci-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/walking-robot-simulation "Walking Robot Simulation") -## 873. Length of Longest Fibonacci Subsequence (Medium) +## [873. Length of Longest Fibonacci Subsequence (Medium)](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence "ๆœ€้•ฟ็š„ๆ–ๆณข้‚ฃๅฅ‘ๅญๅบๅˆ—็š„้•ฟๅบฆ")

    A sequence X_1, X_2, ..., X_n is fibonacci-like if:

    diff --git a/problems/letter-case-permutation/README.md b/problems/letter-case-permutation/README.md index 3d01a9aa7..369445ac3 100644 --- a/problems/letter-case-permutation/README.md +++ b/problems/letter-case-permutation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/is-graph-bipartite "Is Graph Bipartite?") -## 784. Letter Case Permutation (Easy) +## [784. Letter Case Permutation (Easy)](https://leetcode.com/problems/letter-case-permutation "ๅญ—ๆฏๅคงๅฐๅ†™ๅ…จๆŽ’ๅˆ—")

    Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string.  Return a list of all possible strings we could create.

    diff --git a/problems/letter-combinations-of-a-phone-number/README.md b/problems/letter-combinations-of-a-phone-number/README.md index d04ad14df..2263594d0 100644 --- a/problems/letter-combinations-of-a-phone-number/README.md +++ b/problems/letter-combinations-of-a-phone-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/4sum "4Sum") -## 17. Letter Combinations of a Phone Number (Medium) +## [17. Letter Combinations of a Phone Number (Medium)](https://leetcode.com/problems/letter-combinations-of-a-phone-number "็”ต่ฏๅท็ ็š„ๅญ—ๆฏ็ป„ๅˆ")

    Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent.

    diff --git a/problems/letter-tile-possibilities/README.md b/problems/letter-tile-possibilities/README.md index e3bec1f48..5e6fbeed4 100644 --- a/problems/letter-tile-possibilities/README.md +++ b/problems/letter-tile-possibilities/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/insufficient-nodes-in-root-to-leaf-paths "Insufficient Nodes in Root to Leaf Paths") -## 1079. Letter Tile Possibilities (Medium) +## [1079. Letter Tile Possibilities (Medium)](https://leetcode.com/problems/letter-tile-possibilities "ๆดปๅญ—ๅฐๅˆท")

    You have a set of tiles, where each tile has one letter tiles[i] printed on it.  Return the number of possible non-empty sequences of letters you can make.

    diff --git a/problems/lexicographical-numbers/README.md b/problems/lexicographical-numbers/README.md index 4a5e38d38..33592c273 100644 --- a/problems/lexicographical-numbers/README.md +++ b/problems/lexicographical-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/first-unique-character-in-a-string "First Unique Character in a String") -## 386. Lexicographical Numbers (Medium) +## [386. Lexicographical Numbers (Medium)](https://leetcode.com/problems/lexicographical-numbers "ๅญ—ๅ…ธๅบๆŽ’ๆ•ฐ")

    Given an integer n, return 1 - n in lexicographical order.

    diff --git a/problems/lexicographically-smallest-equivalent-string/README.md b/problems/lexicographically-smallest-equivalent-string/README.md index f594fba0b..dd6a66f52 100644 --- a/problems/lexicographically-smallest-equivalent-string/README.md +++ b/problems/lexicographically-smallest-equivalent-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-repeating-substring "Longest Repeating Substring") -## 1061. Lexicographically Smallest Equivalent String (Medium) +## [1061. Lexicographically Smallest Equivalent String (Medium)](https://leetcode.com/problems/lexicographically-smallest-equivalent-string "ๆŒ‰ๅญ—ๅ…ธๅบๆŽ’ๅˆ—ๆœ€ๅฐ็š„็ญ‰ๆ•ˆๅญ—็ฌฆไธฒ")

    Given strings A and B of the same length, we say A[i] and B[i] are equivalent characters. For example, if A = "abc" and B = "cde", then we have 'a' == 'c', 'b' == 'd', 'c' == 'e'.

    diff --git a/problems/lfu-cache/README.md b/problems/lfu-cache/README.md index 602073593..3b5b080ad 100644 --- a/problems/lfu-cache/README.md +++ b/problems/lfu-cache/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/hamming-distance "Hamming Distance") -## 460. LFU Cache (Hard) +## [460. LFU Cache (Hard)](https://leetcode.com/problems/lfu-cache "LFU็ผ“ๅญ˜")

    Design and implement a data structure for Least Frequently Used (LFU) cache. It should support the following operations: get and put.

    diff --git a/problems/license-key-formatting/README.md b/problems/license-key-formatting/README.md index 8c6db0ee4..c079a5f43 100644 --- a/problems/license-key-formatting/README.md +++ b/problems/license-key-formatting/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-good-base "Smallest Good Base") -## 482. License Key Formatting (Easy) +## [482. License Key Formatting (Easy)](https://leetcode.com/problems/license-key-formatting "ๅฏ†้’ฅๆ ผๅผๅŒ–")

    You are given a license key represented as a string S which consists only alphanumeric character and dashes. The string is separated into N+1 groups by N dashes.

    diff --git a/problems/line-reflection/README.md b/problems/line-reflection/README.md index d2bb80c2f..2e0b104bc 100644 --- a/problems/line-reflection/README.md +++ b/problems/line-reflection/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-numbers-with-unique-digits "Count Numbers with Unique Digits") -## 356. Line Reflection (Medium) +## [356. Line Reflection (Medium)](https://leetcode.com/problems/line-reflection "็›ด็บฟ้•œๅƒ") diff --git a/problems/linked-list-components/README.md b/problems/linked-list-components/README.md index 358a94756..84a14dde1 100644 --- a/problems/linked-list-components/README.md +++ b/problems/linked-list-components/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/race-car "Race Car") -## 817. Linked List Components (Medium) +## [817. Linked List Components (Medium)](https://leetcode.com/problems/linked-list-components "้“พ่กจ็ป„ไปถ")

    We are given head, the head node of a linked list containing unique integer values.

    diff --git a/problems/linked-list-cycle-ii/README.md b/problems/linked-list-cycle-ii/README.md index a3471dd50..03f237f05 100644 --- a/problems/linked-list-cycle-ii/README.md +++ b/problems/linked-list-cycle-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reorder-list "Reorder List") -## 142. Linked List Cycle II (Medium) +## [142. Linked List Cycle II (Medium)](https://leetcode.com/problems/linked-list-cycle-ii "็Žฏๅฝข้“พ่กจ II")

    Given a linked list, return the node where the cycle begins. If there is no cycle, return null.

    diff --git a/problems/linked-list-cycle/README.md b/problems/linked-list-cycle/README.md index 2cbe76379..28f75ed36 100644 --- a/problems/linked-list-cycle/README.md +++ b/problems/linked-list-cycle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/linked-list-cycle-ii "Linked List Cycle II") -## 141. Linked List Cycle (Easy) +## [141. Linked List Cycle (Easy)](https://leetcode.com/problems/linked-list-cycle "็Žฏๅฝข้“พ่กจ")

    Given a linked list, determine if it has a cycle in it.

    diff --git a/problems/linked-list-random-node/README.md b/problems/linked-list-random-node/README.md index 4a1af5b53..d07b720db 100644 --- a/problems/linked-list-random-node/README.md +++ b/problems/linked-list-random-node/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/ransom-note "Ransom Note") -## 382. Linked List Random Node (Medium) +## [382. Linked List Random Node (Medium)](https://leetcode.com/problems/linked-list-random-node "้“พ่กจ้šๆœบ่Š‚็‚น")

    Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen.

    diff --git a/problems/logger-rate-limiter/README.md b/problems/logger-rate-limiter/README.md index 8817c48d6..59e313e1f 100644 --- a/problems/logger-rate-limiter/README.md +++ b/problems/logger-rate-limiter/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sort-transformed-array "Sort Transformed Array") -## 359. Logger Rate Limiter (Easy) +## [359. Logger Rate Limiter (Easy)](https://leetcode.com/problems/logger-rate-limiter "ๆ—ฅๅฟ—้€Ÿ็އ้™ๅˆถๅ™จ") diff --git a/problems/lonely-pixel-i/README.md b/problems/lonely-pixel-i/README.md index 0e5e64809..061a70013 100644 --- a/problems/lonely-pixel-i/README.md +++ b/problems/lonely-pixel-i/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/k-diff-pairs-in-an-array "K-diff Pairs in an Array") -## 531. Lonely Pixel I (Medium) +## [531. Lonely Pixel I (Medium)](https://leetcode.com/problems/lonely-pixel-i "ๅญค็‹ฌๅƒ็ด  I") diff --git a/problems/lonely-pixel-ii/README.md b/problems/lonely-pixel-ii/README.md index b8649988f..d5a5e49ac 100644 --- a/problems/lonely-pixel-ii/README.md +++ b/problems/lonely-pixel-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/game-play-analysis-iii "Game Play Analysis III") -## 533. Lonely Pixel II (Medium) +## [533. Lonely Pixel II (Medium)](https://leetcode.com/problems/lonely-pixel-ii "ๅญค็‹ฌๅƒ็ด  II") diff --git a/problems/long-pressed-name/README.md b/problems/long-pressed-name/README.md index abc127cdd..0838ab7b2 100644 --- a/problems/long-pressed-name/README.md +++ b/problems/long-pressed-name/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flip-string-to-monotone-increasing "Flip String to Monotone Increasing") -## 925. Long Pressed Name (Easy) +## [925. Long Pressed Name (Easy)](https://leetcode.com/problems/long-pressed-name "้•ฟๆŒ‰้”ฎๅ…ฅ")

    Your friend is typing his name into a keyboard.  Sometimes, when typing a character c, the key might get long pressed, and the character will be typed 1 or more times.

    diff --git a/problems/longest-absolute-file-path/README.md b/problems/longest-absolute-file-path/README.md index c026b6fdc..c48e640c3 100644 --- a/problems/longest-absolute-file-path/README.md +++ b/problems/longest-absolute-file-path/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-the-difference "Find the Difference") -## 388. Longest Absolute File Path (Medium) +## [388. Longest Absolute File Path (Medium)](https://leetcode.com/problems/longest-absolute-file-path "ๆ–‡ไปถ็š„ๆœ€้•ฟ็ปๅฏน่ทฏๅพ„")

    Suppose we abstract our file system by a string in the following manner:

    diff --git a/problems/longest-arithmetic-sequence/README.md b/problems/longest-arithmetic-sequence/README.md index 03f94f2ab..c3f2000bf 100644 --- a/problems/longest-arithmetic-sequence/README.md +++ b/problems/longest-arithmetic-sequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/recover-a-tree-from-preorder-traversal "Recover a Tree From Preorder Traversal") -## 1027. Longest Arithmetic Sequence (Medium) +## [1027. Longest Arithmetic Sequence (Medium)](https://leetcode.com/problems/longest-arithmetic-sequence "ๆœ€้•ฟ็ญ‰ๅทฎๆ•ฐๅˆ—")

    Given an array A of integers, return the length of the longest arithmetic subsequence in A.

    diff --git a/problems/longest-chunked-palindrome-decomposition/README.md b/problems/longest-chunked-palindrome-decomposition/README.md index 5f3af3b97..9503cefe3 100644 --- a/problems/longest-chunked-palindrome-decomposition/README.md +++ b/problems/longest-chunked-palindrome-decomposition/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/article-views-i "Article Views I") -## 1147. Longest Chunked Palindrome Decomposition (Hard) +## [1147. Longest Chunked Palindrome Decomposition (Hard)](https://leetcode.com/problems/longest-chunked-palindrome-decomposition "ๆฎตๅผๅ›žๆ–‡")

    Return the largest possible k such that there exists a_1, a_2, ..., a_k such that:

    diff --git a/problems/longest-common-prefix/README.md b/problems/longest-common-prefix/README.md index 59194e101..a967ff200 100644 --- a/problems/longest-common-prefix/README.md +++ b/problems/longest-common-prefix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/3sum "3Sum") -## 14. Longest Common Prefix (Easy) +## [14. Longest Common Prefix (Easy)](https://leetcode.com/problems/longest-common-prefix "ๆœ€้•ฟๅ…ฌๅ…ฑๅ‰็ผ€")

    Write a function to find the longest common prefix string amongst an array of strings.

    diff --git a/problems/longest-common-subsequence/README.md b/problems/longest-common-subsequence/README.md index 965a19174..a3ae68e7d 100644 --- a/problems/longest-common-subsequence/README.md +++ b/problems/longest-common-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/decrease-elements-to-make-array-zigzag "Decrease Elements To Make Array Zigzag") -## 1143. Longest Common Subsequence (Medium) +## [1143. Longest Common Subsequence (Medium)](https://leetcode.com/problems/longest-common-subsequence "")

    Given two strings text1 and text2, return the length of their longest common subsequence.

    diff --git a/problems/longest-consecutive-sequence/README.md b/problems/longest-consecutive-sequence/README.md index 968ff8682..ca0a78204 100644 --- a/problems/longest-consecutive-sequence/README.md +++ b/problems/longest-consecutive-sequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-root-to-leaf-numbers "Sum Root to Leaf Numbers") -## 128. Longest Consecutive Sequence (Hard) +## [128. Longest Consecutive Sequence (Hard)](https://leetcode.com/problems/longest-consecutive-sequence "ๆœ€้•ฟ่ฟž็ปญๅบๅˆ—")

    Given an unsorted array of integers, find the length of the longest consecutive elements sequence.

    diff --git a/problems/longest-continuous-increasing-subsequence/README.md b/problems/longest-continuous-increasing-subsequence/README.md index 15d71426f..959fa975d 100644 --- a/problems/longest-continuous-increasing-subsequence/README.md +++ b/problems/longest-continuous-increasing-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/cut-off-trees-for-golf-event "Cut Off Trees for Golf Event") -## 674. Longest Continuous Increasing Subsequence (Easy) +## [674. Longest Continuous Increasing Subsequence (Easy)](https://leetcode.com/problems/longest-continuous-increasing-subsequence "ๆœ€้•ฟ่ฟž็ปญ้€’ๅขžๅบๅˆ—")

    Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). diff --git a/problems/longest-duplicate-substring/README.md b/problems/longest-duplicate-substring/README.md index 43143c2a8..c457f590a 100644 --- a/problems/longest-duplicate-substring/README.md +++ b/problems/longest-duplicate-substring/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/customers-who-bought-all-products "Customers Who Bought All Products") -## 1044. Longest Duplicate Substring (Hard) +## [1044. Longest Duplicate Substring (Hard)](https://leetcode.com/problems/longest-duplicate-substring "ๆœ€้•ฟ้‡ๅคๅญไธฒ")

    Given a string S, consider all duplicated substrings: (contiguous) substrings of S that occur 2 or more times.  (The occurrences may overlap.)

    diff --git a/problems/longest-harmonious-subsequence/README.md b/problems/longest-harmonious-subsequence/README.md index 6767349e9..d6083ff37 100644 --- a/problems/longest-harmonious-subsequence/README.md +++ b/problems/longest-harmonious-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/big-countries "Big Countries") -## 594. Longest Harmonious Subsequence (Easy) +## [594. Longest Harmonious Subsequence (Easy)](https://leetcode.com/problems/longest-harmonious-subsequence "ๆœ€้•ฟๅ’Œ่ฐๅญๅบๅˆ—")

    We define a harmounious array as an array where the difference between its maximum value and its minimum value is exactly 1.

    diff --git a/problems/longest-increasing-path-in-a-matrix/README.md b/problems/longest-increasing-path-in-a-matrix/README.md index 756ea30f3..578a4eaed 100644 --- a/problems/longest-increasing-path-in-a-matrix/README.md +++ b/problems/longest-increasing-path-in-a-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/patching-array "Patching Array") -## 329. Longest Increasing Path in a Matrix (Hard) +## [329. Longest Increasing Path in a Matrix (Hard)](https://leetcode.com/problems/longest-increasing-path-in-a-matrix "็Ÿฉ้˜ตไธญ็š„ๆœ€้•ฟ้€’ๅขž่ทฏๅพ„")

    Given an integer matrix, find the length of the longest increasing path.

    diff --git a/problems/longest-increasing-subsequence/README.md b/problems/longest-increasing-subsequence/README.md index b9b12ef4f..8b05a5d47 100644 --- a/problems/longest-increasing-subsequence/README.md +++ b/problems/longest-increasing-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-invalid-parentheses "Remove Invalid Parentheses") -## 300. Longest Increasing Subsequence (Medium) +## [300. Longest Increasing Subsequence (Medium)](https://leetcode.com/problems/longest-increasing-subsequence "ๆœ€้•ฟไธŠๅ‡ๅญๅบๅˆ—")

    Given an unsorted array of integers, find the length of longest increasing subsequence.

    diff --git a/problems/longest-line-of-consecutive-one-in-matrix/README.md b/problems/longest-line-of-consecutive-one-in-matrix/README.md index 6413506aa..a81a80c81 100644 --- a/problems/longest-line-of-consecutive-one-in-matrix/README.md +++ b/problems/longest-line-of-consecutive-one-in-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-tilt "Binary Tree Tilt") -## 562. Longest Line of Consecutive One in Matrix (Medium) +## [562. Longest Line of Consecutive One in Matrix (Medium)](https://leetcode.com/problems/longest-line-of-consecutive-one-in-matrix "็Ÿฉ้˜ตไธญๆœ€้•ฟ็š„่ฟž็ปญ1็บฟๆฎต") diff --git a/problems/longest-mountain-in-array/README.md b/problems/longest-mountain-in-array/README.md index 9a799051a..b7492086f 100644 --- a/problems/longest-mountain-in-array/README.md +++ b/problems/longest-mountain-in-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/hand-of-straights "Hand of Straights") -## 845. Longest Mountain in Array (Medium) +## [845. Longest Mountain in Array (Medium)](https://leetcode.com/problems/longest-mountain-in-array "ๆ•ฐ็ป„ไธญ็š„ๆœ€้•ฟๅฑฑ่„‰")

    Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold:

    diff --git a/problems/longest-palindrome/README.md b/problems/longest-palindrome/README.md index 7c6e5a0ef..8056e0379 100644 --- a/problems/longest-palindrome/README.md +++ b/problems/longest-palindrome/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/split-array-largest-sum "Split Array Largest Sum") -## 409. Longest Palindrome (Easy) +## [409. Longest Palindrome (Easy)](https://leetcode.com/problems/longest-palindrome "ๆœ€้•ฟๅ›žๆ–‡ไธฒ")

    Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.

    diff --git a/problems/longest-palindromic-subsequence/README.md b/problems/longest-palindromic-subsequence/README.md index 8daaad62b..5f6f7f90c 100644 --- a/problems/longest-palindromic-subsequence/README.md +++ b/problems/longest-palindromic-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/super-washing-machines "Super Washing Machines") -## 516. Longest Palindromic Subsequence (Medium) +## [516. Longest Palindromic Subsequence (Medium)](https://leetcode.com/problems/longest-palindromic-subsequence "ๆœ€้•ฟๅ›žๆ–‡ๅญๅบๅˆ—")

    Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. diff --git a/problems/longest-palindromic-substring/README.md b/problems/longest-palindromic-substring/README.md index 823b0ebb1..d149237c7 100644 --- a/problems/longest-palindromic-substring/README.md +++ b/problems/longest-palindromic-substring/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/zigzag-conversion "ZigZag Conversion") -## 5. Longest Palindromic Substring (Medium) +## [5. Longest Palindromic Substring (Medium)](https://leetcode.com/problems/longest-palindromic-substring "ๆœ€้•ฟๅ›žๆ–‡ๅญไธฒ")

    Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.

    diff --git a/problems/longest-repeating-character-replacement/README.md b/problems/longest-repeating-character-replacement/README.md index 440ce5057..49dfbdf5a 100644 --- a/problems/longest-repeating-character-replacement/README.md +++ b/problems/longest-repeating-character-replacement/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-squares "Word Squares") -## 424. Longest Repeating Character Replacement (Medium) +## [424. Longest Repeating Character Replacement (Medium)](https://leetcode.com/problems/longest-repeating-character-replacement "ๆ›ฟๆขๅŽ็š„ๆœ€้•ฟ้‡ๅคๅญ—็ฌฆ")

    Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k times. Find the length of a longest substring containing all repeating letters you can get after performing the above operations.

    diff --git a/problems/longest-repeating-substring/README.md b/problems/longest-repeating-substring/README.md index 749ad30fe..177fab4f7 100644 --- a/problems/longest-repeating-substring/README.md +++ b/problems/longest-repeating-substring/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-valid-subarrays "Number of Valid Subarrays") -## 1062. Longest Repeating Substring (Medium) +## [1062. Longest Repeating Substring (Medium)](https://leetcode.com/problems/longest-repeating-substring "ๆœ€้•ฟ้‡ๅคๅญไธฒ")

    Given a string S, find out the length of the longest repeating substring(s). Return 0 if no repeating substring exists.

    diff --git a/problems/longest-string-chain/README.md b/problems/longest-string-chain/README.md index d47f1b14d..f6339dad6 100644 --- a/problems/longest-string-chain/README.md +++ b/problems/longest-string-chain/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/last-stone-weight-ii "Last Stone Weight II") -## 1048. Longest String Chain (Medium) +## [1048. Longest String Chain (Medium)](https://leetcode.com/problems/longest-string-chain "ๆœ€้•ฟๅญ—็ฌฆไธฒ้“พ")

    Given a list of words, each word consists of English lowercase letters.

    diff --git a/problems/longest-substring-with-at-least-k-repeating-characters/README.md b/problems/longest-substring-with-at-least-k-repeating-characters/README.md index 00ac4f646..cd701ca46 100644 --- a/problems/longest-substring-with-at-least-k-repeating-characters/README.md +++ b/problems/longest-substring-with-at-least-k-repeating-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rotate-function "Rotate Function") -## 395. Longest Substring with At Least K Repeating Characters (Medium) +## [395. Longest Substring with At Least K Repeating Characters (Medium)](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters "่‡ณๅฐ‘ๆœ‰Kไธช้‡ๅคๅญ—็ฌฆ็š„ๆœ€้•ฟๅญไธฒ")

    Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than k times. diff --git a/problems/longest-substring-with-at-most-k-distinct-characters/README.md b/problems/longest-substring-with-at-most-k-distinct-characters/README.md index 190b676e6..40382dc98 100644 --- a/problems/longest-substring-with-at-most-k-distinct-characters/README.md +++ b/problems/longest-substring-with-at-most-k-distinct-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flatten-nested-list-iterator "Flatten Nested List Iterator") -## 340. Longest Substring with At Most K Distinct Characters (Hard) +## [340. Longest Substring with At Most K Distinct Characters (Hard)](https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters "่‡ณๅคšๅŒ…ๅซ K ไธชไธๅŒๅญ—็ฌฆ็š„ๆœ€้•ฟๅญไธฒ") diff --git a/problems/longest-substring-with-at-most-two-distinct-characters/README.md b/problems/longest-substring-with-at-most-two-distinct-characters/README.md index 63bd78f70..92dcd96cd 100644 --- a/problems/longest-substring-with-at-most-two-distinct-characters/README.md +++ b/problems/longest-substring-with-at-most-two-distinct-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/intersection-of-two-linked-lists "Intersection of Two Linked Lists") -## 159. Longest Substring with At Most Two Distinct Characters (Hard) +## [159. Longest Substring with At Most Two Distinct Characters (Hard)](https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters "่‡ณๅคšๅŒ…ๅซไธคไธชไธๅŒๅญ—็ฌฆ็š„ๆœ€้•ฟๅญไธฒ")

    Given a string s , find the length of the longest substring t  that contains at most 2 distinct characters.

    diff --git a/problems/longest-substring-without-repeating-characters/README.md b/problems/longest-substring-without-repeating-characters/README.md index 135410965..f4832fa86 100644 --- a/problems/longest-substring-without-repeating-characters/README.md +++ b/problems/longest-substring-without-repeating-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/median-of-two-sorted-arrays "Median of Two Sorted Arrays") -## 3. Longest Substring Without Repeating Characters (Medium) +## [3. Longest Substring Without Repeating Characters (Medium)](https://leetcode.com/problems/longest-substring-without-repeating-characters "ๆ— ้‡ๅคๅญ—็ฌฆ็š„ๆœ€้•ฟๅญไธฒ")

    Given a string, find the length of the longest substring without repeating characters.

    diff --git a/problems/longest-turbulent-subarray/README.md b/problems/longest-turbulent-subarray/README.md index 7aad86ab2..6999719c7 100644 --- a/problems/longest-turbulent-subarray/README.md +++ b/problems/longest-turbulent-subarray/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/distribute-coins-in-binary-tree "Distribute Coins in Binary Tree") -## 978. Longest Turbulent Subarray (Medium) +## [978. Longest Turbulent Subarray (Medium)](https://leetcode.com/problems/longest-turbulent-subarray "ๆœ€้•ฟๆนๆตๅญๆ•ฐ็ป„")

    A subarray A[i], A[i+1], ..., A[j] of A is said to be turbulent if and only if:

    diff --git a/problems/longest-uncommon-subsequence-i/README.md b/problems/longest-uncommon-subsequence-i/README.md index 4178cd4d4..c251c18ec 100644 --- a/problems/longest-uncommon-subsequence-i/README.md +++ b/problems/longest-uncommon-subsequence-i/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-uncommon-subsequence-ii "Longest Uncommon Subsequence II") -## 521. Longest Uncommon Subsequence I (Easy) +## [521. Longest Uncommon Subsequence I (Easy)](https://leetcode.com/problems/longest-uncommon-subsequence-i "ๆœ€้•ฟ็‰นๆฎŠๅบๅˆ— โ… ")

    Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. diff --git a/problems/longest-uncommon-subsequence-ii/README.md b/problems/longest-uncommon-subsequence-ii/README.md index d85ac2f07..bf2f523dc 100644 --- a/problems/longest-uncommon-subsequence-ii/README.md +++ b/problems/longest-uncommon-subsequence-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/continuous-subarray-sum "Continuous Subarray Sum") -## 522. Longest Uncommon Subsequence II (Medium) +## [522. Longest Uncommon Subsequence II (Medium)](https://leetcode.com/problems/longest-uncommon-subsequence-ii "ๆœ€้•ฟ็‰นๆฎŠๅบๅˆ— II")

    Given a list of strings, you need to find the longest uncommon subsequence among them. The longest uncommon subsequence is defined as the longest subsequence of one of these strings and this subsequence should not be any subsequence of the other strings. diff --git a/problems/longest-univalue-path/README.md b/problems/longest-univalue-path/README.md index 09aa2c4be..c9e3b9d73 100644 --- a/problems/longest-univalue-path/README.md +++ b/problems/longest-univalue-path/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/knight-probability-in-chessboard "Knight Probability in Chessboard") -## 687. Longest Univalue Path (Easy) +## [687. Longest Univalue Path (Easy)](https://leetcode.com/problems/longest-univalue-path "ๆœ€้•ฟๅŒๅ€ผ่ทฏๅพ„")

    Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the root.

    diff --git a/problems/longest-valid-parentheses/README.md b/problems/longest-valid-parentheses/README.md index b2cfdbdd3..ace14c050 100644 --- a/problems/longest-valid-parentheses/README.md +++ b/problems/longest-valid-parentheses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/search-in-rotated-sorted-array "Search in Rotated Sorted Array") -## 32. Longest Valid Parentheses (Hard) +## [32. Longest Valid Parentheses (Hard)](https://leetcode.com/problems/longest-valid-parentheses "ๆœ€้•ฟๆœ‰ๆ•ˆๆ‹ฌๅท")

    Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.

    diff --git a/problems/longest-well-performing-interval/README.md b/problems/longest-well-performing-interval/README.md index c147f901a..ad598e7c2 100644 --- a/problems/longest-well-performing-interval/README.md +++ b/problems/longest-well-performing-interval/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-sufficient-team "Smallest Sufficient Team") -## 1124. Longest Well-Performing Interval (Medium) +## [1124. Longest Well-Performing Interval (Medium)](https://leetcode.com/problems/longest-well-performing-interval "่กจ็Žฐ่‰ฏๅฅฝ็š„ๆœ€้•ฟๆ—ถ้—ดๆฎต")

    We are given hours, a list of the number of hours worked per day for a given employee.

    diff --git a/problems/longest-word-in-dictionary-through-deleting/README.md b/problems/longest-word-in-dictionary-through-deleting/README.md index 1371a7a1f..7cbef0140 100644 --- a/problems/longest-word-in-dictionary-through-deleting/README.md +++ b/problems/longest-word-in-dictionary-through-deleting/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/contiguous-array "Contiguous Array") -## 524. Longest Word in Dictionary through Deleting (Medium) +## [524. Longest Word in Dictionary through Deleting (Medium)](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting "้€š่ฟ‡ๅˆ ้™คๅญ—ๆฏๅŒน้…ๅˆฐๅญ—ๅ…ธ้‡Œๆœ€้•ฟๅ•่ฏ")

    Given a string and a string dictionary, find the longest string in the dictionary that can be formed by deleting some characters of the given string. If there are more than one possible results, return the longest word with the smallest lexicographical order. If there is no possible result, return the empty string. diff --git a/problems/longest-word-in-dictionary/README.md b/problems/longest-word-in-dictionary/README.md index 33b79b0d5..de362edb5 100644 --- a/problems/longest-word-in-dictionary/README.md +++ b/problems/longest-word-in-dictionary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/accounts-merge "Accounts Merge") -## 720. Longest Word in Dictionary (Easy) +## [720. Longest Word in Dictionary (Easy)](https://leetcode.com/problems/longest-word-in-dictionary "่ฏๅ…ธไธญๆœ€้•ฟ็š„ๅ•่ฏ")

    Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other words in words. If there is more than one possible answer, return the longest word with the smallest lexicographical order.

    If there is no answer, return the empty string. diff --git a/problems/loud-and-rich/README.md b/problems/loud-and-rich/README.md index 4a6661605..45015c10c 100644 --- a/problems/loud-and-rich/README.md +++ b/problems/loud-and-rich/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/peak-index-in-a-mountain-array "Peak Index in a Mountain Array") -## 851. Loud and Rich (Medium) +## [851. Loud and Rich (Medium)](https://leetcode.com/problems/loud-and-rich "ๅ–ง้—นๅ’ŒๅฏŒๆœ‰")

    In a group of N people (labelled 0, 1, 2, ..., N-1), each person has different amounts of money, and different levels of quietness.

    diff --git a/problems/lowest-common-ancestor-of-a-binary-search-tree/README.md b/problems/lowest-common-ancestor-of-a-binary-search-tree/README.md index d3667bd76..52c875233 100644 --- a/problems/lowest-common-ancestor-of-a-binary-search-tree/README.md +++ b/problems/lowest-common-ancestor-of-a-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lowest-common-ancestor-of-a-binary-tree "Lowest Common Ancestor of a Binary Tree") -## 235. Lowest Common Ancestor of a Binary Search Tree (Easy) +## [235. Lowest Common Ancestor of a Binary Search Tree (Easy)](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree "ไบŒๅ‰ๆœ็ดขๆ ‘็š„ๆœ€่ฟ‘ๅ…ฌๅ…ฑ็ฅ–ๅ…ˆ")

    Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.

    diff --git a/problems/lowest-common-ancestor-of-a-binary-tree/README.md b/problems/lowest-common-ancestor-of-a-binary-tree/README.md index 6ff7bb6e7..0c238527d 100644 --- a/problems/lowest-common-ancestor-of-a-binary-tree/README.md +++ b/problems/lowest-common-ancestor-of-a-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/delete-node-in-a-linked-list "Delete Node in a Linked List") -## 236. Lowest Common Ancestor of a Binary Tree (Medium) +## [236. Lowest Common Ancestor of a Binary Tree (Medium)](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree "ไบŒๅ‰ๆ ‘็š„ๆœ€่ฟ‘ๅ…ฌๅ…ฑ็ฅ–ๅ…ˆ")

    Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.

    diff --git a/problems/lowest-common-ancestor-of-deepest-leaves/README.md b/problems/lowest-common-ancestor-of-deepest-leaves/README.md index 326c0ab2f..4b321a2a6 100644 --- a/problems/lowest-common-ancestor-of-deepest-leaves/README.md +++ b/problems/lowest-common-ancestor-of-deepest-leaves/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-well-performing-interval "Longest Well-Performing Interval") -## 1123. Lowest Common Ancestor of Deepest Leaves (Medium) +## [1123. Lowest Common Ancestor of Deepest Leaves (Medium)](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves "ๆœ€ๆทฑๅถ่Š‚็‚น็š„ๆœ€่ฟ‘ๅ…ฌๅ…ฑ็ฅ–ๅ…ˆ")

    Given a rooted binary tree, return the lowest common ancestor of its deepest leaves.

    diff --git a/problems/lru-cache/README.md b/problems/lru-cache/README.md index d8a65f255..d07901901 100644 --- a/problems/lru-cache/README.md +++ b/problems/lru-cache/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/insertion-sort-list "Insertion Sort List") -## 146. LRU Cache (Medium) +## [146. LRU Cache (Medium)](https://leetcode.com/problems/lru-cache "LRU็ผ“ๅญ˜ๆœบๅˆถ")

    Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put.

    diff --git a/problems/magic-squares-in-grid/README.md b/problems/magic-squares-in-grid/README.md index efd58558a..97b317ee3 100644 --- a/problems/magic-squares-in-grid/README.md +++ b/problems/magic-squares-in-grid/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/keys-and-rooms "Keys and Rooms") -## 840. Magic Squares In Grid (Easy) +## [840. Magic Squares In Grid (Easy)](https://leetcode.com/problems/magic-squares-in-grid "็Ÿฉ้˜ตไธญ็š„ๅนปๆ–น")

    A 3 x 3 magic square is a 3 x 3 grid filled with distinct numbers from 1 to 9 such that each row, column, and both diagonals all have the same sum.

    diff --git a/problems/magical-string/README.md b/problems/magical-string/README.md index 23cd68571..1cbf12567 100644 --- a/problems/magical-string/README.md +++ b/problems/magical-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/license-key-formatting "License Key Formatting") -## 481. Magical String (Medium) +## [481. Magical String (Medium)](https://leetcode.com/problems/magical-string "็ฅžๅฅ‡ๅญ—็ฌฆไธฒ")

    A magical string S consists of only '1' and '2' and obeys the following rules: diff --git a/problems/majority-element-ii/README.md b/problems/majority-element-ii/README.md index 0ce1f07fc..9a8c4e349 100644 --- a/problems/majority-element-ii/README.md +++ b/problems/majority-element-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/kth-smallest-element-in-a-bst "Kth Smallest Element in a BST") -## 229. Majority Element II (Medium) +## [229. Majority Element II (Medium)](https://leetcode.com/problems/majority-element-ii "ๆฑ‚ไผ—ๆ•ฐ II")

    Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times.

    diff --git a/problems/majority-element/README.md b/problems/majority-element/README.md index 4e8580167..d9ec695b2 100644 --- a/problems/majority-element/README.md +++ b/problems/majority-element/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/two-sum-iii-data-structure-design "Two Sum III - Data structure design") -## 169. Majority Element (Easy) +## [169. Majority Element (Easy)](https://leetcode.com/problems/majority-element "ๆฑ‚ไผ—ๆ•ฐ")

    Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.

    diff --git a/problems/make-array-strictly-increasing/README.md b/problems/make-array-strictly-increasing/README.md index 28f946d3d..3bc3acd3e 100644 --- a/problems/make-array-strictly-increasing/README.md +++ b/problems/make-array-strictly-increasing/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-bounded-blocking-queue "Design Bounded Blocking Queue") -## 1187. Make Array Strictly Increasing (Hard) +## [1187. Make Array Strictly Increasing (Hard)](https://leetcode.com/problems/make-array-strictly-increasing "ไฝฟๆ•ฐ็ป„ไธฅๆ ผ้€’ๅขž")

    Given two integer arrays arr1 and arr2, return the minimum number of operations (possibly zero) needed to make arr1 strictly increasing.

    diff --git a/problems/making-a-large-island/README.md b/problems/making-a-large-island/README.md index 6a8790000..e06c2dd47 100644 --- a/problems/making-a-large-island/README.md +++ b/problems/making-a-large-island/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-letter-string "Unique Letter String") -## 827. Making A Large Island (Hard) +## [827. Making A Large Island (Hard)](https://leetcode.com/problems/making-a-large-island "ๆœ€ๅคงไบบๅทฅๅฒ›")

    In a 2D grid of 0s and 1s, we change at most one 0 to a 1.

    diff --git a/problems/managers-with-at-least-5-direct-reports/README.md b/problems/managers-with-at-least-5-direct-reports/README.md index d54347df5..ea05e7977 100644 --- a/problems/managers-with-at-least-5-direct-reports/README.md +++ b/problems/managers-with-at-least-5-direct-reports/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-median-given-frequency-of-numbers "Find Median Given Frequency of Numbers") -## 570. Managers with at Least 5 Direct Reports (Medium) +## [570. Managers with at Least 5 Direct Reports (Medium)](https://leetcode.com/problems/managers-with-at-least-5-direct-reports "่‡ณๅฐ‘ๆœ‰5ๅ็›ดๆŽฅไธ‹ๅฑž็š„็ป็†")

    The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id.

    diff --git a/problems/map-sum-pairs/README.md b/problems/map-sum-pairs/README.md index cabae798a..1e7f3763c 100644 --- a/problems/map-sum-pairs/README.md +++ b/problems/map-sum-pairs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-parenthesis-string "Valid Parenthesis String") -## 677. Map Sum Pairs (Medium) +## [677. Map Sum Pairs (Medium)](https://leetcode.com/problems/map-sum-pairs "้”ฎๅ€ผๆ˜ ๅฐ„")

    Implement a MapSum class with insert, and sum methods. diff --git a/problems/market-analysis-i/README.md b/problems/market-analysis-i/README.md index dac596f58..164782fa9 100644 --- a/problems/market-analysis-i/README.md +++ b/problems/market-analysis-i/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/market-analysis-ii "Market Analysis II") -## 1158. Market Analysis I (Medium) +## [1158. Market Analysis I (Medium)](https://leetcode.com/problems/market-analysis-i "") diff --git a/problems/market-analysis-ii/README.md b/problems/market-analysis-ii/README.md index cc2a74113..4fede0242 100644 --- a/problems/market-analysis-ii/README.md +++ b/problems/market-analysis-ii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-words-that-can-be-formed-by-characters "Find Words That Can Be Formed by Characters") -## 1159. Market Analysis II (Hard) +## [1159. Market Analysis II (Hard)](https://leetcode.com/problems/market-analysis-ii "") diff --git a/problems/masking-personal-information/README.md b/problems/masking-personal-information/README.md index 3dea2124a..f65e421de 100644 --- a/problems/masking-personal-information/README.md +++ b/problems/masking-personal-information/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flipping-an-image "Flipping an Image") -## 831. Masking Personal Information (Medium) +## [831. Masking Personal Information (Medium)](https://leetcode.com/problems/masking-personal-information "้š่—ไธชไบบไฟกๆฏ")

    We are given a personal information string S, which may represent either an email address or a phone number.

    diff --git a/problems/matchsticks-to-square/README.md b/problems/matchsticks-to-square/README.md index fc850ae9a..dd98cf31e 100644 --- a/problems/matchsticks-to-square/README.md +++ b/problems/matchsticks-to-square/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/ones-and-zeroes "Ones and Zeroes") -## 473. Matchsticks to Square (Medium) +## [473. Matchsticks to Square (Medium)](https://leetcode.com/problems/matchsticks-to-square "็ซๆŸดๆ‹ผๆญฃๆ–นๅฝข")

    Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can make one square by using up all those matchsticks. You should not break any stick, but you can link them up, and each matchstick must be used exactly one time.

    diff --git a/problems/matrix-cells-in-distance-order/README.md b/problems/matrix-cells-in-distance-order/README.md index f8b238029..183665526 100644 --- a/problems/matrix-cells-in-distance-order/README.md +++ b/problems/matrix-cells-in-distance-order/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-sum-of-two-non-overlapping-subarrays "Maximum Sum of Two Non-Overlapping Subarrays") -## 1030. Matrix Cells in Distance Order (Easy) +## [1030. Matrix Cells in Distance Order (Easy)](https://leetcode.com/problems/matrix-cells-in-distance-order "่ท็ฆป้กบๅบๆŽ’ๅˆ—็Ÿฉ้˜ตๅ•ๅ…ƒๆ ผ")

    We are given a matrix with R rows and C columns has cells with integer coordinates (r, c), where 0 <= r < R and 0 <= c < C.

    diff --git a/problems/max-area-of-island/README.md b/problems/max-area-of-island/README.md index a327e92f9..4cc679aaa 100644 --- a/problems/max-area-of-island/README.md +++ b/problems/max-area-of-island/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-binary-substrings "Count Binary Substrings") -## 695. Max Area of Island (Medium) +## [695. Max Area of Island (Medium)](https://leetcode.com/problems/max-area-of-island "ๅฒ›ๅฑฟ็š„ๆœ€ๅคง้ข็งฏ")

    Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are surrounded by water.

    diff --git a/problems/max-chunks-to-make-sorted-ii/README.md b/problems/max-chunks-to-make-sorted-ii/README.md index 35cabd15f..30c310ece 100644 --- a/problems/max-chunks-to-make-sorted-ii/README.md +++ b/problems/max-chunks-to-make-sorted-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-chunks-to-make-sorted "Max Chunks To Make Sorted") -## 768. Max Chunks To Make Sorted II (Hard) +## [768. Max Chunks To Make Sorted II (Hard)](https://leetcode.com/problems/max-chunks-to-make-sorted-ii "ๆœ€ๅคš่ƒฝๅฎŒๆˆๆŽ’ๅบ็š„ๅ— II")

    This question is the same as "Max Chunks to Make Sorted" except the integers of the given array are not necessarily distinct, the input array could be up to length 2000, and the elements could be up to 10**8.

    diff --git a/problems/max-chunks-to-make-sorted/README.md b/problems/max-chunks-to-make-sorted/README.md index 644d56b83..cd0d3cdb5 100644 --- a/problems/max-chunks-to-make-sorted/README.md +++ b/problems/max-chunks-to-make-sorted/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/basic-calculator-iv "Basic Calculator IV") -## 769. Max Chunks To Make Sorted (Medium) +## [769. Max Chunks To Make Sorted (Medium)](https://leetcode.com/problems/max-chunks-to-make-sorted "ๆœ€ๅคš่ƒฝๅฎŒๆˆๆŽ’ๅบ็š„ๅ—")

    Given an array arr that is a permutation of [0, 1, ..., arr.length - 1], we split the array into some number of "chunks" (partitions), and individually sort each chunk.  After concatenating them, the result equals the sorted array.

    diff --git a/problems/max-consecutive-ones-ii/README.md b/problems/max-consecutive-ones-ii/README.md index 74f53b747..8ec0ea779 100644 --- a/problems/max-consecutive-ones-ii/README.md +++ b/problems/max-consecutive-ones-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/zuma-game "Zuma Game") -## 487. Max Consecutive Ones II (Medium) +## [487. Max Consecutive Ones II (Medium)](https://leetcode.com/problems/max-consecutive-ones-ii "ๆœ€ๅคง่ฟž็ปญ1็š„ไธชๆ•ฐ II") diff --git a/problems/max-consecutive-ones-iii/README.md b/problems/max-consecutive-ones-iii/README.md index 1c98acf4b..fa6c3c4d9 100644 --- a/problems/max-consecutive-ones-iii/README.md +++ b/problems/max-consecutive-ones-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximize-sum-of-array-after-k-negations "Maximize Sum Of Array After K Negations") -## 1004. Max Consecutive Ones III (Medium) +## [1004. Max Consecutive Ones III (Medium)](https://leetcode.com/problems/max-consecutive-ones-iii "ๆœ€ๅคง่ฟž็ปญ1็š„ไธชๆ•ฐ III")

    Given an array A of 0s and 1s, we may change up to K values from 0 to 1.

    diff --git a/problems/max-consecutive-ones/README.md b/problems/max-consecutive-ones/README.md index 8dd981912..2dd125a96 100644 --- a/problems/max-consecutive-ones/README.md +++ b/problems/max-consecutive-ones/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/predict-the-winner "Predict the Winner") -## 485. Max Consecutive Ones (Easy) +## [485. Max Consecutive Ones (Easy)](https://leetcode.com/problems/max-consecutive-ones "ๆœ€ๅคง่ฟž็ปญ1็š„ไธชๆ•ฐ")

    Given a binary array, find the maximum number of consecutive 1s in this array.

    diff --git a/problems/max-increase-to-keep-city-skyline/README.md b/problems/max-increase-to-keep-city-skyline/README.md index 391fa8219..db38fa6f5 100644 --- a/problems/max-increase-to-keep-city-skyline/README.md +++ b/problems/max-increase-to-keep-city-skyline/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/soup-servings "Soup Servings") -## 807. Max Increase to Keep City Skyline (Medium) +## [807. Max Increase to Keep City Skyline (Medium)](https://leetcode.com/problems/max-increase-to-keep-city-skyline "ไฟๆŒๅŸŽๅธ‚ๅคฉ้™…็บฟ")

    In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there. We are allowed to increase the height of any number of buildings, by any amount (the amounts can be different for different buildings). Height 0 is considered to be a building as well. 

    diff --git a/problems/max-points-on-a-line/README.md b/problems/max-points-on-a-line/README.md index 0f7019865..cb95fb3e8 100644 --- a/problems/max-points-on-a-line/README.md +++ b/problems/max-points-on-a-line/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/evaluate-reverse-polish-notation "Evaluate Reverse Polish Notation") -## 149. Max Points on a Line (Hard) +## [149. Max Points on a Line (Hard)](https://leetcode.com/problems/max-points-on-a-line "็›ด็บฟไธŠๆœ€ๅคš็š„็‚นๆ•ฐ")

    Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.

    diff --git a/problems/max-stack/README.md b/problems/max-stack/README.md index 065966f87..4f0e34aee 100644 --- a/problems/max-stack/README.md +++ b/problems/max-stack/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/1-bit-and-2-bit-characters "1-bit and 2-bit Characters") -## 716. Max Stack (Easy) +## [716. Max Stack (Easy)](https://leetcode.com/problems/max-stack "ๆœ€ๅคงๆ ˆ")

    Design a max stack that supports push, pop, top, peekMax and popMax.

    diff --git a/problems/max-sum-of-rectangle-no-larger-than-k/README.md b/problems/max-sum-of-rectangle-no-larger-than-k/README.md index 45639d88b..fbbe76882 100644 --- a/problems/max-sum-of-rectangle-no-larger-than-k/README.md +++ b/problems/max-sum-of-rectangle-no-larger-than-k/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/nested-list-weight-sum-ii "Nested List Weight Sum II") -## 363. Max Sum of Rectangle No Larger Than K (Hard) +## [363. Max Sum of Rectangle No Larger Than K (Hard)](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k "็ŸฉๅฝขๅŒบๅŸŸไธ่ถ…่ฟ‡ K ็š„ๆœ€ๅคงๆ•ฐๅ€ผๅ’Œ")

    Given a non-empty 2D matrix matrix and an integer k, find the max sum of a rectangle in the matrix such that its sum is no larger than k.

    diff --git a/problems/maximal-rectangle/README.md b/problems/maximal-rectangle/README.md index 5098f990e..c727578e5 100644 --- a/problems/maximal-rectangle/README.md +++ b/problems/maximal-rectangle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/partition-list "Partition List") -## 85. Maximal Rectangle (Hard) +## [85. Maximal Rectangle (Hard)](https://leetcode.com/problems/maximal-rectangle "ๆœ€ๅคง็Ÿฉๅฝข")

    Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area.

    diff --git a/problems/maximal-square/README.md b/problems/maximal-square/README.md index 77693c6f4..9266e0698 100644 --- a/problems/maximal-square/README.md +++ b/problems/maximal-square/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-complete-tree-nodes "Count Complete Tree Nodes") -## 221. Maximal Square (Medium) +## [221. Maximal Square (Medium)](https://leetcode.com/problems/maximal-square "ๆœ€ๅคงๆญฃๆ–นๅฝข")

    Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.

    diff --git a/problems/maximize-distance-to-closest-person/README.md b/problems/maximize-distance-to-closest-person/README.md index a69f74920..74cf86044 100644 --- a/problems/maximize-distance-to-closest-person/README.md +++ b/problems/maximize-distance-to-closest-person/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rectangle-area-ii "Rectangle Area II") -## 849. Maximize Distance to Closest Person (Easy) +## [849. Maximize Distance to Closest Person (Easy)](https://leetcode.com/problems/maximize-distance-to-closest-person "ๅˆฐๆœ€่ฟ‘็š„ไบบ็š„ๆœ€ๅคง่ท็ฆป")

    In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. 

    diff --git a/problems/maximize-sum-of-array-after-k-negations/README.md b/problems/maximize-sum-of-array-after-k-negations/README.md index 9f72b7a08..af99ba214 100644 --- a/problems/maximize-sum-of-array-after-k-negations/README.md +++ b/problems/maximize-sum-of-array-after-k-negations/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/clumsy-factorial "Clumsy Factorial") -## 1005. Maximize Sum Of Array After K Negations (Easy) +## [1005. Maximize Sum Of Array After K Negations (Easy)](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations "K ๆฌกๅ–ๅๅŽๆœ€ๅคงๅŒ–็š„ๆ•ฐ็ป„ๅ’Œ")

    Given an array A of integers, we must modify the array in the following way: we choose an i and replace A[i] with -A[i], and we repeat this process K times in total.  (We may choose the same index i multiple times.)

    diff --git a/problems/maximum-average-subarray-i/README.md b/problems/maximum-average-subarray-i/README.md index 91ab1ceff..81d9ac835 100644 --- a/problems/maximum-average-subarray-i/README.md +++ b/problems/maximum-average-subarray-i/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-average-subarray-ii "Maximum Average Subarray II") -## 643. Maximum Average Subarray I (Easy) +## [643. Maximum Average Subarray I (Easy)](https://leetcode.com/problems/maximum-average-subarray-i "ๅญๆ•ฐ็ป„ๆœ€ๅคงๅนณๅ‡ๆ•ฐ I")

    Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the maximum average value.

    diff --git a/problems/maximum-average-subarray-ii/README.md b/problems/maximum-average-subarray-ii/README.md index 3c5dcf4f6..0a389f423 100644 --- a/problems/maximum-average-subarray-ii/README.md +++ b/problems/maximum-average-subarray-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/set-mismatch "Set Mismatch") -## 644. Maximum Average Subarray II (Hard) +## [644. Maximum Average Subarray II (Hard)](https://leetcode.com/problems/maximum-average-subarray-ii "ๆœ€ๅคงๅนณๅ‡ๅญๆฎตๅ’Œ II") diff --git a/problems/maximum-average-subtree/README.md b/problems/maximum-average-subtree/README.md index 38d48ae3c..901288fc4 100644 --- a/problems/maximum-average-subtree/README.md +++ b/problems/maximum-average-subtree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/divide-array-into-increasing-sequences "Divide Array Into Increasing Sequences") -## 1120. Maximum Average Subtree (Medium) +## [1120. Maximum Average Subtree (Medium)](https://leetcode.com/problems/maximum-average-subtree "ๅญๆ ‘็š„ๆœ€ๅคงๅนณๅ‡ๅ€ผ") diff --git a/problems/maximum-binary-tree-ii/README.md b/problems/maximum-binary-tree-ii/README.md index 763275329..9e09f6341 100644 --- a/problems/maximum-binary-tree-ii/README.md +++ b/problems/maximum-binary-tree-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/available-captures-for-rook "Available Captures for Rook") -## 998. Maximum Binary Tree II (Medium) +## [998. Maximum Binary Tree II (Medium)](https://leetcode.com/problems/maximum-binary-tree-ii "ๆœ€ๅคงไบŒๅ‰ๆ ‘ II")

    We are given the root node of a maximum tree: a tree where every node has a value greater than any other value in its subtree.

    diff --git a/problems/maximum-binary-tree/README.md b/problems/maximum-binary-tree/README.md index 8350d8117..736e9759e 100644 --- a/problems/maximum-binary-tree/README.md +++ b/problems/maximum-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/print-binary-tree "Print Binary Tree") -## 654. Maximum Binary Tree (Medium) +## [654. Maximum Binary Tree (Medium)](https://leetcode.com/problems/maximum-binary-tree "ๆœ€ๅคงไบŒๅ‰ๆ ‘")

    Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: diff --git a/problems/maximum-depth-of-binary-tree/README.md b/problems/maximum-depth-of-binary-tree/README.md index 00b83901b..e16f6eb81 100644 --- a/problems/maximum-depth-of-binary-tree/README.md +++ b/problems/maximum-depth-of-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/construct-binary-tree-from-preorder-and-inorder-traversal "Construct Binary Tree from Preorder and Inorder Traversal") -## 104. Maximum Depth of Binary Tree (Easy) +## [104. Maximum Depth of Binary Tree (Easy)](https://leetcode.com/problems/maximum-depth-of-binary-tree "ไบŒๅ‰ๆ ‘็š„ๆœ€ๅคงๆทฑๅบฆ")

    Given a binary tree, find its maximum depth.

    diff --git a/problems/maximum-depth-of-n-ary-tree/README.md b/problems/maximum-depth-of-n-ary-tree/README.md index 5db98ba7e..b445f5dc2 100644 --- a/problems/maximum-depth-of-n-ary-tree/README.md +++ b/problems/maximum-depth-of-n-ary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/subarray-sum-equals-k "Subarray Sum Equals K") -## 559. Maximum Depth of N-ary Tree (Easy) +## [559. Maximum Depth of N-ary Tree (Easy)](https://leetcode.com/problems/maximum-depth-of-n-ary-tree "Nๅ‰ๆ ‘็š„ๆœ€ๅคงๆทฑๅบฆ")

    Given a n-ary tree, find its maximum depth.

    diff --git a/problems/maximum-difference-between-node-and-ancestor/README.md b/problems/maximum-difference-between-node-and-ancestor/README.md index fefd203f1..ee8151c39 100644 --- a/problems/maximum-difference-between-node-and-ancestor/README.md +++ b/problems/maximum-difference-between-node-and-ancestor/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-arithmetic-sequence "Longest Arithmetic Sequence") -## 1026. Maximum Difference Between Node and Ancestor (Medium) +## [1026. Maximum Difference Between Node and Ancestor (Medium)](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor "่Š‚็‚นไธŽๅ…ถ็ฅ–ๅ…ˆไน‹้—ด็š„ๆœ€ๅคงๅทฎๅ€ผ")

    Given the root of a binary tree, find the maximum value V for which there exists different nodes A and B where V = |A.val - B.val| and A is an ancestor of B.

    diff --git a/problems/maximum-distance-in-arrays/README.md b/problems/maximum-distance-in-arrays/README.md index 79480c49d..5e3f5d8f4 100644 --- a/problems/maximum-distance-in-arrays/README.md +++ b/problems/maximum-distance-in-arrays/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-factorization "Minimum Factorization") -## 624. Maximum Distance in Arrays (Easy) +## [624. Maximum Distance in Arrays (Easy)](https://leetcode.com/problems/maximum-distance-in-arrays "ๆ•ฐ็ป„ๅˆ—่กจไธญ็š„ๆœ€ๅคง่ท็ฆป")

    Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and calculate the distance. We define the distance between two integers a and b to be their absolute difference |a-b|. Your task is to find the maximum distance. diff --git a/problems/maximum-frequency-stack/README.md b/problems/maximum-frequency-stack/README.md index f0926a855..26d80ee53 100644 --- a/problems/maximum-frequency-stack/README.md +++ b/problems/maximum-frequency-stack/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/monotonic-array "Monotonic Array") -## 895. Maximum Frequency Stack (Hard) +## [895. Maximum Frequency Stack (Hard)](https://leetcode.com/problems/maximum-frequency-stack "ๆœ€ๅคง้ข‘็އๆ ˆ")

    Implement FreqStack, a class which simulates the operation of a stack-like data structure.

    diff --git a/problems/maximum-gap/README.md b/problems/maximum-gap/README.md index ec3b5385a..15109a7a3 100644 --- a/problems/maximum-gap/README.md +++ b/problems/maximum-gap/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/compare-version-numbers "Compare Version Numbers") -## 164. Maximum Gap (Hard) +## [164. Maximum Gap (Hard)](https://leetcode.com/problems/maximum-gap "ๆœ€ๅคง้—ด่ท")

    Given an unsorted array, find the maximum difference between the successive elements in its sorted form.

    diff --git a/problems/maximum-length-of-pair-chain/README.md b/problems/maximum-length-of-pair-chain/README.md index 7e4ff198c..3666514ca 100644 --- a/problems/maximum-length-of-pair-chain/README.md +++ b/problems/maximum-length-of-pair-chain/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/palindromic-substrings "Palindromic Substrings") -## 646. Maximum Length of Pair Chain (Medium) +## [646. Maximum Length of Pair Chain (Medium)](https://leetcode.com/problems/maximum-length-of-pair-chain "ๆœ€้•ฟๆ•ฐๅฏน้“พ")

    You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. diff --git a/problems/maximum-length-of-repeated-subarray/README.md b/problems/maximum-length-of-repeated-subarray/README.md index 8a2c08164..accfa83a0 100644 --- a/problems/maximum-length-of-repeated-subarray/README.md +++ b/problems/maximum-length-of-repeated-subarray/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-k-th-smallest-pair-distance "Find K-th Smallest Pair Distance") -## 718. Maximum Length of Repeated Subarray (Medium) +## [718. Maximum Length of Repeated Subarray (Medium)](https://leetcode.com/problems/maximum-length-of-repeated-subarray "ๆœ€้•ฟ้‡ๅคๅญๆ•ฐ็ป„")

    Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays.

    diff --git a/problems/maximum-level-sum-of-a-binary-tree/README.md b/problems/maximum-level-sum-of-a-binary-tree/README.md index 49b5d5d4a..4fe1f0eef 100644 --- a/problems/maximum-level-sum-of-a-binary-tree/README.md +++ b/problems/maximum-level-sum-of-a-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/as-far-from-land-as-possible "As Far from Land as Possible") -## 1161. Maximum Level Sum of a Binary Tree (Medium) +## [1161. Maximum Level Sum of a Binary Tree (Medium)](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree "ๆœ€ๅคงๅฑ‚ๅ†…ๅ…ƒ็ด ๅ’Œ")

    Given the root of a binary tree, the level of its root is 1, the level of its children is 2, and so on.

    diff --git a/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/README.md b/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/README.md index 5a234cadf..6258c9051 100644 --- a/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/README.md +++ b/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/highest-grade-for-each-student "Highest Grade For Each Student") -## 1111. Maximum Nesting Depth of Two Valid Parentheses Strings (Medium) +## [1111. Maximum Nesting Depth of Two Valid Parentheses Strings (Medium)](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings "ๆœ‰ๆ•ˆๆ‹ฌๅท็š„ๅตŒๅฅ—ๆทฑๅบฆ")

    A string is a valid parentheses string (denoted VPS) if and only if it consists of "(" and ")" characters only, and:

    diff --git a/problems/maximum-number-of-balloons/README.md b/problems/maximum-number-of-balloons/README.md index 123f8c1da..651ef650b 100644 --- a/problems/maximum-number-of-balloons/README.md +++ b/problems/maximum-number-of-balloons/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-substrings-between-each-pair-of-parentheses "Reverse Substrings Between Each Pair of Parentheses") -## 1189. Maximum Number of Balloons (Easy) +## [1189. Maximum Number of Balloons (Easy)](https://leetcode.com/problems/maximum-number-of-balloons "โ€œๆฐ”็ƒโ€ ็š„ๆœ€ๅคงๆ•ฐ้‡")

    Given a string text, you want to use the characters of text to form as many instances of the word "balloon" as possible.

    @@ -49,10 +49,6 @@
  • text consists of lower case English letters only.
  • -### Related Topics - [[Hash Table](https://github.com/openset/leetcode/tree/master/tag/hash-table/README.md)] - [[String](https://github.com/openset/leetcode/tree/master/tag/string/README.md)] - ### Hints
    Hint 1 diff --git a/problems/maximum-number-of-ones/README.md b/problems/maximum-number-of-ones/README.md index 60f345717..2bbfc68ae 100644 --- a/problems/maximum-number-of-ones/README.md +++ b/problems/maximum-number-of-ones/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/distance-between-bus-stops "Distance Between Bus Stops") -## 1183. Maximum Number of Ones (Hard) +## [1183. Maximum Number of Ones (Hard)](https://leetcode.com/problems/maximum-number-of-ones "็Ÿฉ้˜ตไธญ 1 ็š„ๆœ€ๅคงๆ•ฐ้‡") diff --git a/problems/maximum-of-absolute-value-expression/README.md b/problems/maximum-of-absolute-value-expression/README.md index 175c11692..43165aa08 100644 --- a/problems/maximum-of-absolute-value-expression/README.md +++ b/problems/maximum-of-absolute-value-expression/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reported-posts-ii "Reported Posts II") -## 1131. Maximum of Absolute Value Expression (Medium) +## [1131. Maximum of Absolute Value Expression (Medium)](https://leetcode.com/problems/maximum-of-absolute-value-expression "็ปๅฏนๅ€ผ่กจ่พพๅผ็š„ๆœ€ๅคงๅ€ผ")

    Given two arrays of integers with equal lengths, return the maximum value of:

    diff --git a/problems/maximum-product-of-three-numbers/README.md b/problems/maximum-product-of-three-numbers/README.md index 8d7f69dbd..e82527a72 100644 --- a/problems/maximum-product-of-three-numbers/README.md +++ b/problems/maximum-product-of-three-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/k-inverse-pairs-array "K Inverse Pairs Array") -## 628. Maximum Product of Three Numbers (Easy) +## [628. Maximum Product of Three Numbers (Easy)](https://leetcode.com/problems/maximum-product-of-three-numbers "ไธ‰ไธชๆ•ฐ็š„ๆœ€ๅคงไน˜็งฏ")

    Given an integer array, find three numbers whose product is maximum and output the maximum product.

    diff --git a/problems/maximum-product-of-word-lengths/README.md b/problems/maximum-product-of-word-lengths/README.md index c69856c01..470a1c12e 100644 --- a/problems/maximum-product-of-word-lengths/README.md +++ b/problems/maximum-product-of-word-lengths/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bulb-switcher "Bulb Switcher") -## 318. Maximum Product of Word Lengths (Medium) +## [318. Maximum Product of Word Lengths (Medium)](https://leetcode.com/problems/maximum-product-of-word-lengths "ๆœ€ๅคงๅ•่ฏ้•ฟๅบฆไน˜็งฏ")

    Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assume that each word will contain only lower case letters. If no such two words exist, return 0.

    diff --git a/problems/maximum-product-subarray/README.md b/problems/maximum-product-subarray/README.md index 7e588ab21..618124ffc 100644 --- a/problems/maximum-product-subarray/README.md +++ b/problems/maximum-product-subarray/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-minimum-in-rotated-sorted-array "Find Minimum in Rotated Sorted Array") -## 152. Maximum Product Subarray (Medium) +## [152. Maximum Product Subarray (Medium)](https://leetcode.com/problems/maximum-product-subarray "ไน˜็งฏๆœ€ๅคงๅญๅบๅˆ—")

    Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product.

    diff --git a/problems/maximum-size-subarray-sum-equals-k/README.md b/problems/maximum-size-subarray-sum-equals-k/README.md index d5abd0062..b581df225 100644 --- a/problems/maximum-size-subarray-sum-equals-k/README.md +++ b/problems/maximum-size-subarray-sum-equals-k/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/power-of-three "Power of Three") -## 325. Maximum Size Subarray Sum Equals k (Medium) +## [325. Maximum Size Subarray Sum Equals k (Medium)](https://leetcode.com/problems/maximum-size-subarray-sum-equals-k "ๅ’Œ็ญ‰ไบŽ k ็š„ๆœ€้•ฟๅญๆ•ฐ็ป„้•ฟๅบฆ") diff --git a/problems/maximum-subarray-sum-with-one-deletion/README.md b/problems/maximum-subarray-sum-with-one-deletion/README.md index ee442a2ce..ef44cc7a1 100644 --- a/problems/maximum-subarray-sum-with-one-deletion/README.md +++ b/problems/maximum-subarray-sum-with-one-deletion/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/make-array-strictly-increasing "Make Array Strictly Increasing") -## 1186. Maximum Subarray Sum with One Deletion (Medium) +## [1186. Maximum Subarray Sum with One Deletion (Medium)](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion "ๅˆ ้™คไธ€ๆฌกๅพ—ๅˆฐๅญๆ•ฐ็ป„ๆœ€ๅคงๅ’Œ")

    Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other words, you want to choose a subarray and optionally delete one element from it so that there is still at least one element left and the sum of the remaining elements is maximum possible.

    diff --git a/problems/maximum-subarray/README.md b/problems/maximum-subarray/README.md index 5c6a8249b..0a5589864 100644 --- a/problems/maximum-subarray/README.md +++ b/problems/maximum-subarray/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/spiral-matrix "Spiral Matrix") -## 53. Maximum Subarray (Easy) +## [53. Maximum Subarray (Easy)](https://leetcode.com/problems/maximum-subarray "ๆœ€ๅคงๅญๅบๅ’Œ")

    Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.

    diff --git a/problems/maximum-sum-circular-subarray/README.md b/problems/maximum-sum-circular-subarray/README.md index 8f0a64010..73f9c96e4 100644 --- a/problems/maximum-sum-circular-subarray/README.md +++ b/problems/maximum-sum-circular-subarray/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/complete-binary-tree-inserter "Complete Binary Tree Inserter") -## 918. Maximum Sum Circular Subarray (Medium) +## [918. Maximum Sum Circular Subarray (Medium)](https://leetcode.com/problems/maximum-sum-circular-subarray "็Žฏๅฝขๅญๆ•ฐ็ป„็š„ๆœ€ๅคงๅ’Œ")

    Given a circular array C of integers represented by A, find the maximum possible sum of a non-empty subarray of C.

    diff --git a/problems/maximum-sum-of-3-non-overlapping-subarrays/README.md b/problems/maximum-sum-of-3-non-overlapping-subarrays/README.md index b08fba6c1..88c019729 100644 --- a/problems/maximum-sum-of-3-non-overlapping-subarrays/README.md +++ b/problems/maximum-sum-of-3-non-overlapping-subarrays/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/employee-importance "Employee Importance") -## 689. Maximum Sum of 3 Non-Overlapping Subarrays (Hard) +## [689. Maximum Sum of 3 Non-Overlapping Subarrays (Hard)](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays "ไธ‰ไธชๆ— ้‡ๅ ๅญๆ•ฐ็ป„็š„ๆœ€ๅคงๅ’Œ")

    In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum.

    diff --git a/problems/maximum-sum-of-two-non-overlapping-subarrays/README.md b/problems/maximum-sum-of-two-non-overlapping-subarrays/README.md index 63193193f..8e30edbea 100644 --- a/problems/maximum-sum-of-two-non-overlapping-subarrays/README.md +++ b/problems/maximum-sum-of-two-non-overlapping-subarrays/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/stream-of-characters "Stream of Characters") -## 1031. Maximum Sum of Two Non-Overlapping Subarrays (Medium) +## [1031. Maximum Sum of Two Non-Overlapping Subarrays (Medium)](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays "ไธคไธช้ž้‡ๅ ๅญๆ•ฐ็ป„็š„ๆœ€ๅคงๅ’Œ")

    Given an array A of non-negative integers, return the maximum sum of elements in two non-overlapping (contiguous) subarrays, which have lengths L and M.  (For clarification, the L-length subarray could occur before or after the M-length subarray.)

    diff --git a/problems/maximum-swap/README.md b/problems/maximum-swap/README.md index 56d4d851d..13094a7b4 100644 --- a/problems/maximum-swap/README.md +++ b/problems/maximum-swap/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/second-minimum-node-in-a-binary-tree "Second Minimum Node In a Binary Tree") -## 670. Maximum Swap (Medium) +## [670. Maximum Swap (Medium)](https://leetcode.com/problems/maximum-swap "ๆœ€ๅคงไบคๆข")

    Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. diff --git a/problems/maximum-vacation-days/README.md b/problems/maximum-vacation-days/README.md index faddc99cc..dc8fa0c65 100644 --- a/problems/maximum-vacation-days/README.md +++ b/problems/maximum-vacation-days/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/median-employee-salary "Median Employee Salary") -## 568. Maximum Vacation Days (Hard) +## [568. Maximum Vacation Days (Hard)](https://leetcode.com/problems/maximum-vacation-days "ๆœ€ๅคงไผ‘ๅ‡ๅคฉๆ•ฐ") diff --git a/problems/maximum-width-of-binary-tree/README.md b/problems/maximum-width-of-binary-tree/README.md index 1cbfd51dd..ebcfadf24 100644 --- a/problems/maximum-width-of-binary-tree/README.md +++ b/problems/maximum-width-of-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/equal-tree-partition "Equal Tree Partition") -## 662. Maximum Width of Binary Tree (Medium) +## [662. Maximum Width of Binary Tree (Medium)](https://leetcode.com/problems/maximum-width-of-binary-tree "ไบŒๅ‰ๆ ‘ๆœ€ๅคงๅฎฝๅบฆ")

    Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binary tree has the same structure as a full binary tree, but some nodes are null.

    diff --git a/problems/maximum-width-ramp/README.md b/problems/maximum-width-ramp/README.md index 2f151d77e..5f81645fe 100644 --- a/problems/maximum-width-ramp/README.md +++ b/problems/maximum-width-ramp/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-area-rectangle-ii "Minimum Area Rectangle II") -## 962. Maximum Width Ramp (Medium) +## [962. Maximum Width Ramp (Medium)](https://leetcode.com/problems/maximum-width-ramp "ๆœ€ๅคงๅฎฝๅบฆๅก")

    Given an array A of integers, a ramp is a tuple (i, j) for which i < j and A[i] <= A[j].  The width of such a ramp is j - i.

    diff --git a/problems/maximum-xor-of-two-numbers-in-an-array/README.md b/problems/maximum-xor-of-two-numbers-in-an-array/README.md index 07bb3375c..4763ec29d 100644 --- a/problems/maximum-xor-of-two-numbers-in-an-array/README.md +++ b/problems/maximum-xor-of-two-numbers-in-an-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-word-square "Valid Word Square") -## 421. Maximum XOR of Two Numbers in an Array (Medium) +## [421. Maximum XOR of Two Numbers in an Array (Medium)](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array "ๆ•ฐ็ป„ไธญไธคไธชๆ•ฐ็š„ๆœ€ๅคงๅผ‚ๆˆ–ๅ€ผ")

    Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai < 231.

    diff --git a/problems/median-employee-salary/README.md b/problems/median-employee-salary/README.md index 73154f64e..fedb6e968 100644 --- a/problems/median-employee-salary/README.md +++ b/problems/median-employee-salary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/managers-with-at-least-5-direct-reports "Managers with at Least 5 Direct Reports") -## 569. Median Employee Salary (Hard) +## [569. Median Employee Salary (Hard)](https://leetcode.com/problems/median-employee-salary "ๅ‘˜ๅทฅ่–ชๆฐดไธญไฝๆ•ฐ")

    The Employee table holds all employees. The employee table has three columns: Employee Id, Company Name, and Salary.

    diff --git a/problems/median-of-two-sorted-arrays/README.md b/problems/median-of-two-sorted-arrays/README.md index e84428638..0adff0ffc 100644 --- a/problems/median-of-two-sorted-arrays/README.md +++ b/problems/median-of-two-sorted-arrays/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-palindromic-substring "Longest Palindromic Substring") -## 4. Median of Two Sorted Arrays (Hard) +## [4. Median of Two Sorted Arrays (Hard)](https://leetcode.com/problems/median-of-two-sorted-arrays "ๅฏปๆ‰พไธคไธชๆœ‰ๅบๆ•ฐ็ป„็š„ไธญไฝๆ•ฐ")

    There are two sorted arrays nums1 and nums2 of size m and n respectively.

    diff --git a/problems/meeting-rooms-ii/README.md b/problems/meeting-rooms-ii/README.md index 4f8dad0d7..8e68e9f11 100644 --- a/problems/meeting-rooms-ii/README.md +++ b/problems/meeting-rooms-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/factor-combinations "Factor Combinations") -## 253. Meeting Rooms II (Medium) +## [253. Meeting Rooms II (Medium)](https://leetcode.com/problems/meeting-rooms-ii "ไผš่ฎฎๅฎค II") diff --git a/problems/meeting-rooms/README.md b/problems/meeting-rooms/README.md index 0e094a4f6..08c69b683 100644 --- a/problems/meeting-rooms/README.md +++ b/problems/meeting-rooms/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/meeting-rooms-ii "Meeting Rooms II") -## 252. Meeting Rooms (Easy) +## [252. Meeting Rooms (Easy)](https://leetcode.com/problems/meeting-rooms "ไผš่ฎฎๅฎค") diff --git a/problems/merge-intervals/README.md b/problems/merge-intervals/README.md index e3c7e8315..9d2bbc4a7 100644 --- a/problems/merge-intervals/README.md +++ b/problems/merge-intervals/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/insert-interval "Insert Interval") -## 56. Merge Intervals (Medium) +## [56. Merge Intervals (Medium)](https://leetcode.com/problems/merge-intervals "ๅˆๅนถๅŒบ้—ด")

    Given a collection of intervals, merge all overlapping intervals.

    diff --git a/problems/merge-k-sorted-lists/README.md b/problems/merge-k-sorted-lists/README.md index 25ff5d89d..849d58d26 100644 --- a/problems/merge-k-sorted-lists/README.md +++ b/problems/merge-k-sorted-lists/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/swap-nodes-in-pairs "Swap Nodes in Pairs") -## 23. Merge k Sorted Lists (Hard) +## [23. Merge k Sorted Lists (Hard)](https://leetcode.com/problems/merge-k-sorted-lists "ๅˆๅนถKไธชๆŽ’ๅบ้“พ่กจ")

    Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.

    diff --git a/problems/merge-sorted-array/README.md b/problems/merge-sorted-array/README.md index 2616421cd..e817c123c 100644 --- a/problems/merge-sorted-array/README.md +++ b/problems/merge-sorted-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/gray-code "Gray Code") -## 88. Merge Sorted Array (Easy) +## [88. Merge Sorted Array (Easy)](https://leetcode.com/problems/merge-sorted-array "ๅˆๅนถไธคไธชๆœ‰ๅบๆ•ฐ็ป„")

    Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.

    diff --git a/problems/merge-two-binary-trees/README.md b/problems/merge-two-binary-trees/README.md index ecee7c8f2..ec7caa749 100644 --- a/problems/merge-two-binary-trees/README.md +++ b/problems/merge-two-binary-trees/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/students-report-by-geography "Students Report By Geography") -## 617. Merge Two Binary Trees (Easy) +## [617. Merge Two Binary Trees (Easy)](https://leetcode.com/problems/merge-two-binary-trees "ๅˆๅนถไบŒๅ‰ๆ ‘")

    Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.

    diff --git a/problems/merge-two-sorted-lists/README.md b/problems/merge-two-sorted-lists/README.md index b03c927cb..54d3145d0 100644 --- a/problems/merge-two-sorted-lists/README.md +++ b/problems/merge-two-sorted-lists/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/generate-parentheses "Generate Parentheses") -## 21. Merge Two Sorted Lists (Easy) +## [21. Merge Two Sorted Lists (Easy)](https://leetcode.com/problems/merge-two-sorted-lists "ๅˆๅนถไธคไธชๆœ‰ๅบ้“พ่กจ")

    Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.

    diff --git a/problems/middle-of-the-linked-list/README.md b/problems/middle-of-the-linked-list/README.md index 3b24c36d2..42914c432 100644 --- a/problems/middle-of-the-linked-list/README.md +++ b/problems/middle-of-the-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/stone-game "Stone Game") -## 876. Middle of the Linked List (Easy) +## [876. Middle of the Linked List (Easy)](https://leetcode.com/problems/middle-of-the-linked-list "้“พ่กจ็š„ไธญ้—ด็ป“็‚น")

    Given a non-empty, singly linked list with head node head, return a middle node of linked list.

    diff --git a/problems/min-cost-climbing-stairs/README.md b/problems/min-cost-climbing-stairs/README.md index 4ac470d3c..a4afd7abe 100644 --- a/problems/min-cost-climbing-stairs/README.md +++ b/problems/min-cost-climbing-stairs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-number-at-least-twice-of-others "Largest Number At Least Twice of Others") -## 746. Min Cost Climbing Stairs (Easy) +## [746. Min Cost Climbing Stairs (Easy)](https://leetcode.com/problems/min-cost-climbing-stairs "ไฝฟ็”จๆœ€ๅฐ่Šฑ่ดน็ˆฌๆฅผๆขฏ")

    On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). diff --git a/problems/min-stack/README.md b/problems/min-stack/README.md index 2e564579c..46c6f646c 100644 --- a/problems/min-stack/README.md +++ b/problems/min-stack/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-upside-down "Binary Tree Upside Down") -## 155. Min Stack (Easy) +## [155. Min Stack (Easy)](https://leetcode.com/problems/min-stack "ๆœ€ๅฐๆ ˆ")

    Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

    diff --git a/problems/minesweeper/README.md b/problems/minesweeper/README.md index ad49696bc..99123aaad 100644 --- a/problems/minesweeper/README.md +++ b/problems/minesweeper/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-absolute-difference-in-bst "Minimum Absolute Difference in BST") -## 529. Minesweeper (Medium) +## [529. Minesweeper (Medium)](https://leetcode.com/problems/minesweeper "ๆ‰ซ้›ทๆธธๆˆ")

    Let's play the minesweeper game (Wikipedia, online game)!

    diff --git a/problems/mini-parser/README.md b/problems/mini-parser/README.md index 75ad2fa76..031d480e6 100644 --- a/problems/mini-parser/README.md +++ b/problems/mini-parser/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lexicographical-numbers "Lexicographical Numbers") -## 385. Mini Parser (Medium) +## [385. Mini Parser (Medium)](https://leetcode.com/problems/mini-parser "่ฟทไฝ ่ฏญๆณ•ๅˆ†ๆžๅ™จ")

    Given a nested list of integers represented as a string, implement a parser to deserialize it.

    diff --git a/problems/minimize-malware-spread-ii/README.md b/problems/minimize-malware-spread-ii/README.md index 81e0ec828..eed9861f8 100644 --- a/problems/minimize-malware-spread-ii/README.md +++ b/problems/minimize-malware-spread-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-email-addresses "Unique Email Addresses") -## 928. Minimize Malware Spread II (Hard) +## [928. Minimize Malware Spread II (Hard)](https://leetcode.com/problems/minimize-malware-spread-ii "ๅฐฝ้‡ๅ‡ๅฐ‘ๆถๆ„่ฝฏไปถ็š„ไผ ๆ’ญ II")

    (This problem is the same as Minimize Malware Spread, with the differences bolded.)

    diff --git a/problems/minimize-malware-spread/README.md b/problems/minimize-malware-spread/README.md index 8854a3047..e3d39401e 100644 --- a/problems/minimize-malware-spread/README.md +++ b/problems/minimize-malware-spread/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/long-pressed-name "Long Pressed Name") -## 924. Minimize Malware Spread (Hard) +## [924. Minimize Malware Spread (Hard)](https://leetcode.com/problems/minimize-malware-spread "ๅฐฝ้‡ๅ‡ๅฐ‘ๆถๆ„่ฝฏไปถ็š„ไผ ๆ’ญ")

    In a network of nodes, each node i is directly connected to another node j if and only if graph[i][j] = 1.

    diff --git a/problems/minimize-max-distance-to-gas-station/README.md b/problems/minimize-max-distance-to-gas-station/README.md index 6e1894837..56d53b82e 100644 --- a/problems/minimize-max-distance-to-gas-station/README.md +++ b/problems/minimize-max-distance-to-gas-station/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/global-and-local-inversions "Global and Local Inversions") -## 774. Minimize Max Distance to Gas Station (Hard) +## [774. Minimize Max Distance to Gas Station (Hard)](https://leetcode.com/problems/minimize-max-distance-to-gas-station "ๆœ€ๅฐๅŒ–ๅŽปๅŠ ๆฒน็ซ™็š„ๆœ€ๅคง่ท็ฆป") diff --git a/problems/minimize-rounding-error-to-meet-target/README.md b/problems/minimize-rounding-error-to-meet-target/README.md index f2f8f80db..c35c22eca 100644 --- a/problems/minimize-rounding-error-to-meet-target/README.md +++ b/problems/minimize-rounding-error-to-meet-target/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/all-paths-from-source-lead-to-destination "All Paths from Source Lead to Destination") -## 1058. Minimize Rounding Error to Meet Target (Medium) +## [1058. Minimize Rounding Error to Meet Target (Medium)](https://leetcode.com/problems/minimize-rounding-error-to-meet-target "ๆœ€ๅฐๅŒ–่ˆๅ…ฅ่ฏฏๅทฎไปฅๆปก่ถณ็›ฎๆ ‡")

    Given an array of prices [p1,p2...,pn] and a target, round each price pi to Roundi(pi) so that the rounded array [Round1(p1),Round2(p2)...,Roundn(pn)] sums to the given target. Each operation Roundi(pi) could be either Floor(pi) or Ceil(pi).

    diff --git a/problems/minimum-absolute-difference-in-bst/README.md b/problems/minimum-absolute-difference-in-bst/README.md index 4b7550542..2608ad08c 100644 --- a/problems/minimum-absolute-difference-in-bst/README.md +++ b/problems/minimum-absolute-difference-in-bst/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lonely-pixel-i "Lonely Pixel I") -## 530. Minimum Absolute Difference in BST (Easy) +## [530. Minimum Absolute Difference in BST (Easy)](https://leetcode.com/problems/minimum-absolute-difference-in-bst "ไบŒๅ‰ๆœ็ดขๆ ‘็š„ๆœ€ๅฐ็ปๅฏนๅทฎ")

    Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes.

    diff --git a/problems/minimum-add-to-make-parentheses-valid/README.md b/problems/minimum-add-to-make-parentheses-valid/README.md index d6423d2cd..77d338a41 100644 --- a/problems/minimum-add-to-make-parentheses-valid/README.md +++ b/problems/minimum-add-to-make-parentheses-valid/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sort-array-by-parity-ii "Sort Array By Parity II") -## 921. Minimum Add to Make Parentheses Valid (Medium) +## [921. Minimum Add to Make Parentheses Valid (Medium)](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid "ไฝฟๆ‹ฌๅทๆœ‰ๆ•ˆ็š„ๆœ€ๅฐ‘ๆทปๅŠ ")

    Given a string S of '(' and ')' parentheses, we add the minimum number of parentheses ( '(' or ')', and in any positions ) so that the resulting parentheses string is valid.

    diff --git a/problems/minimum-area-rectangle-ii/README.md b/problems/minimum-area-rectangle-ii/README.md index 9dc75c13c..bd77cfbe7 100644 --- a/problems/minimum-area-rectangle-ii/README.md +++ b/problems/minimum-area-rectangle-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/least-operators-to-express-number "Least Operators to Express Number") -## 963. Minimum Area Rectangle II (Medium) +## [963. Minimum Area Rectangle II (Medium)](https://leetcode.com/problems/minimum-area-rectangle-ii "ๆœ€ๅฐ้ข็งฏ็Ÿฉๅฝข II")

    Given a set of points in the xy-plane, determine the minimum area of any rectangle formed from these points, with sides not necessarily parallel to the x and y axes.

    diff --git a/problems/minimum-area-rectangle/README.md b/problems/minimum-area-rectangle/README.md index 65f3f362d..2f26e23a0 100644 --- a/problems/minimum-area-rectangle/README.md +++ b/problems/minimum-area-rectangle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/distinct-subsequences-ii "Distinct Subsequences II") -## 939. Minimum Area Rectangle (Medium) +## [939. Minimum Area Rectangle (Medium)](https://leetcode.com/problems/minimum-area-rectangle "ๆœ€ๅฐ้ข็งฏ็Ÿฉๅฝข")

    Given a set of points in the xy-plane, determine the minimum area of a rectangle formed from these points, with sides parallel to the x and y axes.

    diff --git a/problems/minimum-ascii-delete-sum-for-two-strings/README.md b/problems/minimum-ascii-delete-sum-for-two-strings/README.md index fd8ef35cc..3bf34105c 100644 --- a/problems/minimum-ascii-delete-sum-for-two-strings/README.md +++ b/problems/minimum-ascii-delete-sum-for-two-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/subarray-product-less-than-k "Subarray Product Less Than K") -## 712. Minimum ASCII Delete Sum for Two Strings (Medium) +## [712. Minimum ASCII Delete Sum for Two Strings (Medium)](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings "ไธคไธชๅญ—็ฌฆไธฒ็š„ๆœ€ๅฐASCIIๅˆ ้™คๅ’Œ")

    Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal.

    diff --git a/problems/minimum-cost-for-tickets/README.md b/problems/minimum-cost-for-tickets/README.md index 17c2510ec..35ac2e6a6 100644 --- a/problems/minimum-cost-for-tickets/README.md +++ b/problems/minimum-cost-for-tickets/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/string-without-aaa-or-bbb "String Without AAA or BBB") -## 983. Minimum Cost For Tickets (Medium) +## [983. Minimum Cost For Tickets (Medium)](https://leetcode.com/problems/minimum-cost-for-tickets "ๆœ€ไฝŽ็ฅจไปท")

    In a country popular for train travel, you have planned some train travelling one year in advance.  The days of the year that you will travel is given as an array days.  Each day is an integer from 1 to 365.

    diff --git a/problems/minimum-cost-to-connect-sticks/README.md b/problems/minimum-cost-to-connect-sticks/README.md index a5279fae8..b01772a54 100644 --- a/problems/minimum-cost-to-connect-sticks/README.md +++ b/problems/minimum-cost-to-connect-sticks/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/optimize-water-distribution-in-a-village "Optimize Water Distribution in a Village") -## 1167. Minimum Cost to Connect Sticks (Medium) +## [1167. Minimum Cost to Connect Sticks (Medium)](https://leetcode.com/problems/minimum-cost-to-connect-sticks "่ฟžๆŽฅๆฃ’ๆ็š„ๆœ€ไฝŽ่ดน็”จ") diff --git a/problems/minimum-cost-to-hire-k-workers/README.md b/problems/minimum-cost-to-hire-k-workers/README.md index bab6a4c76..e1febff1c 100644 --- a/problems/minimum-cost-to-hire-k-workers/README.md +++ b/problems/minimum-cost-to-hire-k-workers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/mirror-reflection "Mirror Reflection") -## 857. Minimum Cost to Hire K Workers (Hard) +## [857. Minimum Cost to Hire K Workers (Hard)](https://leetcode.com/problems/minimum-cost-to-hire-k-workers "้›‡ไฝฃ K ๅๅทฅไบบ็š„ๆœ€ไฝŽๆˆๆœฌ")

    There are N workers.  The i-th worker has a quality[i] and a minimum wage expectation wage[i].

    diff --git a/problems/minimum-cost-to-merge-stones/README.md b/problems/minimum-cost-to-merge-stones/README.md index 6be67e207..719888d7f 100644 --- a/problems/minimum-cost-to-merge-stones/README.md +++ b/problems/minimum-cost-to-merge-stones/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/grid-illumination "Grid Illumination") -## 1000. Minimum Cost to Merge Stones (Hard) +## [1000. Minimum Cost to Merge Stones (Hard)](https://leetcode.com/problems/minimum-cost-to-merge-stones "ๅˆๅนถ็Ÿณๅคด็š„ๆœ€ไฝŽๆˆๆœฌ")

    There are N piles of stones arranged in a row.  The i-th pile has stones[i] stones.

    diff --git a/problems/minimum-cost-tree-from-leaf-values/README.md b/problems/minimum-cost-tree-from-leaf-values/README.md index 5de0eab18..7bf20ddb9 100644 --- a/problems/minimum-cost-tree-from-leaf-values/README.md +++ b/problems/minimum-cost-tree-from-leaf-values/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-of-absolute-value-expression "Maximum of Absolute Value Expression") -## 1130. Minimum Cost Tree From Leaf Values (Medium) +## [1130. Minimum Cost Tree From Leaf Values (Medium)](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values "ๅถๅ€ผ็š„ๆœ€ๅฐไปฃไปท็”Ÿๆˆๆ ‘")

    Given an array arr of positive integers, consider all binary trees such that:

    diff --git a/problems/minimum-depth-of-binary-tree/README.md b/problems/minimum-depth-of-binary-tree/README.md index 272278092..0234cc0b0 100644 --- a/problems/minimum-depth-of-binary-tree/README.md +++ b/problems/minimum-depth-of-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/path-sum "Path Sum") -## 111. Minimum Depth of Binary Tree (Easy) +## [111. Minimum Depth of Binary Tree (Easy)](https://leetcode.com/problems/minimum-depth-of-binary-tree "ไบŒๅ‰ๆ ‘็š„ๆœ€ๅฐๆทฑๅบฆ")

    Given a binary tree, find its minimum depth.

    diff --git a/problems/minimum-distance-between-bst-nodes/README.md b/problems/minimum-distance-between-bst-nodes/README.md index dc5e37b4c..21bd2bd95 100644 --- a/problems/minimum-distance-between-bst-nodes/README.md +++ b/problems/minimum-distance-between-bst-nodes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/letter-case-permutation "Letter Case Permutation") -## 783. Minimum Distance Between BST Nodes (Easy) +## [783. Minimum Distance Between BST Nodes (Easy)](https://leetcode.com/problems/minimum-distance-between-bst-nodes "ไบŒๅ‰ๆœ็ดขๆ ‘็ป“็‚นๆœ€ๅฐ่ท็ฆป")

    Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree.

    diff --git a/problems/minimum-domino-rotations-for-equal-row/README.md b/problems/minimum-domino-rotations-for-equal-row/README.md index bcb7e71ea..f0217fceb 100644 --- a/problems/minimum-domino-rotations-for-equal-row/README.md +++ b/problems/minimum-domino-rotations-for-equal-row/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/construct-binary-search-tree-from-preorder-traversal "Construct Binary Search Tree from Preorder Traversal") -## 1007. Minimum Domino Rotations For Equal Row (Medium) +## [1007. Minimum Domino Rotations For Equal Row (Medium)](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row "่กŒ็›ธ็ญ‰็š„ๆœ€ๅฐ‘ๅคš็ฑณ่ฏบๆ—‹่ฝฌ")

    In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the i-th domino.  (A domino is a tile with two numbers from 1 to 6 - one on each half of the tile.)

    diff --git a/problems/minimum-factorization/README.md b/problems/minimum-factorization/README.md index f63849552..202446a33 100644 --- a/problems/minimum-factorization/README.md +++ b/problems/minimum-factorization/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/exchange-seats "Exchange Seats") -## 625. Minimum Factorization (Medium) +## [625. Minimum Factorization (Medium)](https://leetcode.com/problems/minimum-factorization "ๆœ€ๅฐๅ› ๅผๅˆ†่งฃ")

    Given a positive integer a, find the smallest positive integer b whose multiplication of each digit equals to a.

    diff --git a/problems/minimum-falling-path-sum/README.md b/problems/minimum-falling-path-sum/README.md index 33de59ebd..59f722bd0 100644 --- a/problems/minimum-falling-path-sum/README.md +++ b/problems/minimum-falling-path-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/beautiful-array "Beautiful Array") -## 931. Minimum Falling Path Sum (Medium) +## [931. Minimum Falling Path Sum (Medium)](https://leetcode.com/problems/minimum-falling-path-sum "ไธ‹้™่ทฏๅพ„ๆœ€ๅฐๅ’Œ")

    Given a square array of integers A, we want the minimum sum of a falling path through A.

    diff --git a/problems/minimum-genetic-mutation/README.md b/problems/minimum-genetic-mutation/README.md index d881222ee..d3451b97b 100644 --- a/problems/minimum-genetic-mutation/README.md +++ b/problems/minimum-genetic-mutation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-segments-in-a-string "Number of Segments in a String") -## 433. Minimum Genetic Mutation (Medium) +## [433. Minimum Genetic Mutation (Medium)](https://leetcode.com/problems/minimum-genetic-mutation "ๆœ€ๅฐๅŸบๅ› ๅ˜ๅŒ–")

    A gene string can be represented by an 8-character long string, with choices from "A", "C", "G", "T".

    diff --git a/problems/minimum-height-trees/README.md b/problems/minimum-height-trees/README.md index ff6d9db9c..3450ea3dd 100644 --- a/problems/minimum-height-trees/README.md +++ b/problems/minimum-height-trees/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sparse-matrix-multiplication "Sparse Matrix Multiplication") -## 310. Minimum Height Trees (Medium) +## [310. Minimum Height Trees (Medium)](https://leetcode.com/problems/minimum-height-trees "ๆœ€ๅฐ้ซ˜ๅบฆๆ ‘")

    For an undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible rooted trees, those with minimum height are called minimum height trees (MHTs). Given such a graph, write a function to find all the MHTs and return a list of their root labels.

    diff --git a/problems/minimum-increment-to-make-array-unique/README.md b/problems/minimum-increment-to-make-array-unique/README.md index a8e86a760..2fc7fc30c 100644 --- a/problems/minimum-increment-to-make-array-unique/README.md +++ b/problems/minimum-increment-to-make-array-unique/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/validate-stack-sequences "Validate Stack Sequences") -## 945. Minimum Increment to Make Array Unique (Medium) +## [945. Minimum Increment to Make Array Unique (Medium)](https://leetcode.com/problems/minimum-increment-to-make-array-unique "ไฝฟๆ•ฐ็ป„ๅ”ฏไธ€็š„ๆœ€ๅฐๅขž้‡")

    Given an array of integers A, a move consists of choosing any A[i], and incrementing it by 1.

    diff --git a/problems/minimum-index-sum-of-two-lists/README.md b/problems/minimum-index-sum-of-two-lists/README.md index e34d36bd2..25728b723 100644 --- a/problems/minimum-index-sum-of-two-lists/README.md +++ b/problems/minimum-index-sum-of-two-lists/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/non-negative-integers-without-consecutive-ones "Non-negative Integers without Consecutive Ones") -## 599. Minimum Index Sum of Two Lists (Easy) +## [599. Minimum Index Sum of Two Lists (Easy)](https://leetcode.com/problems/minimum-index-sum-of-two-lists "ไธคไธชๅˆ—่กจ็š„ๆœ€ๅฐ็ดขๅผ•ๆ€ปๅ’Œ")

    Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. diff --git a/problems/minimum-moves-to-equal-array-elements-ii/README.md b/problems/minimum-moves-to-equal-array-elements-ii/README.md index c4a5f6383..6572a4bcf 100644 --- a/problems/minimum-moves-to-equal-array-elements-ii/README.md +++ b/problems/minimum-moves-to-equal-array-elements-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/island-perimeter "Island Perimeter") -## 462. Minimum Moves to Equal Array Elements II (Medium) +## [462. Minimum Moves to Equal Array Elements II (Medium)](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii "ๆœ€ๅฐ‘็งปๅŠจๆฌกๆ•ฐไฝฟๆ•ฐ็ป„ๅ…ƒ็ด ็›ธ็ญ‰ II")

    Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a move is incrementing a selected element by 1 or decrementing a selected element by 1.

    diff --git a/problems/minimum-moves-to-equal-array-elements/README.md b/problems/minimum-moves-to-equal-array-elements/README.md index 944b2c86b..a26167733 100644 --- a/problems/minimum-moves-to-equal-array-elements/README.md +++ b/problems/minimum-moves-to-equal-array-elements/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/4sum-ii "4Sum II") -## 453. Minimum Moves to Equal Array Elements (Easy) +## [453. Minimum Moves to Equal Array Elements (Easy)](https://leetcode.com/problems/minimum-moves-to-equal-array-elements "ๆœ€ๅฐ็งปๅŠจๆฌกๆ•ฐไฝฟๆ•ฐ็ป„ๅ…ƒ็ด ็›ธ็ญ‰")

    Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementing n - 1 elements by 1.

    diff --git a/problems/minimum-number-of-arrows-to-burst-balloons/README.md b/problems/minimum-number-of-arrows-to-burst-balloons/README.md index addd2808d..492f9f2fa 100644 --- a/problems/minimum-number-of-arrows-to-burst-balloons/README.md +++ b/problems/minimum-number-of-arrows-to-burst-balloons/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-moves-to-equal-array-elements "Minimum Moves to Equal Array Elements") -## 452. Minimum Number of Arrows to Burst Balloons (Medium) +## [452. Minimum Number of Arrows to Burst Balloons (Medium)](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons "็”จๆœ€ๅฐ‘ๆ•ฐ้‡็š„็ฎญๅผ•็ˆ†ๆฐ”็ƒ")

    There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the horizontal diameter. Since it's horizontal, y-coordinates don't matter and hence the x-coordinates of start and end of the diameter suffice. Start is always smaller than end. There will be at most 104 balloons.

    diff --git a/problems/minimum-number-of-k-consecutive-bit-flips/README.md b/problems/minimum-number-of-k-consecutive-bit-flips/README.md index 084feb84a..ca7d138f4 100644 --- a/problems/minimum-number-of-k-consecutive-bit-flips/README.md +++ b/problems/minimum-number-of-k-consecutive-bit-flips/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-squareful-arrays "Number of Squareful Arrays") -## 995. Minimum Number of K Consecutive Bit Flips (Hard) +## [995. Minimum Number of K Consecutive Bit Flips (Hard)](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips "K ่ฟž็ปญไฝ็š„ๆœ€ๅฐ็ฟป่ฝฌๆฌกๆ•ฐ")

    In an array A containing only 0s and 1s, a K-bit flip consists of choosing a (contiguous) subarray of length K and simultaneously changing every 0 in the subarray to 1, and every 1 in the subarray to 0.

    diff --git a/problems/minimum-number-of-refueling-stops/README.md b/problems/minimum-number-of-refueling-stops/README.md index 639d89421..8ba37043f 100644 --- a/problems/minimum-number-of-refueling-stops/README.md +++ b/problems/minimum-number-of-refueling-stops/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/leaf-similar-trees "Leaf-Similar Trees") -## 871. Minimum Number of Refueling Stops (Hard) +## [871. Minimum Number of Refueling Stops (Hard)](https://leetcode.com/problems/minimum-number-of-refueling-stops "ๆœ€ไฝŽๅŠ ๆฒนๆฌกๆ•ฐ")

    A car travels from a starting position to a destination which is target miles east of the starting position.

    diff --git a/problems/minimum-path-sum/README.md b/problems/minimum-path-sum/README.md index 078fc7bf4..33ef4a067 100644 --- a/problems/minimum-path-sum/README.md +++ b/problems/minimum-path-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-number "Valid Number") -## 64. Minimum Path Sum (Medium) +## [64. Minimum Path Sum (Medium)](https://leetcode.com/problems/minimum-path-sum "ๆœ€ๅฐ่ทฏๅพ„ๅ’Œ")

    Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.

    diff --git a/problems/minimum-score-triangulation-of-polygon/README.md b/problems/minimum-score-triangulation-of-polygon/README.md index 49a72059c..df0e59edb 100644 --- a/problems/minimum-score-triangulation-of-polygon/README.md +++ b/problems/minimum-score-triangulation-of-polygon/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/moving-stones-until-consecutive-ii "Moving Stones Until Consecutive II") -## 1039. Minimum Score Triangulation of Polygon (Medium) +## [1039. Minimum Score Triangulation of Polygon (Medium)](https://leetcode.com/problems/minimum-score-triangulation-of-polygon "ๅคš่พนๅฝขไธ‰่ง’ๅ‰–ๅˆ†็š„ๆœ€ไฝŽๅพ—ๅˆ†")

    Given N, consider a convex N-sided polygon with vertices labelled A[0], A[i], ..., A[N-1] in clockwise order.

    diff --git a/problems/minimum-size-subarray-sum/README.md b/problems/minimum-size-subarray-sum/README.md index e6310bf34..d6b8e034c 100644 --- a/problems/minimum-size-subarray-sum/README.md +++ b/problems/minimum-size-subarray-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/course-schedule-ii "Course Schedule II") -## 209. Minimum Size Subarray Sum (Medium) +## [209. Minimum Size Subarray Sum (Medium)](https://leetcode.com/problems/minimum-size-subarray-sum "้•ฟๅบฆๆœ€ๅฐ็š„ๅญๆ•ฐ็ป„")

    Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't one, return 0 instead.

    diff --git a/problems/minimum-swaps-to-group-all-1s-together/README.md b/problems/minimum-swaps-to-group-all-1s-together/README.md index 5a5eaab37..32c8b1001 100644 --- a/problems/minimum-swaps-to-group-all-1s-together/README.md +++ b/problems/minimum-swaps-to-group-all-1s-together/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/analyze-user-website-visit-pattern "Analyze User Website Visit Pattern") -## 1151. Minimum Swaps to Group All 1's Together (Medium) +## [1151. Minimum Swaps to Group All 1's Together (Medium)](https://leetcode.com/problems/minimum-swaps-to-group-all-1s-together "ๆœ€ๅฐ‘ไบคๆขๆฌกๆ•ฐๆฅ็ป„ๅˆๆ‰€ๆœ‰็š„ 1") diff --git a/problems/minimum-swaps-to-make-sequences-increasing/README.md b/problems/minimum-swaps-to-make-sequences-increasing/README.md index 90f7f1ad4..a325cdd42 100644 --- a/problems/minimum-swaps-to-make-sequences-increasing/README.md +++ b/problems/minimum-swaps-to-make-sequences-increasing/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-eventual-safe-states "Find Eventual Safe States") -## 801. Minimum Swaps To Make Sequences Increasing (Medium) +## [801. Minimum Swaps To Make Sequences Increasing (Medium)](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing "ไฝฟๅบๅˆ—้€’ๅขž็š„ๆœ€ๅฐไบคๆขๆฌกๆ•ฐ")

    We have two integer sequences A and B of the same non-zero length.

    diff --git a/problems/minimum-time-difference/README.md b/problems/minimum-time-difference/README.md index 7d9e6f66b..e57eba38c 100644 --- a/problems/minimum-time-difference/README.md +++ b/problems/minimum-time-difference/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/single-element-in-a-sorted-array "Single Element in a Sorted Array") -## 539. Minimum Time Difference (Medium) +## [539. Minimum Time Difference (Medium)](https://leetcode.com/problems/minimum-time-difference "ๆœ€ๅฐๆ—ถ้—ดๅทฎ") Given a list of 24-hour clock time points in "Hour:Minutes" format, find the minimum minutes difference between any two time points in the list. diff --git a/problems/minimum-unique-word-abbreviation/README.md b/problems/minimum-unique-word-abbreviation/README.md index 8274ed2cf..ae11611d0 100644 --- a/problems/minimum-unique-word-abbreviation/README.md +++ b/problems/minimum-unique-word-abbreviation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/fizz-buzz "Fizz Buzz") -## 411. Minimum Unique Word Abbreviation (Hard) +## [411. Minimum Unique Word Abbreviation (Hard)](https://leetcode.com/problems/minimum-unique-word-abbreviation "ๆœ€็Ÿญ็‰นๅผ‚ๅ•่ฏ็ผฉๅ†™") diff --git a/problems/minimum-window-subsequence/README.md b/problems/minimum-window-subsequence/README.md index 5cc33be85..1cfa4e6fd 100644 --- a/problems/minimum-window-subsequence/README.md +++ b/problems/minimum-window-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/self-dividing-numbers "Self Dividing Numbers") -## 727. Minimum Window Subsequence (Hard) +## [727. Minimum Window Subsequence (Hard)](https://leetcode.com/problems/minimum-window-subsequence "ๆœ€ๅฐ็ช—ๅฃๅญๅบๅˆ—") diff --git a/problems/minimum-window-substring/README.md b/problems/minimum-window-substring/README.md index c24b86fc8..4f1d665f8 100644 --- a/problems/minimum-window-substring/README.md +++ b/problems/minimum-window-substring/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/combinations "Combinations") -## 76. Minimum Window Substring (Hard) +## [76. Minimum Window Substring (Hard)](https://leetcode.com/problems/minimum-window-substring "ๆœ€ๅฐ่ฆ†็›–ๅญไธฒ")

    Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).

    diff --git a/problems/mirror-reflection/README.md b/problems/mirror-reflection/README.md index f72e20975..e8770f848 100644 --- a/problems/mirror-reflection/README.md +++ b/problems/mirror-reflection/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/buddy-strings "Buddy Strings") -## 858. Mirror Reflection (Medium) +## [858. Mirror Reflection (Medium)](https://leetcode.com/problems/mirror-reflection "้•œ้ขๅๅฐ„")

    There is a special square room with mirrors on each of the four walls.  Except for the southwest corner, there are receptors on each of the remaining corners, numbered 0, 1, and 2.

    diff --git a/problems/missing-element-in-sorted-array/README.md b/problems/missing-element-in-sorted-array/README.md index e728e8d64..8f1e5714d 100644 --- a/problems/missing-element-in-sorted-array/README.md +++ b/problems/missing-element-in-sorted-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lexicographically-smallest-equivalent-string "Lexicographically Smallest Equivalent String") -## 1060. Missing Element in Sorted Array (Medium) +## [1060. Missing Element in Sorted Array (Medium)](https://leetcode.com/problems/missing-element-in-sorted-array "ๆœ‰ๅบๆ•ฐ็ป„ไธญ็š„็ผบๅคฑๅ…ƒ็ด ")

    Given a sorted array A of unique numbers, find the K-th missing number starting from the leftmost number of the array.

    diff --git a/problems/missing-number/README.md b/problems/missing-number/README.md index 7a0ef60ad..9ce156104 100644 --- a/problems/missing-number/README.md +++ b/problems/missing-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/alien-dictionary "Alien Dictionary") -## 268. Missing Number (Easy) +## [268. Missing Number (Easy)](https://leetcode.com/problems/missing-number "็ผบๅคฑๆ•ฐๅญ—")

    Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.

    diff --git a/problems/missing-ranges/README.md b/problems/missing-ranges/README.md index b143c5410..4ca37d48c 100644 --- a/problems/missing-ranges/README.md +++ b/problems/missing-ranges/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-gap "Maximum Gap") -## 163. Missing Ranges (Medium) +## [163. Missing Ranges (Medium)](https://leetcode.com/problems/missing-ranges "็ผบๅคฑ็š„ๅŒบ้—ด") diff --git a/problems/monotone-increasing-digits/README.md b/problems/monotone-increasing-digits/README.md index 70c0585e7..43aac5455 100644 --- a/problems/monotone-increasing-digits/README.md +++ b/problems/monotone-increasing-digits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/daily-temperatures "Daily Temperatures") -## 738. Monotone Increasing Digits (Medium) +## [738. Monotone Increasing Digits (Medium)](https://leetcode.com/problems/monotone-increasing-digits "ๅ•่ฐƒ้€’ๅขž็š„ๆ•ฐๅญ—")

    Given a non-negative integer N, find the largest number that is less than or equal to N with monotone increasing digits. diff --git a/problems/monotonic-array/README.md b/problems/monotonic-array/README.md index 45ef39294..d3dd108be 100644 --- a/problems/monotonic-array/README.md +++ b/problems/monotonic-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/increasing-order-search-tree "Increasing Order Search Tree") -## 896. Monotonic Array (Easy) +## [896. Monotonic Array (Easy)](https://leetcode.com/problems/monotonic-array "ๅ•่ฐƒๆ•ฐๅˆ—")

    An array is monotonic if it is either monotone increasing or monotone decreasing.

    diff --git a/problems/monthly-transactions-i/README.md b/problems/monthly-transactions-i/README.md index aed767bb1..e8fe65b36 100644 --- a/problems/monthly-transactions-i/README.md +++ b/problems/monthly-transactions-i/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/tournament-winners "Tournament Winners") -## 1193. Monthly Transactions I (Medium) +## [1193. Monthly Transactions I (Medium)](https://leetcode.com/problems/monthly-transactions-i "") diff --git a/problems/most-common-word/README.md b/problems/most-common-word/README.md index c94ad742c..ff2d8d755 100644 --- a/problems/most-common-word/README.md +++ b/problems/most-common-word/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/short-encoding-of-words "Short Encoding of Words") -## 819. Most Common Word (Easy) +## [819. Most Common Word (Easy)](https://leetcode.com/problems/most-common-word "ๆœ€ๅธธ่ง็š„ๅ•่ฏ")

    Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words.  It is guaranteed there is at least one word that isn't banned, and that the answer is unique.

    diff --git a/problems/most-frequent-subtree-sum/README.md b/problems/most-frequent-subtree-sum/README.md index 0d80f7e02..41294c4a6 100644 --- a/problems/most-frequent-subtree-sum/README.md +++ b/problems/most-frequent-subtree-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/fibonacci-number "Fibonacci Number") -## 508. Most Frequent Subtree Sum (Medium) +## [508. Most Frequent Subtree Sum (Medium)](https://leetcode.com/problems/most-frequent-subtree-sum "ๅ‡บ็Žฐๆฌกๆ•ฐๆœ€ๅคš็š„ๅญๆ ‘ๅ…ƒ็ด ๅ’Œ")

    Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values formed by the subtree rooted at that node (including the node itself). So what is the most frequent subtree sum value? If there is a tie, return all the values with the highest frequency in any order. diff --git a/problems/most-profit-assigning-work/README.md b/problems/most-profit-assigning-work/README.md index b40939af0..f40a5dbad 100644 --- a/problems/most-profit-assigning-work/README.md +++ b/problems/most-profit-assigning-work/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/making-a-large-island "Making A Large Island") -## 826. Most Profit Assigning Work (Medium) +## [826. Most Profit Assigning Work (Medium)](https://leetcode.com/problems/most-profit-assigning-work "ๅฎ‰ๆŽ’ๅทฅไฝœไปฅ่พพๅˆฐๆœ€ๅคงๆ”ถ็›Š")

    We have jobs: difficulty[i] is the difficulty of the ith job, and profit[i] is the profit of the ith job. 

    diff --git a/problems/most-stones-removed-with-same-row-or-column/README.md b/problems/most-stones-removed-with-same-row-or-column/README.md index ba37555c5..26a7a8e59 100644 --- a/problems/most-stones-removed-with-same-row-or-column/README.md +++ b/problems/most-stones-removed-with-same-row-or-column/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bag-of-tokens "Bag of Tokens") -## 947. Most Stones Removed with Same Row or Column (Medium) +## [947. Most Stones Removed with Same Row or Column (Medium)](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column "็งป้™คๆœ€ๅคš็š„ๅŒ่กŒๆˆ–ๅŒๅˆ—็Ÿณๅคด")

    On a 2D plane, we place stones at some integer coordinate points.  Each coordinate point may have at most one stone.

    diff --git a/problems/move-zeroes/README.md b/problems/move-zeroes/README.md index a6542d43f..d69fb3a9e 100644 --- a/problems/move-zeroes/README.md +++ b/problems/move-zeroes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/peeking-iterator "Peeking Iterator") -## 283. Move Zeroes (Easy) +## [283. Move Zeroes (Easy)](https://leetcode.com/problems/move-zeroes "็งปๅŠจ้›ถ")

    Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.

    diff --git a/problems/moving-average-from-data-stream/README.md b/problems/moving-average-from-data-stream/README.md index 18d1ac308..f403b390c 100644 --- a/problems/moving-average-from-data-stream/README.md +++ b/problems/moving-average-from-data-stream/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/top-k-frequent-elements "Top K Frequent Elements") -## 346. Moving Average from Data Stream (Easy) +## [346. Moving Average from Data Stream (Easy)](https://leetcode.com/problems/moving-average-from-data-stream "ๆ•ฐๆฎๆตไธญ็š„็งปๅŠจๅนณๅ‡ๅ€ผ") diff --git a/problems/moving-stones-until-consecutive-ii/README.md b/problems/moving-stones-until-consecutive-ii/README.md index 335103fab..9c27bf2c5 100644 --- a/problems/moving-stones-until-consecutive-ii/README.md +++ b/problems/moving-stones-until-consecutive-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/robot-bounded-in-circle "Robot Bounded In Circle") -## 1040. Moving Stones Until Consecutive II (Medium) +## [1040. Moving Stones Until Consecutive II (Medium)](https://leetcode.com/problems/moving-stones-until-consecutive-ii "็งปๅŠจ็Ÿณๅญ็›ดๅˆฐ่ฟž็ปญ II")

    On an infinite number line, the position of the i-th stone is given by stones[i].  Call a stone an endpoint stone if it has the smallest or largest position.

    diff --git a/problems/moving-stones-until-consecutive/README.md b/problems/moving-stones-until-consecutive/README.md index 16ab7a684..327286c92 100644 --- a/problems/moving-stones-until-consecutive/README.md +++ b/problems/moving-stones-until-consecutive/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/coloring-a-border "Coloring A Border") -## 1033. Moving Stones Until Consecutive (Easy) +## [1033. Moving Stones Until Consecutive (Easy)](https://leetcode.com/problems/moving-stones-until-consecutive "็งปๅŠจ็Ÿณๅญ็›ดๅˆฐ่ฟž็ปญ")

    Three stones are on a number line at positions a, b, and c.

    diff --git a/problems/multiply-strings/README.md b/problems/multiply-strings/README.md index d60819243..424c34457 100644 --- a/problems/multiply-strings/README.md +++ b/problems/multiply-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/wildcard-matching "Wildcard Matching") -## 43. Multiply Strings (Medium) +## [43. Multiply Strings (Medium)](https://leetcode.com/problems/multiply-strings "ๅญ—็ฌฆไธฒ็›ธไน˜")

    Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string.

    diff --git a/problems/my-calendar-i/README.md b/problems/my-calendar-i/README.md index a25837b7b..1b4f18777 100644 --- a/problems/my-calendar-i/README.md +++ b/problems/my-calendar-i/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-different-palindromic-subsequences "Count Different Palindromic Subsequences") -## 729. My Calendar I (Medium) +## [729. My Calendar I (Medium)](https://leetcode.com/problems/my-calendar-i "ๆˆ‘็š„ๆ—ฅ็จ‹ๅฎ‰ๆŽ’่กจ I")

    Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking.

    diff --git a/problems/my-calendar-ii/README.md b/problems/my-calendar-ii/README.md index 818d02c22..2337c03cb 100644 --- a/problems/my-calendar-ii/README.md +++ b/problems/my-calendar-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/my-calendar-iii "My Calendar III") -## 731. My Calendar II (Medium) +## [731. My Calendar II (Medium)](https://leetcode.com/problems/my-calendar-ii "ๆˆ‘็š„ๆ—ฅ็จ‹ๅฎ‰ๆŽ’่กจ II")

    Implement a MyCalendarTwo class to store your events. A new event can be added if adding the event will not cause a triple booking.

    diff --git a/problems/my-calendar-iii/README.md b/problems/my-calendar-iii/README.md index 7da55498f..655a9223d 100644 --- a/problems/my-calendar-iii/README.md +++ b/problems/my-calendar-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flood-fill "Flood Fill") -## 732. My Calendar III (Hard) +## [732. My Calendar III (Hard)](https://leetcode.com/problems/my-calendar-iii "ๆˆ‘็š„ๆ—ฅ็จ‹ๅฎ‰ๆŽ’่กจ III")

    Implement a MyCalendarThree class to store your events. A new event can always be added.

    diff --git a/problems/n-ary-tree-level-order-traversal/README.md b/problems/n-ary-tree-level-order-traversal/README.md index 153dbfa4c..13101684d 100644 --- a/problems/n-ary-tree-level-order-traversal/README.md +++ b/problems/n-ary-tree-level-order-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flatten-a-multilevel-doubly-linked-list "Flatten a Multilevel Doubly Linked List") -## 429. N-ary Tree Level Order Traversal (Easy) +## [429. N-ary Tree Level Order Traversal (Easy)](https://leetcode.com/problems/n-ary-tree-level-order-traversal "Nๅ‰ๆ ‘็š„ๅฑ‚ๅบ้ๅކ")

    Given an n-ary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).

    diff --git a/problems/n-ary-tree-postorder-traversal/README.md b/problems/n-ary-tree-postorder-traversal/README.md index ca9356256..6a0db72eb 100644 --- a/problems/n-ary-tree-postorder-traversal/README.md +++ b/problems/n-ary-tree-postorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/tag-validator "Tag Validator") -## 590. N-ary Tree Postorder Traversal (Easy) +## [590. N-ary Tree Postorder Traversal (Easy)](https://leetcode.com/problems/n-ary-tree-postorder-traversal "Nๅ‰ๆ ‘็š„ๅŽๅบ้ๅކ")

    Given an n-ary tree, return the postorder traversal of its nodes' values.

    diff --git a/problems/n-ary-tree-preorder-traversal/README.md b/problems/n-ary-tree-preorder-traversal/README.md index b434e170d..995bc3fb7 100644 --- a/problems/n-ary-tree-preorder-traversal/README.md +++ b/problems/n-ary-tree-preorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/n-ary-tree-postorder-traversal "N-ary Tree Postorder Traversal") -## 589. N-ary Tree Preorder Traversal (Easy) +## [589. N-ary Tree Preorder Traversal (Easy)](https://leetcode.com/problems/n-ary-tree-preorder-traversal "Nๅ‰ๆ ‘็š„ๅ‰ๅบ้ๅކ")

    Given an n-ary tree, return the preorder traversal of its nodes' values.

    diff --git a/problems/n-queens-ii/README.md b/problems/n-queens-ii/README.md index b2d2a7e3c..8e3dcd20c 100644 --- a/problems/n-queens-ii/README.md +++ b/problems/n-queens-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-subarray "Maximum Subarray") -## 52. N-Queens II (Hard) +## [52. N-Queens II (Hard)](https://leetcode.com/problems/n-queens-ii "N็š‡ๅŽ II")

    The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.

    diff --git a/problems/n-queens/README.md b/problems/n-queens/README.md index 8b05090dc..34e14423c 100644 --- a/problems/n-queens/README.md +++ b/problems/n-queens/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/n-queens-ii "N-Queens II") -## 51. N-Queens (Hard) +## [51. N-Queens (Hard)](https://leetcode.com/problems/n-queens "N็š‡ๅŽ")

    The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.

    diff --git a/problems/n-repeated-element-in-size-2n-array/README.md b/problems/n-repeated-element-in-size-2n-array/README.md index 41e0e8ec6..abc9a2414 100644 --- a/problems/n-repeated-element-in-size-2n-array/README.md +++ b/problems/n-repeated-element-in-size-2n-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-width-ramp "Maximum Width Ramp") -## 961. N-Repeated Element in Size 2N Array (Easy) +## [961. N-Repeated Element in Size 2N Array (Easy)](https://leetcode.com/problems/n-repeated-element-in-size-2n-array "้‡ๅค N ๆฌก็š„ๅ…ƒ็ด ")

    In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times.

    diff --git a/problems/n-th-tribonacci-number/README.md b/problems/n-th-tribonacci-number/README.md index 8eb3af2ed..d6596b9ea 100644 --- a/problems/n-th-tribonacci-number/README.md +++ b/problems/n-th-tribonacci-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/alphabet-board-path "Alphabet Board Path") -## 1137. N-th Tribonacci Number (Easy) +## [1137. N-th Tribonacci Number (Easy)](https://leetcode.com/problems/n-th-tribonacci-number "็ฌฌ N ไธชๆณฐๆณข้‚ฃๅฅ‘ๆ•ฐ")

    The Tribonacci sequence Tn is defined as follows: 

    diff --git a/problems/nested-list-weight-sum-ii/README.md b/problems/nested-list-weight-sum-ii/README.md index 0ff19363e..c138e0610 100644 --- a/problems/nested-list-weight-sum-ii/README.md +++ b/problems/nested-list-weight-sum-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/water-and-jug-problem "Water and Jug Problem") -## 364. Nested List Weight Sum II (Medium) +## [364. Nested List Weight Sum II (Medium)](https://leetcode.com/problems/nested-list-weight-sum-ii "ๅŠ ๆƒๅตŒๅฅ—ๅบๅˆ—ๅ’Œ II") diff --git a/problems/nested-list-weight-sum/README.md b/problems/nested-list-weight-sum/README.md index df9d83853..6dc0e4116 100644 --- a/problems/nested-list-weight-sum/README.md +++ b/problems/nested-list-weight-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-substring-with-at-most-k-distinct-characters "Longest Substring with At Most K Distinct Characters") -## 339. Nested List Weight Sum (Easy) +## [339. Nested List Weight Sum (Easy)](https://leetcode.com/problems/nested-list-weight-sum "ๅตŒๅฅ—ๅˆ—่กจๆƒ้‡ๅ’Œ") diff --git a/problems/network-delay-time/README.md b/problems/network-delay-time/README.md index ea5e13257..97e5070fe 100644 --- a/problems/network-delay-time/README.md +++ b/problems/network-delay-time/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-smallest-letter-greater-than-target "Find Smallest Letter Greater Than Target") -## 743. Network Delay Time (Medium) +## [743. Network Delay Time (Medium)](https://leetcode.com/problems/network-delay-time "็ฝ‘็ปœๅปถ่ฟŸๆ—ถ้—ด")

    There are N network nodes, labelled 1 to N.

    diff --git a/problems/new-21-game/README.md b/problems/new-21-game/README.md index 7372d621b..9ff2ad99e 100644 --- a/problems/new-21-game/README.md +++ b/problems/new-21-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/push-dominoes "Push Dominoes") -## 837. New 21 Game (Medium) +## [837. New 21 Game (Medium)](https://leetcode.com/problems/new-21-game "ๆ–ฐ21็‚น")

    Alice plays the following game, loosely based on the card game "21".

    diff --git a/problems/new-users-daily-count/README.md b/problems/new-users-daily-count/README.md index 6dc6c82c8..5e541c651 100644 --- a/problems/new-users-daily-count/README.md +++ b/problems/new-users-daily-count/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/defanging-an-ip-address "Defanging an IP Address") -## 1107. New Users Daily Count (Medium) +## [1107. New Users Daily Count (Medium)](https://leetcode.com/problems/new-users-daily-count "") diff --git a/problems/next-closest-time/README.md b/problems/next-closest-time/README.md index e625c6916..483f5f326 100644 --- a/problems/next-closest-time/README.md +++ b/problems/next-closest-time/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/baseball-game "Baseball Game") -## 681. Next Closest Time (Medium) +## [681. Next Closest Time (Medium)](https://leetcode.com/problems/next-closest-time "ๆœ€่ฟ‘ๆ—ถๅˆป") diff --git a/problems/next-greater-element-i/README.md b/problems/next-greater-element-i/README.md index d6478463c..7872c7bc6 100644 --- a/problems/next-greater-element-i/README.md +++ b/problems/next-greater-element-i/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/random-point-in-non-overlapping-rectangles "Random Point in Non-overlapping Rectangles") -## 496. Next Greater Element I (Easy) +## [496. Next Greater Element I (Easy)](https://leetcode.com/problems/next-greater-element-i "ไธ‹ไธ€ไธชๆ›ดๅคงๅ…ƒ็ด  I")

    You are given two arrays (without duplicates) nums1 and nums2 where nums1โ€™s elements are subset of nums2. Find all the next greater numbers for nums1's elements in the corresponding places of nums2. diff --git a/problems/next-greater-element-ii/README.md b/problems/next-greater-element-ii/README.md index ba4a8e4e3..9319385f9 100644 --- a/problems/next-greater-element-ii/README.md +++ b/problems/next-greater-element-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/base-7 "Base 7") -## 503. Next Greater Element II (Medium) +## [503. Next Greater Element II (Medium)](https://leetcode.com/problems/next-greater-element-ii "ไธ‹ไธ€ไธชๆ›ดๅคงๅ…ƒ็ด  II")

    Given a circular array (the next element of the last element is the first element of the array), print the Next Greater Number for every element. The Next Greater Number of a number x is the first greater number to its traversing-order next in the array, which means you could search circularly to find its next greater number. If it doesn't exist, output -1 for this number. diff --git a/problems/next-greater-element-iii/README.md b/problems/next-greater-element-iii/README.md index 3ffe9c06d..e4142ef55 100644 --- a/problems/next-greater-element-iii/README.md +++ b/problems/next-greater-element-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-words-in-a-string-iii "Reverse Words in a String III") -## 556. Next Greater Element III (Medium) +## [556. Next Greater Element III (Medium)](https://leetcode.com/problems/next-greater-element-iii "ไธ‹ไธ€ไธชๆ›ดๅคงๅ…ƒ็ด  III")

    Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and is greater in value than n. If no such positive 32-bit integer exists, you need to return -1.

    diff --git a/problems/next-greater-node-in-linked-list/README.md b/problems/next-greater-node-in-linked-list/README.md index 4d9d5a429..f6d719a3e 100644 --- a/problems/next-greater-node-in-linked-list/README.md +++ b/problems/next-greater-node-in-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-enclaves "Number of Enclaves") -## 1019. Next Greater Node In Linked List (Medium) +## [1019. Next Greater Node In Linked List (Medium)](https://leetcode.com/problems/next-greater-node-in-linked-list "้“พ่กจไธญ็š„ไธ‹ไธ€ไธชๆ›ดๅคง่Š‚็‚น")

    We are given a linked list with head as the first node.  Let's number the nodes in the list: node_1, node_2, node_3, ... etc.

    diff --git a/problems/next-permutation/README.md b/problems/next-permutation/README.md index a43b37bb6..01640d01a 100644 --- a/problems/next-permutation/README.md +++ b/problems/next-permutation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-valid-parentheses "Longest Valid Parentheses") -## 31. Next Permutation (Medium) +## [31. Next Permutation (Medium)](https://leetcode.com/problems/next-permutation "ไธ‹ไธ€ไธชๆŽ’ๅˆ—")

    Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.

    diff --git a/problems/nim-game/README.md b/problems/nim-game/README.md index 52e5a95a1..97383164b 100644 --- a/problems/nim-game/README.md +++ b/problems/nim-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flip-game "Flip Game") -## 292. Nim Game (Easy) +## [292. Nim Game (Easy)](https://leetcode.com/problems/nim-game "Nim ๆธธๆˆ")

    You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the winner. You will take the first turn to remove the stones.

    diff --git a/problems/non-decreasing-array/README.md b/problems/non-decreasing-array/README.md index 504912c38..749fe28f8 100644 --- a/problems/non-decreasing-array/README.md +++ b/problems/non-decreasing-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/path-sum-iv "Path Sum IV") -## 665. Non-decreasing Array (Easy) +## [665. Non-decreasing Array (Easy)](https://leetcode.com/problems/non-decreasing-array "้ž้€’ๅ‡ๆ•ฐๅˆ—")

    Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. diff --git a/problems/non-negative-integers-without-consecutive-ones/README.md b/problems/non-negative-integers-without-consecutive-ones/README.md index 8aaccc683..63ca0feba 100644 --- a/problems/non-negative-integers-without-consecutive-ones/README.md +++ b/problems/non-negative-integers-without-consecutive-ones/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/human-traffic-of-stadium "Human Traffic of Stadium") -## 600. Non-negative Integers without Consecutive Ones (Hard) +## [600. Non-negative Integers without Consecutive Ones (Hard)](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones "ไธๅซ่ฟž็ปญ1็š„้ž่ดŸๆ•ดๆ•ฐ")

    Given a positive integer n, find the number of non-negative integers less than or equal to n, whose binary representations do NOT contain consecutive ones.

    diff --git a/problems/non-overlapping-intervals/README.md b/problems/non-overlapping-intervals/README.md index 788115877..e7eef44f5 100644 --- a/problems/non-overlapping-intervals/README.md +++ b/problems/non-overlapping-intervals/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-right-interval "Find Right Interval") -## 435. Non-overlapping Intervals (Medium) +## [435. Non-overlapping Intervals (Medium)](https://leetcode.com/problems/non-overlapping-intervals "ๆ— ้‡ๅ ๅŒบ้—ด")

    Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.

    diff --git a/problems/not-boring-movies/README.md b/problems/not-boring-movies/README.md index f1cf692f4..31351aa46 100644 --- a/problems/not-boring-movies/README.md +++ b/problems/not-boring-movies/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/task-scheduler "Task Scheduler") -## 620. Not Boring Movies (Easy) +## [620. Not Boring Movies (Easy)](https://leetcode.com/problems/not-boring-movies "ๆœ‰่ถฃ็š„็”ตๅฝฑ") X city opened a new cinema, many people would like to go to this cinema. The cinema also gives out a poster indicating the movies’ ratings and descriptions.

    Please write a SQL query to output movies with an odd numbered ID and a description that is not 'boring'. Order the result by rating.

    diff --git a/problems/nth-digit/README.md b/problems/nth-digit/README.md index 1ff335084..541afe836 100644 --- a/problems/nth-digit/README.md +++ b/problems/nth-digit/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-watch "Binary Watch") -## 400. Nth Digit (Easy) +## [400. Nth Digit (Easy)](https://leetcode.com/problems/nth-digit "็ฌฌNไธชๆ•ฐๅญ—")

    Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...

    diff --git a/problems/nth-highest-salary/README.md b/problems/nth-highest-salary/README.md index 686c48419..1e339e539 100644 --- a/problems/nth-highest-salary/README.md +++ b/problems/nth-highest-salary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rank-scores "Rank Scores") -## 177. Nth Highest Salary (Medium) +## [177. Nth Highest Salary (Medium)](https://leetcode.com/problems/nth-highest-salary "็ฌฌN้ซ˜็š„่–ชๆฐด")

    Write a SQL query to get the nth highest salary from the Employee table.

    diff --git a/problems/nth-magical-number/README.md b/problems/nth-magical-number/README.md index 5708a9533..4a99f6b3f 100644 --- a/problems/nth-magical-number/README.md +++ b/problems/nth-magical-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/profitable-schemes "Profitable Schemes") -## 878. Nth Magical Number (Hard) +## [878. Nth Magical Number (Hard)](https://leetcode.com/problems/nth-magical-number "็ฌฌ N ไธช็ฅžๅฅ‡ๆ•ฐๅญ—")

    A positive integer is magical if it is divisible by either A or B.

    diff --git a/problems/number-complement/README.md b/problems/number-complement/README.md index ceb921fde..2c097e868 100644 --- a/problems/number-complement/README.md +++ b/problems/number-complement/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/total-hamming-distance "Total Hamming Distance") -## 476. Number Complement (Easy) +## [476. Number Complement (Easy)](https://leetcode.com/problems/number-complement "ๆ•ฐๅญ—็š„่กฅๆ•ฐ")

    Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.

    diff --git a/problems/number-of-1-bits/README.md b/problems/number-of-1-bits/README.md index 112b70cf6..22b05d93e 100644 --- a/problems/number-of-1-bits/README.md +++ b/problems/number-of-1-bits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-frequency "Word Frequency") -## 191. Number of 1 Bits (Easy) +## [191. Number of 1 Bits (Easy)](https://leetcode.com/problems/number-of-1-bits "ไฝ1็š„ไธชๆ•ฐ")

    Write a function that takes an unsigned integer and return the number of '1' bits it has (also known as the Hamming weight).

    diff --git a/problems/number-of-atoms/README.md b/problems/number-of-atoms/README.md index 71d31c08c..5ff5aea5d 100644 --- a/problems/number-of-atoms/README.md +++ b/problems/number-of-atoms/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-window-subsequence "Minimum Window Subsequence") -## 726. Number of Atoms (Hard) +## [726. Number of Atoms (Hard)](https://leetcode.com/problems/number-of-atoms "ๅŽŸๅญ็š„ๆ•ฐ้‡")

    Given a chemical formula (given as a string), return the count of each atom.

    diff --git a/problems/number-of-boomerangs/README.md b/problems/number-of-boomerangs/README.md index e7a0911da..d34651dbb 100644 --- a/problems/number-of-boomerangs/README.md +++ b/problems/number-of-boomerangs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-all-numbers-disappeared-in-an-array "Find All Numbers Disappeared in an Array") -## 447. Number of Boomerangs (Easy) +## [447. Number of Boomerangs (Easy)](https://leetcode.com/problems/number-of-boomerangs "ๅ›žๆ—‹้•–็š„ๆ•ฐ้‡")

    Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the distance between i and j equals the distance between i and k (the order of the tuple matters).

    diff --git a/problems/number-of-connected-components-in-an-undirected-graph/README.md b/problems/number-of-connected-components-in-an-undirected-graph/README.md index 5af74ce4b..46fd2f91d 100644 --- a/problems/number-of-connected-components-in-an-undirected-graph/README.md +++ b/problems/number-of-connected-components-in-an-undirected-graph/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/wiggle-sort-ii "Wiggle Sort II") -## 323. Number of Connected Components in an Undirected Graph (Medium) +## [323. Number of Connected Components in an Undirected Graph (Medium)](https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph "ๆ— ๅ‘ๅ›พไธญ่ฟž้€šๅˆ†้‡็š„ๆ•ฐ็›ฎ") diff --git a/problems/number-of-corner-rectangles/README.md b/problems/number-of-corner-rectangles/README.md index 0d9d3de48..32e0b4078 100644 --- a/problems/number-of-corner-rectangles/README.md +++ b/problems/number-of-corner-rectangles/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/ip-to-cidr "IP to CIDR") -## 750. Number Of Corner Rectangles (Medium) +## [750. Number Of Corner Rectangles (Medium)](https://leetcode.com/problems/number-of-corner-rectangles "่ง’็Ÿฉๅฝข็š„ๆ•ฐ้‡") diff --git a/problems/number-of-days-in-a-month/README.md b/problems/number-of-days-in-a-month/README.md index b9b0e79e0..1ce2d734c 100644 --- a/problems/number-of-days-in-a-month/README.md +++ b/problems/number-of-days-in-a-month/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-vowels-from-a-string "Remove Vowels from a String") -## 1118. Number of Days in a Month (Easy) +## [1118. Number of Days in a Month (Easy)](https://leetcode.com/problems/number-of-days-in-a-month "ไธ€ๆœˆๆœ‰ๅคšๅฐ‘ๅคฉ") diff --git a/problems/number-of-dice-rolls-with-target-sum/README.md b/problems/number-of-dice-rolls-with-target-sum/README.md index c9e82a3af..5ea632094 100644 --- a/problems/number-of-dice-rolls-with-target-sum/README.md +++ b/problems/number-of-dice-rolls-with-target-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/swap-for-longest-repeated-character-substring "Swap For Longest Repeated Character Substring") -## 1155. Number of Dice Rolls With Target Sum (Medium) +## [1155. Number of Dice Rolls With Target Sum (Medium)](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum "ๆŽท้ชฐๅญ็š„N็งๆ–นๆณ•")

    You have d dice, and each die has f faces numbered 1, 2, ..., f.

    diff --git a/problems/number-of-digit-one/README.md b/problems/number-of-digit-one/README.md index bdefa112d..a3856ae7b 100644 --- a/problems/number-of-digit-one/README.md +++ b/problems/number-of-digit-one/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/palindrome-linked-list "Palindrome Linked List") -## 233. Number of Digit One (Hard) +## [233. Number of Digit One (Hard)](https://leetcode.com/problems/number-of-digit-one "ๆ•ฐๅญ— 1 ็š„ไธชๆ•ฐ")

    Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.

    diff --git a/problems/number-of-distinct-islands-ii/README.md b/problems/number-of-distinct-islands-ii/README.md index e4a6c89fa..7ac5111bc 100644 --- a/problems/number-of-distinct-islands-ii/README.md +++ b/problems/number-of-distinct-islands-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-ascii-delete-sum-for-two-strings "Minimum ASCII Delete Sum for Two Strings") -## 711. Number of Distinct Islands II (Hard) +## [711. Number of Distinct Islands II (Hard)](https://leetcode.com/problems/number-of-distinct-islands-ii "ไธๅŒๅฒ›ๅฑฟ็š„ๆ•ฐ้‡ II") diff --git a/problems/number-of-distinct-islands/README.md b/problems/number-of-distinct-islands/README.md index 0d0f0a2a9..8e3a0523e 100644 --- a/problems/number-of-distinct-islands/README.md +++ b/problems/number-of-distinct-islands/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-area-of-island "Max Area of Island") -## 694. Number of Distinct Islands (Medium) +## [694. Number of Distinct Islands (Medium)](https://leetcode.com/problems/number-of-distinct-islands "ไธๅŒๅฒ›ๅฑฟ็š„ๆ•ฐ้‡") diff --git a/problems/number-of-enclaves/README.md b/problems/number-of-enclaves/README.md index 156a2c33d..6f3695bc7 100644 --- a/problems/number-of-enclaves/README.md +++ b/problems/number-of-enclaves/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-outermost-parentheses "Remove Outermost Parentheses") -## 1020. Number of Enclaves (Medium) +## [1020. Number of Enclaves (Medium)](https://leetcode.com/problems/number-of-enclaves "้ฃžๅœฐ็š„ๆ•ฐ้‡")

    Given a 2D array A, each cell is 0 (representing sea) or 1 (representing land)

    diff --git a/problems/number-of-equivalent-domino-pairs/README.md b/problems/number-of-equivalent-domino-pairs/README.md index 8a8e9ab00..86ad7dee4 100644 --- a/problems/number-of-equivalent-domino-pairs/README.md +++ b/problems/number-of-equivalent-domino-pairs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-path-with-alternating-colors "Shortest Path with Alternating Colors") -## 1128. Number of Equivalent Domino Pairs (Easy) +## [1128. Number of Equivalent Domino Pairs (Easy)](https://leetcode.com/problems/number-of-equivalent-domino-pairs "็ญ‰ไปทๅคš็ฑณ่ฏบ้ชจ็‰Œๅฏน็š„ๆ•ฐ้‡")

    Given a list of dominoesdominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a==c and b==d), or (a==d and b==c) - that is, one domino can be rotated to be equal to another domino.

    diff --git a/problems/number-of-islands-ii/README.md b/problems/number-of-islands-ii/README.md index acfde081b..bdd04d63b 100644 --- a/problems/number-of-islands-ii/README.md +++ b/problems/number-of-islands-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/additive-number "Additive Number") -## 305. Number of Islands II (Hard) +## [305. Number of Islands II (Hard)](https://leetcode.com/problems/number-of-islands-ii "ๅฒ›ๅฑฟๆ•ฐ้‡ II") diff --git a/problems/number-of-islands/README.md b/problems/number-of-islands/README.md index 56fe571d9..b60f77966 100644 --- a/problems/number-of-islands/README.md +++ b/problems/number-of-islands/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bitwise-and-of-numbers-range "Bitwise AND of Numbers Range") -## 200. Number of Islands (Medium) +## [200. Number of Islands (Medium)](https://leetcode.com/problems/number-of-islands "ๅฒ›ๅฑฟๆ•ฐ้‡")

    Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.

    diff --git a/problems/number-of-lines-to-write-string/README.md b/problems/number-of-lines-to-write-string/README.md index 018bebfd3..e6a3e521b 100644 --- a/problems/number-of-lines-to-write-string/README.md +++ b/problems/number-of-lines-to-write-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-increase-to-keep-city-skyline "Max Increase to Keep City Skyline") -## 806. Number of Lines To Write String (Easy) +## [806. Number of Lines To Write String (Easy)](https://leetcode.com/problems/number-of-lines-to-write-string "ๅ†™ๅญ—็ฌฆไธฒ้œ€่ฆ็š„่กŒๆ•ฐ")

    We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would cause the width of the line to exceed 100 units, it is written on the next line. We are given an array widths, an array where widths[0] is the width of 'a', widths[1] is the width of 'b', ..., and widths[25] is the width of 'z'.

    diff --git a/problems/number-of-longest-increasing-subsequence/README.md b/problems/number-of-longest-increasing-subsequence/README.md index d64ecc526..c900871b6 100644 --- a/problems/number-of-longest-increasing-subsequence/README.md +++ b/problems/number-of-longest-increasing-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-continuous-increasing-subsequence "Longest Continuous Increasing Subsequence") -## 673. Number of Longest Increasing Subsequence (Medium) +## [673. Number of Longest Increasing Subsequence (Medium)](https://leetcode.com/problems/number-of-longest-increasing-subsequence "ๆœ€้•ฟ้€’ๅขžๅญๅบๅˆ—็š„ไธชๆ•ฐ")

    Given an unsorted array of integers, find the number of longest increasing subsequence. diff --git a/problems/number-of-matching-subsequences/README.md b/problems/number-of-matching-subsequences/README.md index 6c7670340..1318a7084 100644 --- a/problems/number-of-matching-subsequences/README.md +++ b/problems/number-of-matching-subsequences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/preimage-size-of-factorial-zeroes-function "Preimage Size of Factorial Zeroes Function") -## 792. Number of Matching Subsequences (Medium) +## [792. Number of Matching Subsequences (Medium)](https://leetcode.com/problems/number-of-matching-subsequences "ๅŒน้…ๅญๅบๅˆ—็š„ๅ•่ฏๆ•ฐ")

    Given string S and a dictionary of words words, find the number of words[i] that is a subsequence of S.

    diff --git a/problems/number-of-music-playlists/README.md b/problems/number-of-music-playlists/README.md index 3a1935e02..6bd851271 100644 --- a/problems/number-of-music-playlists/README.md +++ b/problems/number-of-music-playlists/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-add-to-make-parentheses-valid "Minimum Add to Make Parentheses Valid") -## 920. Number of Music Playlists (Hard) +## [920. Number of Music Playlists (Hard)](https://leetcode.com/problems/number-of-music-playlists "ๆ’ญๆ”พๅˆ—่กจ็š„ๆ•ฐ้‡")

    Your music player contains N different songs and she wants to listen to L (not necessarily different) songs during your trip.  You create a playlist so that:

    diff --git a/problems/number-of-recent-calls/README.md b/problems/number-of-recent-calls/README.md index 19307c6cc..6247df9d7 100644 --- a/problems/number-of-recent-calls/README.md +++ b/problems/number-of-recent-calls/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-bridge "Shortest Bridge") -## 933. Number of Recent Calls (Easy) +## [933. Number of Recent Calls (Easy)](https://leetcode.com/problems/number-of-recent-calls "ๆœ€่ฟ‘็š„่ฏทๆฑ‚ๆฌกๆ•ฐ")

    Write a class RecentCounter to count recent requests.

    diff --git a/problems/number-of-segments-in-a-string/README.md b/problems/number-of-segments-in-a-string/README.md index 5b60f5e8b..3e0061558 100644 --- a/problems/number-of-segments-in-a-string/README.md +++ b/problems/number-of-segments-in-a-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/non-overlapping-intervals "Non-overlapping Intervals") -## 434. Number of Segments in a String (Easy) +## [434. Number of Segments in a String (Easy)](https://leetcode.com/problems/number-of-segments-in-a-string "ๅญ—็ฌฆไธฒไธญ็š„ๅ•่ฏๆ•ฐ")

    Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.

    diff --git a/problems/number-of-squareful-arrays/README.md b/problems/number-of-squareful-arrays/README.md index 84fb1465b..2bbd316fe 100644 --- a/problems/number-of-squareful-arrays/README.md +++ b/problems/number-of-squareful-arrays/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-the-town-judge "Find the Town Judge") -## 996. Number of Squareful Arrays (Hard) +## [996. Number of Squareful Arrays (Hard)](https://leetcode.com/problems/number-of-squareful-arrays "ๆญฃๆ–นๅฝขๆ•ฐ็ป„็š„ๆ•ฐ็›ฎ")

    Given an array A of non-negative integers, the array is squareful if for every pair of adjacent elements, their sum is a perfect square.

    diff --git a/problems/number-of-subarrays-with-bounded-maximum/README.md b/problems/number-of-subarrays-with-bounded-maximum/README.md index 05023ee4e..d922e90b9 100644 --- a/problems/number-of-subarrays-with-bounded-maximum/README.md +++ b/problems/number-of-subarrays-with-bounded-maximum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rotate-string "Rotate String") -## 795. Number of Subarrays with Bounded Maximum (Medium) +## [795. Number of Subarrays with Bounded Maximum (Medium)](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum "ๅŒบ้—ดๅญๆ•ฐ็ป„ไธชๆ•ฐ")

    We are given an array A of positive integers, and two positive integers L and R (L <= R).

    diff --git a/problems/number-of-submatrices-that-sum-to-target/README.md b/problems/number-of-submatrices-that-sum-to-target/README.md index 6e52c1190..b496db698 100644 --- a/problems/number-of-submatrices-that-sum-to-target/README.md +++ b/problems/number-of-submatrices-that-sum-to-target/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/project-employees-i "Project Employees I") -## 1074. Number of Submatrices That Sum to Target (Hard) +## [1074. Number of Submatrices That Sum to Target (Hard)](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target "ๅ…ƒ็ด ๅ’Œไธบ็›ฎๆ ‡ๅ€ผ็š„ๅญ็Ÿฉ้˜ตๆ•ฐ้‡")

    Given a matrix, and a target, return the number of non-empty submatrices that sum to target.

    diff --git a/problems/number-of-valid-subarrays/README.md b/problems/number-of-valid-subarrays/README.md index 90289cbf9..d416e1775 100644 --- a/problems/number-of-valid-subarrays/README.md +++ b/problems/number-of-valid-subarrays/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/fixed-point "Fixed Point") -## 1063. Number of Valid Subarrays (Hard) +## [1063. Number of Valid Subarrays (Hard)](https://leetcode.com/problems/number-of-valid-subarrays "ๆœ‰ๆ•ˆๅญๆ•ฐ็ป„็š„ๆ•ฐ็›ฎ")

    Given an array A of integers, return the number of non-empty continuous subarrays that satisfy the following condition:

    diff --git a/problems/number-of-valid-words-for-each-puzzle/README.md b/problems/number-of-valid-words-for-each-puzzle/README.md index ce38df05c..3639bcb3d 100644 --- a/problems/number-of-valid-words-for-each-puzzle/README.md +++ b/problems/number-of-valid-words-for-each-puzzle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reformat-department-table "Reformat Department Table") -## 1178. Number of Valid Words for Each Puzzle (Hard) +## [1178. Number of Valid Words for Each Puzzle (Hard)](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle "็Œœๅญ—่ฐœ") With respect to a given puzzle string, a word is valid if both the following conditions are satisfied:
      diff --git a/problems/numbers-at-most-n-given-digit-set/README.md b/problems/numbers-at-most-n-given-digit-set/README.md index b7d360742..da7c4b88d 100644 --- a/problems/numbers-at-most-n-given-digit-set/README.md +++ b/problems/numbers-at-most-n-given-digit-set/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-permutations-for-di-sequence "Valid Permutations for DI Sequence") -## 902. Numbers At Most N Given Digit Set (Hard) +## [902. Numbers At Most N Given Digit Set (Hard)](https://leetcode.com/problems/numbers-at-most-n-given-digit-set "ๆœ€ๅคงไธบ N ็š„ๆ•ฐๅญ—็ป„ๅˆ")

      We have a sorted set of digits D, a non-empty subset of {'1','2','3','4','5','6','7','8','9'}.  (Note that '0' is not included.)

      diff --git a/problems/numbers-with-repeated-digits/README.md b/problems/numbers-with-repeated-digits/README.md index 0627d498c..eb00fb3bd 100644 --- a/problems/numbers-with-repeated-digits/README.md +++ b/problems/numbers-with-repeated-digits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/partition-array-into-three-parts-with-equal-sum "Partition Array Into Three Parts With Equal Sum") -## 1012. Numbers With Repeated Digits (Hard) +## [1012. Numbers With Repeated Digits (Hard)](https://leetcode.com/problems/numbers-with-repeated-digits "่‡ณๅฐ‘ๆœ‰ 1 ไฝ้‡ๅค็š„ๆ•ฐๅญ—")

      Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit.

      diff --git a/problems/numbers-with-same-consecutive-differences/README.md b/problems/numbers-with-same-consecutive-differences/README.md index 7f6ef744e..74419a222 100644 --- a/problems/numbers-with-same-consecutive-differences/README.md +++ b/problems/numbers-with-same-consecutive-differences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-cameras "Binary Tree Cameras") -## 967. Numbers With Same Consecutive Differences (Medium) +## [967. Numbers With Same Consecutive Differences (Medium)](https://leetcode.com/problems/numbers-with-same-consecutive-differences "่ฟž็ปญๅทฎ็›ธๅŒ็š„ๆ•ฐๅญ—")

      Return all non-negative integers of length N such that the absolute difference between every two consecutive digits is K.

      diff --git a/problems/occurrences-after-bigram/README.md b/problems/occurrences-after-bigram/README.md index 96d46f88d..3b766fd6c 100644 --- a/problems/occurrences-after-bigram/README.md +++ b/problems/occurrences-after-bigram/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/letter-tile-possibilities "Letter Tile Possibilities") -## 1078. Occurrences After Bigram (Easy) +## [1078. Occurrences After Bigram (Easy)](https://leetcode.com/problems/occurrences-after-bigram "Bigram ๅˆ†่ฏ")

      Given words first and second, consider occurrences in some text of the form "first second third", where second comes immediately after first, and third comes immediately after second.

      diff --git a/problems/odd-even-jump/README.md b/problems/odd-even-jump/README.md index fec4805cb..499efc796 100644 --- a/problems/odd-even-jump/README.md +++ b/problems/odd-even-jump/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-perimeter-triangle "Largest Perimeter Triangle") -## 975. Odd Even Jump (Hard) +## [975. Odd Even Jump (Hard)](https://leetcode.com/problems/odd-even-jump "ๅฅ‡ๅถ่ทณ")

      You are given an integer array A.  From some starting index, you can make a series of jumps.  The (1st, 3rd, 5th, ...) jumps in the series are called odd numbered jumps, and the (2nd, 4th, 6th, ...) jumps in the series are called even numbered jumps.

      diff --git a/problems/odd-even-linked-list/README.md b/problems/odd-even-linked-list/README.md index bac06cdd7..809c5d64d 100644 --- a/problems/odd-even-linked-list/README.md +++ b/problems/odd-even-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-increasing-path-in-a-matrix "Longest Increasing Path in a Matrix") -## 328. Odd Even Linked List (Medium) +## [328. Odd Even Linked List (Medium)](https://leetcode.com/problems/odd-even-linked-list "ๅฅ‡ๅถ้“พ่กจ")

      Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.

      diff --git a/problems/one-edit-distance/README.md b/problems/one-edit-distance/README.md index 0a36f6da4..80b022090 100644 --- a/problems/one-edit-distance/README.md +++ b/problems/one-edit-distance/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-peak-element "Find Peak Element") -## 161. One Edit Distance (Medium) +## [161. One Edit Distance (Medium)](https://leetcode.com/problems/one-edit-distance "็›ธ้š”ไธบ 1 ็š„็ผ–่พ‘่ท็ฆป")

      Given two strings s and t, determine if they are both one edit distance apart.

      diff --git a/problems/ones-and-zeroes/README.md b/problems/ones-and-zeroes/README.md index beff6f14f..1f1dab26f 100644 --- a/problems/ones-and-zeroes/README.md +++ b/problems/ones-and-zeroes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/heaters "Heaters") -## 474. Ones and Zeroes (Medium) +## [474. Ones and Zeroes (Medium)](https://leetcode.com/problems/ones-and-zeroes "ไธ€ๅ’Œ้›ถ")

      In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue.

      diff --git a/problems/online-election/README.md b/problems/online-election/README.md index 0be5bd621..095e48566 100644 --- a/problems/online-election/README.md +++ b/problems/online-election/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sort-an-array "Sort an Array") -## 911. Online Election (Medium) +## [911. Online Election (Medium)](https://leetcode.com/problems/online-election "ๅœจ็บฟ้€‰ไธพ")

      In an election, the i-th vote was cast for persons[i] at time times[i].

      diff --git a/problems/online-majority-element-in-subarray/README.md b/problems/online-majority-element-in-subarray/README.md index 95aa5321d..41356eb18 100644 --- a/problems/online-majority-element-in-subarray/README.md +++ b/problems/online-majority-element-in-subarray/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/market-analysis-i "Market Analysis I") -## 1157. Online Majority Element In Subarray (Hard) +## [1157. Online Majority Element In Subarray (Hard)](https://leetcode.com/problems/online-majority-element-in-subarray "ๅญๆ•ฐ็ป„ไธญๅ ็ปๅคงๅคšๆ•ฐ็š„ๅ…ƒ็ด ")

      Implementing the class MajorityChecker, which has the following API:

      diff --git a/problems/online-stock-span/README.md b/problems/online-stock-span/README.md index 266c22b01..22c885cf1 100644 --- a/problems/online-stock-span/README.md +++ b/problems/online-stock-span/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/numbers-at-most-n-given-digit-set "Numbers At Most N Given Digit Set") -## 901. Online Stock Span (Medium) +## [901. Online Stock Span (Medium)](https://leetcode.com/problems/online-stock-span "่‚ก็ฅจไปทๆ ผ่ทจๅบฆ")

      Write a class StockSpanner which collects daily price quotes for some stock, and returns the span of that stock's price for the current day.

      diff --git a/problems/open-the-lock/README.md b/problems/open-the-lock/README.md index 583ba2ca7..ca151345b 100644 --- a/problems/open-the-lock/README.md +++ b/problems/open-the-lock/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/cracking-the-safe "Cracking the Safe") -## 752. Open the Lock (Medium) +## [752. Open the Lock (Medium)](https://leetcode.com/problems/open-the-lock "ๆ‰“ๅผ€่ฝฌ็›˜้”")

      You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'. The wheels can rotate freely and wrap around: for example we can turn '9' to be '0', or '0' to be '9'. Each move consists of turning one wheel one slot. diff --git a/problems/optimal-account-balancing/README.md b/problems/optimal-account-balancing/README.md index 87a0f0ff9..607cdaa8e 100644 --- a/problems/optimal-account-balancing/README.md +++ b/problems/optimal-account-balancing/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-the-repetitions "Count The Repetitions") -## 465. Optimal Account Balancing (Hard) +## [465. Optimal Account Balancing (Hard)](https://leetcode.com/problems/optimal-account-balancing "ๆœ€ไผ˜่ดฆๅ•ๅนณ่กก") diff --git a/problems/optimal-division/README.md b/problems/optimal-division/README.md index e424f2802..d72f3a290 100644 --- a/problems/optimal-division/README.md +++ b/problems/optimal-division/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/brick-wall "Brick Wall") -## 553. Optimal Division (Medium) +## [553. Optimal Division (Medium)](https://leetcode.com/problems/optimal-division "ๆœ€ไผ˜้™คๆณ•")

      Given a list of positive integers, the adjacent integers will perform the float division. For example, [2,3,4] -> 2 / 3 / 4.

      diff --git a/problems/optimize-water-distribution-in-a-village/README.md b/problems/optimize-water-distribution-in-a-village/README.md index 5185fc0db..24c37ad2d 100644 --- a/problems/optimize-water-distribution-in-a-village/README.md +++ b/problems/optimize-water-distribution-in-a-village/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/invalid-transactions "Invalid Transactions") -## 1168. Optimize Water Distribution in a Village (Hard) +## [1168. Optimize Water Distribution in a Village (Hard)](https://leetcode.com/problems/optimize-water-distribution-in-a-village "ๆฐด่ต„ๆบๅˆ†้…ไผ˜ๅŒ–") diff --git a/problems/orderly-queue/README.md b/problems/orderly-queue/README.md index 1c126fcef..c26709ec0 100644 --- a/problems/orderly-queue/README.md +++ b/problems/orderly-queue/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rle-iterator "RLE Iterator") -## 899. Orderly Queue (Hard) +## [899. Orderly Queue (Hard)](https://leetcode.com/problems/orderly-queue "ๆœ‰ๅบ้˜Ÿๅˆ—")

      A string S of lowercase letters is given.  Then, we may make any number of moves.

      diff --git a/problems/out-of-boundary-paths/README.md b/problems/out-of-boundary-paths/README.md index d4e4b42da..a3719733d 100644 --- a/problems/out-of-boundary-paths/README.md +++ b/problems/out-of-boundary-paths/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/employee-bonus "Employee Bonus") -## 576. Out of Boundary Paths (Medium) +## [576. Out of Boundary Paths (Medium)](https://leetcode.com/problems/out-of-boundary-paths "ๅ‡บ็•Œ็š„่ทฏๅพ„ๆ•ฐ")

      There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross the grid boundary in four directions (up, down, left, right). However, you can at most move N times. Find out the number of paths to move the ball out of grid boundary. The answer may be very large, return it after mod 109 + 7.

      diff --git a/problems/output-contest-matches/README.md b/problems/output-contest-matches/README.md index 16305a3e9..5dd263202 100644 --- a/problems/output-contest-matches/README.md +++ b/problems/output-contest-matches/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/boundary-of-binary-tree "Boundary of Binary Tree") -## 544. Output Contest Matches (Medium) +## [544. Output Contest Matches (Medium)](https://leetcode.com/problems/output-contest-matches "่พ“ๅ‡บๆฏ”่ต›ๅŒน้…ๅฏน")

      During the NBA playoffs, we always arrange the rather strong team to play with the rather weak team, like make the rank 1 team play with the rank nth team, which is a good strategy to make the contest more interesting. Now, you're given n teams, you need to output their final contest matches in the form of a string. diff --git a/problems/pacific-atlantic-water-flow/README.md b/problems/pacific-atlantic-water-flow/README.md index 9d8186d8f..ade44570b 100644 --- a/problems/pacific-atlantic-water-flow/README.md +++ b/problems/pacific-atlantic-water-flow/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sentence-screen-fitting "Sentence Screen Fitting") -## 417. Pacific Atlantic Water Flow (Medium) +## [417. Pacific Atlantic Water Flow (Medium)](https://leetcode.com/problems/pacific-atlantic-water-flow "ๅคชๅนณๆด‹ๅคง่ฅฟๆด‹ๆฐดๆต้—ฎ้ข˜")

      Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left and top edges of the matrix and the "Atlantic ocean" touches the right and bottom edges.

      diff --git a/problems/paint-fence/README.md b/problems/paint-fence/README.md index 00f50a00e..148618965 100644 --- a/problems/paint-fence/README.md +++ b/problems/paint-fence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-the-celebrity "Find the Celebrity") -## 276. Paint Fence (Easy) +## [276. Paint Fence (Easy)](https://leetcode.com/problems/paint-fence "ๆ …ๆ ๆถ‚่‰ฒ") diff --git a/problems/paint-house-ii/README.md b/problems/paint-house-ii/README.md index 84f35313f..f837896d9 100644 --- a/problems/paint-house-ii/README.md +++ b/problems/paint-house-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/palindrome-permutation "Palindrome Permutation") -## 265. Paint House II (Hard) +## [265. Paint House II (Hard)](https://leetcode.com/problems/paint-house-ii "็ฒ‰ๅˆทๆˆฟๅญ II") diff --git a/problems/paint-house/README.md b/problems/paint-house/README.md index 0bfa495fb..8d0eae4ec 100644 --- a/problems/paint-house/README.md +++ b/problems/paint-house/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-paths "Binary Tree Paths") -## 256. Paint House (Easy) +## [256. Paint House (Easy)](https://leetcode.com/problems/paint-house "็ฒ‰ๅˆทๆˆฟๅญ") diff --git a/problems/pairs-of-songs-with-total-durations-divisible-by-60/README.md b/problems/pairs-of-songs-with-total-durations-divisible-by-60/README.md index b15545b6b..34ecb218e 100644 --- a/problems/pairs-of-songs-with-total-durations-divisible-by-60/README.md +++ b/problems/pairs-of-songs-with-total-durations-divisible-by-60/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/capacity-to-ship-packages-within-d-days "Capacity To Ship Packages Within D Days") -## 1010. Pairs of Songs With Total Durations Divisible by 60 (Easy) +## [1010. Pairs of Songs With Total Durations Divisible by 60 (Easy)](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60 "ๆ€ปๆŒ็ปญๆ—ถ้—ดๅฏ่ขซ 60 ๆ•ด้™ค็š„ๆญŒๆ›ฒ")

      In a list of songs, the i-th song has a duration of time[i] seconds. 

      diff --git a/problems/palindrome-linked-list/README.md b/problems/palindrome-linked-list/README.md index b5c80fb63..a70f16f45 100644 --- a/problems/palindrome-linked-list/README.md +++ b/problems/palindrome-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lowest-common-ancestor-of-a-binary-search-tree "Lowest Common Ancestor of a Binary Search Tree") -## 234. Palindrome Linked List (Easy) +## [234. Palindrome Linked List (Easy)](https://leetcode.com/problems/palindrome-linked-list "ๅ›žๆ–‡้“พ่กจ")

      Given a singly linked list, determine if it is a palindrome.

      diff --git a/problems/palindrome-number/README.md b/problems/palindrome-number/README.md index 49c22490b..bf22a0386 100644 --- a/problems/palindrome-number/README.md +++ b/problems/palindrome-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/regular-expression-matching "Regular Expression Matching") -## 9. Palindrome Number (Easy) +## [9. Palindrome Number (Easy)](https://leetcode.com/problems/palindrome-number "ๅ›žๆ–‡ๆ•ฐ")

      Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.

      diff --git a/problems/palindrome-pairs/README.md b/problems/palindrome-pairs/README.md index 51bcfc9b9..797712f1f 100644 --- a/problems/palindrome-pairs/README.md +++ b/problems/palindrome-pairs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/house-robber-iii "House Robber III") -## 336. Palindrome Pairs (Hard) +## [336. Palindrome Pairs (Hard)](https://leetcode.com/problems/palindrome-pairs "ๅ›žๆ–‡ๅฏน")

      Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[i] + words[j] is a palindrome.

      diff --git a/problems/palindrome-partitioning-ii/README.md b/problems/palindrome-partitioning-ii/README.md index cebbdbaf6..7c5520f4d 100644 --- a/problems/palindrome-partitioning-ii/README.md +++ b/problems/palindrome-partitioning-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/clone-graph "Clone Graph") -## 132. Palindrome Partitioning II (Hard) +## [132. Palindrome Partitioning II (Hard)](https://leetcode.com/problems/palindrome-partitioning-ii "ๅˆ†ๅ‰ฒๅ›žๆ–‡ไธฒ II")

      Given a string s, partition s such that every substring of the partition is a palindrome.

      diff --git a/problems/palindrome-partitioning/README.md b/problems/palindrome-partitioning/README.md index 1d3896a2a..edfc550cf 100644 --- a/problems/palindrome-partitioning/README.md +++ b/problems/palindrome-partitioning/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/palindrome-partitioning-ii "Palindrome Partitioning II") -## 131. Palindrome Partitioning (Medium) +## [131. Palindrome Partitioning (Medium)](https://leetcode.com/problems/palindrome-partitioning "ๅˆ†ๅ‰ฒๅ›žๆ–‡ไธฒ")

      Given a string s, partition s such that every substring of the partition is a palindrome.

      diff --git a/problems/palindrome-permutation-ii/README.md b/problems/palindrome-permutation-ii/README.md index ca50839d5..ac5d96264 100644 --- a/problems/palindrome-permutation-ii/README.md +++ b/problems/palindrome-permutation-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/missing-number "Missing Number") -## 267. Palindrome Permutation II (Medium) +## [267. Palindrome Permutation II (Medium)](https://leetcode.com/problems/palindrome-permutation-ii "ๅ›žๆ–‡ๆŽ’ๅˆ— II")

      Given a string s, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be form.

      diff --git a/problems/palindrome-permutation/README.md b/problems/palindrome-permutation/README.md index 80152da14..935bf732b 100644 --- a/problems/palindrome-permutation/README.md +++ b/problems/palindrome-permutation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/palindrome-permutation-ii "Palindrome Permutation II") -## 266. Palindrome Permutation (Easy) +## [266. Palindrome Permutation (Easy)](https://leetcode.com/problems/palindrome-permutation "ๅ›žๆ–‡ๆŽ’ๅˆ—")

      Given a string, determine if a permutation of the string could form a palindrome.

      diff --git a/problems/palindromic-substrings/README.md b/problems/palindromic-substrings/README.md index 9d70fdbd7..e197ee619 100644 --- a/problems/palindromic-substrings/README.md +++ b/problems/palindromic-substrings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/replace-words "Replace Words") -## 647. Palindromic Substrings (Medium) +## [647. Palindromic Substrings (Medium)](https://leetcode.com/problems/palindromic-substrings "ๅ›žๆ–‡ๅญไธฒ")

      Given a string, your task is to count how many palindromic substrings in this string.

      diff --git a/problems/pancake-sorting/README.md b/problems/pancake-sorting/README.md index ac9085d72..7befdf534 100644 --- a/problems/pancake-sorting/README.md +++ b/problems/pancake-sorting/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/powerful-integers "Powerful Integers") -## 969. Pancake Sorting (Medium) +## [969. Pancake Sorting (Medium)](https://leetcode.com/problems/pancake-sorting "็…Ž้ฅผๆŽ’ๅบ")

      Given an array A, we can perform a pancake flip: We choose some positive integer k <= A.length, then reverse the order of the first k elements of A.  We want to perform zero or more pancake flips (doing them one after another in succession) to sort the array A.

      diff --git a/problems/parallel-courses/README.md b/problems/parallel-courses/README.md index f1d32a7ea..6ef152def 100644 --- a/problems/parallel-courses/README.md +++ b/problems/parallel-courses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/n-th-tribonacci-number "N-th Tribonacci Number") -## 1136. Parallel Courses (Hard) +## [1136. Parallel Courses (Hard)](https://leetcode.com/problems/parallel-courses "ๅนณ่กŒ่ฏพ็จ‹") diff --git a/problems/parse-lisp-expression/README.md b/problems/parse-lisp-expression/README.md index 26ab9124e..8d240afae 100644 --- a/problems/parse-lisp-expression/README.md +++ b/problems/parse-lisp-expression/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sentence-similarity-ii "Sentence Similarity II") -## 736. Parse Lisp Expression (Hard) +## [736. Parse Lisp Expression (Hard)](https://leetcode.com/problems/parse-lisp-expression "Lisp ่ฏญๆณ•่งฃๆž")

      You are given a string expression representing a Lisp-like expression to return the integer value of. diff --git a/problems/parsing-a-boolean-expression/README.md b/problems/parsing-a-boolean-expression/README.md index b8140e85f..30029252d 100644 --- a/problems/parsing-a-boolean-expression/README.md +++ b/problems/parsing-a-boolean-expression/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/new-users-daily-count "New Users Daily Count") -## 1106. Parsing A Boolean Expression (Hard) +## [1106. Parsing A Boolean Expression (Hard)](https://leetcode.com/problems/parsing-a-boolean-expression "่งฃๆžๅธƒๅฐ”่กจ่พพๅผ")

      Return the result of evaluating a given boolean expression, represented as a string.

      diff --git a/problems/partition-array-for-maximum-sum/README.md b/problems/partition-array-for-maximum-sum/README.md index e4ff42879..08ebc734e 100644 --- a/problems/partition-array-for-maximum-sum/README.md +++ b/problems/partition-array-for-maximum-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-duplicate-substring "Longest Duplicate Substring") -## 1043. Partition Array for Maximum Sum (Medium) +## [1043. Partition Array for Maximum Sum (Medium)](https://leetcode.com/problems/partition-array-for-maximum-sum "ๅˆ†้š”ๆ•ฐ็ป„ไปฅๅพ—ๅˆฐๆœ€ๅคงๅ’Œ")

      Given an integer array A, you partition the array into (contiguous) subarrays of length at most K.  After partitioning, each subarray has their values changed to become the maximum value of that subarray.

      diff --git a/problems/partition-array-into-disjoint-intervals/README.md b/problems/partition-array-into-disjoint-intervals/README.md index f35b50d7a..e0f1e8953 100644 --- a/problems/partition-array-into-disjoint-intervals/README.md +++ b/problems/partition-array-into-disjoint-intervals/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-subsets "Word Subsets") -## 915. Partition Array into Disjoint Intervals (Medium) +## [915. Partition Array into Disjoint Intervals (Medium)](https://leetcode.com/problems/partition-array-into-disjoint-intervals "ๅˆ†ๅ‰ฒๆ•ฐ็ป„")

      Given an array A, partition it into two (contiguous) subarrays left and right so that:

      diff --git a/problems/partition-array-into-three-parts-with-equal-sum/README.md b/problems/partition-array-into-three-parts-with-equal-sum/README.md index b002be985..617d531c1 100644 --- a/problems/partition-array-into-three-parts-with-equal-sum/README.md +++ b/problems/partition-array-into-three-parts-with-equal-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/best-sightseeing-pair "Best Sightseeing Pair") -## 1013. Partition Array Into Three Parts With Equal Sum (Easy) +## [1013. Partition Array Into Three Parts With Equal Sum (Easy)](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum "ๅฐ†ๆ•ฐ็ป„ๅˆ†ๆˆๅ’Œ็›ธ็ญ‰็š„ไธ‰ไธช้ƒจๅˆ†")

      Given an array A of integers, return true if and only if we can partition the array into three non-empty parts with equal sums.

      diff --git a/problems/partition-equal-subset-sum/README.md b/problems/partition-equal-subset-sum/README.md index 8ff74bbaf..de9e9da24 100644 --- a/problems/partition-equal-subset-sum/README.md +++ b/problems/partition-equal-subset-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/pacific-atlantic-water-flow "Pacific Atlantic Water Flow") -## 416. Partition Equal Subset Sum (Medium) +## [416. Partition Equal Subset Sum (Medium)](https://leetcode.com/problems/partition-equal-subset-sum "ๅˆ†ๅ‰ฒ็ญ‰ๅ’Œๅญ้›†")

      Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.

      diff --git a/problems/partition-labels/README.md b/problems/partition-labels/README.md index ca3d87e03..a712e88e2 100644 --- a/problems/partition-labels/README.md +++ b/problems/partition-labels/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-plus-sign "Largest Plus Sign") -## 763. Partition Labels (Medium) +## [763. Partition Labels (Medium)](https://leetcode.com/problems/partition-labels "ๅˆ’ๅˆ†ๅญ—ๆฏๅŒบ้—ด")

      A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one part, and return a list of integers representing the size of these parts. diff --git a/problems/partition-list/README.md b/problems/partition-list/README.md index 48245992e..50f89c4d6 100644 --- a/problems/partition-list/README.md +++ b/problems/partition-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/scramble-string "Scramble String") -## 86. Partition List (Medium) +## [86. Partition List (Medium)](https://leetcode.com/problems/partition-list "ๅˆ†้š”้“พ่กจ")

      Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.

      diff --git a/problems/partition-to-k-equal-sum-subsets/README.md b/problems/partition-to-k-equal-sum-subsets/README.md index 04abbe17c..8e6965555 100644 --- a/problems/partition-to-k-equal-sum-subsets/README.md +++ b/problems/partition-to-k-equal-sum-subsets/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/falling-squares "Falling Squares") -## 698. Partition to K Equal Sum Subsets (Medium) +## [698. Partition to K Equal Sum Subsets (Medium)](https://leetcode.com/problems/partition-to-k-equal-sum-subsets "ๅˆ’ๅˆ†ไธบkไธช็›ธ็ญ‰็š„ๅญ้›†")

      Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subsets whose sums are all equal.

      diff --git a/problems/pascals-triangle-ii/README.md b/problems/pascals-triangle-ii/README.md index e6d457062..e8ae762da 100644 --- a/problems/pascals-triangle-ii/README.md +++ b/problems/pascals-triangle-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/triangle "Triangle") -## 119. Pascal's Triangle II (Easy) +## [119. Pascal's Triangle II (Easy)](https://leetcode.com/problems/pascals-triangle-ii "ๆจ่พ‰ไธ‰่ง’ II")

      Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle.

      diff --git a/problems/pascals-triangle/README.md b/problems/pascals-triangle/README.md index 294300050..84634d9b5 100644 --- a/problems/pascals-triangle/README.md +++ b/problems/pascals-triangle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/pascals-triangle-ii "Pascal's Triangle II") -## 118. Pascal's Triangle (Easy) +## [118. Pascal's Triangle (Easy)](https://leetcode.com/problems/pascals-triangle "ๆจ่พ‰ไธ‰่ง’")

      Given a non-negative integer numRows, generate the first numRows of Pascal's triangle.

      diff --git a/problems/patching-array/README.md b/problems/patching-array/README.md index 655583541..30f0a78d8 100644 --- a/problems/patching-array/README.md +++ b/problems/patching-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/verify-preorder-serialization-of-a-binary-tree "Verify Preorder Serialization of a Binary Tree") -## 330. Patching Array (Hard) +## [330. Patching Array (Hard)](https://leetcode.com/problems/patching-array "ๆŒ‰่ฆๆฑ‚่กฅ้ฝๆ•ฐ็ป„")

      Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can be formed by the sum of some elements in the array. Return the minimum number of patches required.

      diff --git a/problems/path-in-zigzag-labelled-binary-tree/README.md b/problems/path-in-zigzag-labelled-binary-tree/README.md index 74b927d9a..ef8048b43 100644 --- a/problems/path-in-zigzag-labelled-binary-tree/README.md +++ b/problems/path-in-zigzag-labelled-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/filling-bookcase-shelves "Filling Bookcase Shelves") -## 1104. Path In Zigzag Labelled Binary Tree (Medium) +## [1104. Path In Zigzag Labelled Binary Tree (Medium)](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree "ไบŒๅ‰ๆ ‘ๅฏป่ทฏ")

      In an infinite binary tree where every node has two children, the nodes are labelled in row order.

      diff --git a/problems/path-sum-ii/README.md b/problems/path-sum-ii/README.md index efeab12ef..c866b5769 100644 --- a/problems/path-sum-ii/README.md +++ b/problems/path-sum-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flatten-binary-tree-to-linked-list "Flatten Binary Tree to Linked List") -## 113. Path Sum II (Medium) +## [113. Path Sum II (Medium)](https://leetcode.com/problems/path-sum-ii "่ทฏๅพ„ๆ€ปๅ’Œ II")

      Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.

      diff --git a/problems/path-sum-iii/README.md b/problems/path-sum-iii/README.md index a53ac47e7..6eb2edb78 100644 --- a/problems/path-sum-iii/README.md +++ b/problems/path-sum-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-all-anagrams-in-a-string "Find All Anagrams in a String") -## 437. Path Sum III (Easy) +## [437. Path Sum III (Easy)](https://leetcode.com/problems/path-sum-iii "่ทฏๅพ„ๆ€ปๅ’Œ III")

      You are given a binary tree in which each node contains an integer value.

      diff --git a/problems/path-sum-iv/README.md b/problems/path-sum-iv/README.md index eb05e3ba5..b34a4feb6 100644 --- a/problems/path-sum-iv/README.md +++ b/problems/path-sum-iv/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/beautiful-arrangement-ii "Beautiful Arrangement II") -## 666. Path Sum IV (Medium) +## [666. Path Sum IV (Medium)](https://leetcode.com/problems/path-sum-iv "่ทฏๅพ„ๅ’Œ IV")

      If the depth of a tree is smaller than 5, then this tree can be represented by a list of three-digits integers.

      diff --git a/problems/path-sum/README.md b/problems/path-sum/README.md index 9b46c513d..a86e50a66 100644 --- a/problems/path-sum/README.md +++ b/problems/path-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/path-sum-ii "Path Sum II") -## 112. Path Sum (Easy) +## [112. Path Sum (Easy)](https://leetcode.com/problems/path-sum "่ทฏๅพ„ๆ€ปๅ’Œ")

      Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.

      diff --git a/problems/path-with-maximum-minimum-value/README.md b/problems/path-with-maximum-minimum-value/README.md index a0711bca2..2855bc72f 100644 --- a/problems/path-with-maximum-minimum-value/README.md +++ b/problems/path-with-maximum-minimum-value/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/distribute-candies-to-people "Distribute Candies to People") -## 1102. Path With Maximum Minimum Value (Medium) +## [1102. Path With Maximum Minimum Value (Medium)](https://leetcode.com/problems/path-with-maximum-minimum-value "ๅพ—ๅˆ†ๆœ€้ซ˜็š„่ทฏๅพ„")

      Given a matrix of integers A with R rows and C columns, find the maximum score of a path starting at [0,0] and ending at [R-1,C-1].

      diff --git a/problems/peak-index-in-a-mountain-array/README.md b/problems/peak-index-in-a-mountain-array/README.md index d1c4cab3c..71bdd1705 100644 --- a/problems/peak-index-in-a-mountain-array/README.md +++ b/problems/peak-index-in-a-mountain-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/car-fleet "Car Fleet") -## 852. Peak Index in a Mountain Array (Easy) +## [852. Peak Index in a Mountain Array (Easy)](https://leetcode.com/problems/peak-index-in-a-mountain-array "ๅฑฑ่„‰ๆ•ฐ็ป„็š„ๅณฐ้กถ็ดขๅผ•")

      Let's call an array A a mountain if the following properties hold:

      diff --git a/problems/peeking-iterator/README.md b/problems/peeking-iterator/README.md index 045757dd9..bafc60b67 100644 --- a/problems/peeking-iterator/README.md +++ b/problems/peeking-iterator/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/inorder-successor-in-bst "Inorder Successor in BST") -## 284. Peeking Iterator (Medium) +## [284. Peeking Iterator (Medium)](https://leetcode.com/problems/peeking-iterator "้กถ็ซฏ่ฟญไปฃๅ™จ")

      Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- it essentially peek() at the element that will be returned by the next call to next().

      diff --git a/problems/perfect-number/README.md b/problems/perfect-number/README.md index 22222944d..8a9994fcf 100644 --- a/problems/perfect-number/README.md +++ b/problems/perfect-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/most-frequent-subtree-sum "Most Frequent Subtree Sum") -## 507. Perfect Number (Easy) +## [507. Perfect Number (Easy)](https://leetcode.com/problems/perfect-number "ๅฎŒ็พŽๆ•ฐ")

      We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself.

      diff --git a/problems/perfect-rectangle/README.md b/problems/perfect-rectangle/README.md index bceac2ea6..c3dac2ecc 100644 --- a/problems/perfect-rectangle/README.md +++ b/problems/perfect-rectangle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/is-subsequence "Is Subsequence") -## 391. Perfect Rectangle (Hard) +## [391. Perfect Rectangle (Hard)](https://leetcode.com/problems/perfect-rectangle "ๅฎŒ็พŽ็Ÿฉๅฝข")

      Given N axis-aligned rectangles where N > 0, determine if they all together form an exact cover of a rectangular region.

      diff --git a/problems/perfect-squares/README.md b/problems/perfect-squares/README.md index 1f10e9196..4d091cd7d 100644 --- a/problems/perfect-squares/README.md +++ b/problems/perfect-squares/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/wiggle-sort "Wiggle Sort") -## 279. Perfect Squares (Medium) +## [279. Perfect Squares (Medium)](https://leetcode.com/problems/perfect-squares "ๅฎŒๅ…จๅนณๆ–นๆ•ฐ")

      Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.

      diff --git a/problems/permutation-in-string/README.md b/problems/permutation-in-string/README.md index 3af27159c..f87b14787 100644 --- a/problems/permutation-in-string/README.md +++ b/problems/permutation-in-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-vacation-days "Maximum Vacation Days") -## 567. Permutation in String (Medium) +## [567. Permutation in String (Medium)](https://leetcode.com/problems/permutation-in-string "ๅญ—็ฌฆไธฒ็š„ๆŽ’ๅˆ—")

      Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's permutations is the substring of the second string.

      diff --git a/problems/permutation-sequence/README.md b/problems/permutation-sequence/README.md index 0b0104b92..3b7a4b88e 100644 --- a/problems/permutation-sequence/README.md +++ b/problems/permutation-sequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rotate-list "Rotate List") -## 60. Permutation Sequence (Medium) +## [60. Permutation Sequence (Medium)](https://leetcode.com/problems/permutation-sequence "็ฌฌkไธชๆŽ’ๅˆ—")

      The set [1,2,3,...,n] contains a total of n! unique permutations.

      diff --git a/problems/permutations-ii/README.md b/problems/permutations-ii/README.md index dadcef4bd..70cd26333 100644 --- a/problems/permutations-ii/README.md +++ b/problems/permutations-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rotate-image "Rotate Image") -## 47. Permutations II (Medium) +## [47. Permutations II (Medium)](https://leetcode.com/problems/permutations-ii "ๅ…จๆŽ’ๅˆ— II")

      Given a collection of numbers that might contain duplicates, return all possible unique permutations.

      diff --git a/problems/permutations/README.md b/problems/permutations/README.md index fa00b55e0..1dcb5d5fc 100644 --- a/problems/permutations/README.md +++ b/problems/permutations/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/permutations-ii "Permutations II") -## 46. Permutations (Medium) +## [46. Permutations (Medium)](https://leetcode.com/problems/permutations "ๅ…จๆŽ’ๅˆ—")

      Given a collection of distinct integers, return all possible permutations.

      diff --git a/problems/plus-one-linked-list/README.md b/problems/plus-one-linked-list/README.md index c387c0c2c..15ae1a822 100644 --- a/problems/plus-one-linked-list/README.md +++ b/problems/plus-one-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/range-addition "Range Addition") -## 369. Plus One Linked List (Medium) +## [369. Plus One Linked List (Medium)](https://leetcode.com/problems/plus-one-linked-list "็ป™ๅ•้“พ่กจๅŠ ไธ€") diff --git a/problems/plus-one/README.md b/problems/plus-one/README.md index 008619c4a..173a1578e 100644 --- a/problems/plus-one/README.md +++ b/problems/plus-one/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/add-binary "Add Binary") -## 66. Plus One (Easy) +## [66. Plus One (Easy)](https://leetcode.com/problems/plus-one "ๅŠ ไธ€")

      Given a non-empty array of digits representing a non-negative integer, plus one to the integer.

      diff --git a/problems/poor-pigs/README.md b/problems/poor-pigs/README.md index cad82a719..a72ee4e6e 100644 --- a/problems/poor-pigs/README.md +++ b/problems/poor-pigs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/repeated-substring-pattern "Repeated Substring Pattern") -## 458. Poor Pigs (Hard) +## [458. Poor Pigs (Hard)](https://leetcode.com/problems/poor-pigs "ๅฏๆ€œ็š„ๅฐ็Œช")

      There are 1000 buckets, one and only one of them is poisonous, while the rest are filled with water. They all look identical. If a pig drinks the poison it will die within 15 minutes. What is the minimum amount of pigs you need to figure out which bucket is poisonous within one hour?

      diff --git a/problems/populating-next-right-pointers-in-each-node-ii/README.md b/problems/populating-next-right-pointers-in-each-node-ii/README.md index 44d88ea5d..0bf62d507 100644 --- a/problems/populating-next-right-pointers-in-each-node-ii/README.md +++ b/problems/populating-next-right-pointers-in-each-node-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/pascals-triangle "Pascal's Triangle") -## 117. Populating Next Right Pointers in Each Node II (Medium) +## [117. Populating Next Right Pointers in Each Node II (Medium)](https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii "ๅกซๅ……ๆฏไธช่Š‚็‚น็š„ไธ‹ไธ€ไธชๅณไพง่Š‚็‚นๆŒ‡้’ˆ II")

      Given a binary tree

      diff --git a/problems/populating-next-right-pointers-in-each-node/README.md b/problems/populating-next-right-pointers-in-each-node/README.md index 080bf4fbc..78591ccd9 100644 --- a/problems/populating-next-right-pointers-in-each-node/README.md +++ b/problems/populating-next-right-pointers-in-each-node/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/populating-next-right-pointers-in-each-node-ii "Populating Next Right Pointers in Each Node II") -## 116. Populating Next Right Pointers in Each Node (Medium) +## [116. Populating Next Right Pointers in Each Node (Medium)](https://leetcode.com/problems/populating-next-right-pointers-in-each-node "ๅกซๅ……ๆฏไธช่Š‚็‚น็š„ไธ‹ไธ€ไธชๅณไพง่Š‚็‚นๆŒ‡้’ˆ")

      You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following definition:

      diff --git a/problems/positions-of-large-groups/README.md b/problems/positions-of-large-groups/README.md index c3fcf7be7..b36d002f7 100644 --- a/problems/positions-of-large-groups/README.md +++ b/problems/positions-of-large-groups/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/masking-personal-information "Masking Personal Information") -## 830. Positions of Large Groups (Easy) +## [830. Positions of Large Groups (Easy)](https://leetcode.com/problems/positions-of-large-groups "่พƒๅคงๅˆ†็ป„็š„ไฝ็ฝฎ")

      In a string S of lowercase letters, these letters form consecutive groups of the same character.

      diff --git a/problems/possible-bipartition/README.md b/problems/possible-bipartition/README.md index 1d1b69403..760353ff2 100644 --- a/problems/possible-bipartition/README.md +++ b/problems/possible-bipartition/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/super-egg-drop "Super Egg Drop") -## 886. Possible Bipartition (Medium) +## [886. Possible Bipartition (Medium)](https://leetcode.com/problems/possible-bipartition "ๅฏ่ƒฝ็š„ไบŒๅˆ†ๆณ•")

      Given a set of N people (numbered 1, 2, ..., N), we would like to split everyone into two groups of any size.

      diff --git a/problems/pour-water/README.md b/problems/pour-water/README.md index 612f37429..986b3b9ec 100644 --- a/problems/pour-water/README.md +++ b/problems/pour-water/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/pyramid-transition-matrix "Pyramid Transition Matrix") -## 755. Pour Water (Medium) +## [755. Pour Water (Medium)](https://leetcode.com/problems/pour-water "ๅ€’ๆฐด") diff --git a/problems/power-of-four/README.md b/problems/power-of-four/README.md index ed395e9b5..9b345c1c9 100644 --- a/problems/power-of-four/README.md +++ b/problems/power-of-four/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/integer-break "Integer Break") -## 342. Power of Four (Easy) +## [342. Power of Four (Easy)](https://leetcode.com/problems/power-of-four "4็š„ๅน‚")

      Given an integer (signed 32 bits), write a function to check whether it is a power of 4.

      diff --git a/problems/power-of-three/README.md b/problems/power-of-three/README.md index 1ed8e25ca..1d12a691c 100644 --- a/problems/power-of-three/README.md +++ b/problems/power-of-three/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-of-range-sum "Count of Range Sum") -## 326. Power of Three (Easy) +## [326. Power of Three (Easy)](https://leetcode.com/problems/power-of-three "3็š„ๅน‚")

      Given an integer, write a function to determine if it is a power of three.

      diff --git a/problems/power-of-two/README.md b/problems/power-of-two/README.md index f66ead4cf..b25cb49c4 100644 --- a/problems/power-of-two/README.md +++ b/problems/power-of-two/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/implement-queue-using-stacks "Implement Queue using Stacks") -## 231. Power of Two (Easy) +## [231. Power of Two (Easy)](https://leetcode.com/problems/power-of-two "2็š„ๅน‚")

      Given an integer, write a function to determine if it is a power of two.

      diff --git a/problems/powerful-integers/README.md b/problems/powerful-integers/README.md index 554550695..73a76c2a0 100644 --- a/problems/powerful-integers/README.md +++ b/problems/powerful-integers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flip-binary-tree-to-match-preorder-traversal "Flip Binary Tree To Match Preorder Traversal") -## 970. Powerful Integers (Easy) +## [970. Powerful Integers (Easy)](https://leetcode.com/problems/powerful-integers "ๅผบๆ•ดๆ•ฐ")

      Given two positive integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0.

      diff --git a/problems/powx-n/README.md b/problems/powx-n/README.md index accb0445b..ce4e532e6 100644 --- a/problems/powx-n/README.md +++ b/problems/powx-n/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/n-queens "N-Queens") -## 50. Pow(x, n) (Medium) +## [50. Pow(x, n) (Medium)](https://leetcode.com/problems/powx-n "Pow(x, n)")

      Implement pow(x, n), which calculates x raised to the power n (xn).

      diff --git a/problems/predict-the-winner/README.md b/problems/predict-the-winner/README.md index 1b086b84d..db3326063 100644 --- a/problems/predict-the-winner/README.md +++ b/problems/predict-the-winner/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-consecutive-ones-ii "Max Consecutive Ones II") -## 486. Predict the Winner (Medium) +## [486. Predict the Winner (Medium)](https://leetcode.com/problems/predict-the-winner "้ข„ๆต‹่ตขๅฎถ")

      Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then player 1 and so on. Each time a player picks a number, that number will not be available for the next player. This continues until all the scores have been chosen. The player with the maximum score wins.

      diff --git a/problems/prefix-and-suffix-search/README.md b/problems/prefix-and-suffix-search/README.md index 97a480bab..7d38cfaae 100644 --- a/problems/prefix-and-suffix-search/README.md +++ b/problems/prefix-and-suffix-search/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/min-cost-climbing-stairs "Min Cost Climbing Stairs") -## 745. Prefix and Suffix Search (Hard) +## [745. Prefix and Suffix Search (Hard)](https://leetcode.com/problems/prefix-and-suffix-search "ๅ‰็ผ€ๅ’ŒๅŽ็ผ€ๆœ็ดข")

      Given many words, words[i] has weight i.

      diff --git a/problems/preimage-size-of-factorial-zeroes-function/README.md b/problems/preimage-size-of-factorial-zeroes-function/README.md index 64c2be8c0..18caa7eaf 100644 --- a/problems/preimage-size-of-factorial-zeroes-function/README.md +++ b/problems/preimage-size-of-factorial-zeroes-function/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-tic-tac-toe-state "Valid Tic-Tac-Toe State") -## 793. Preimage Size of Factorial Zeroes Function (Hard) +## [793. Preimage Size of Factorial Zeroes Function (Hard)](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function "้˜ถไน˜ๅ‡ฝๆ•ฐๅŽKไธช้›ถ")

      Let f(x) be the number of zeroes at the end of x!. (Recall that x! = 1 * 2 * 3 * ... * x, and by convention, 0! = 1.)

      diff --git a/problems/previous-permutation-with-one-swap/README.md b/problems/previous-permutation-with-one-swap/README.md index 2a4d5c964..83e650de7 100644 --- a/problems/previous-permutation-with-one-swap/README.md +++ b/problems/previous-permutation-with-one-swap/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/distant-barcodes "Distant Barcodes") -## 1053. Previous Permutation With One Swap (Medium) +## [1053. Previous Permutation With One Swap (Medium)](https://leetcode.com/problems/previous-permutation-with-one-swap "ไบคๆขไธ€ๆฌก็š„ๅ…ˆๅ‰ๆŽ’ๅˆ—")

      Given an array A of positive integers (not necessarily distinct), return the lexicographically largest permutation that is smaller than A, that can be made with one swap (A swap exchanges the positions of two numbers A[i] and A[j]).  If it cannot be done, then return the same array.

      diff --git a/problems/prime-arrangements/README.md b/problems/prime-arrangements/README.md index 630607e6f..7eb23ed01 100644 --- a/problems/prime-arrangements/README.md +++ b/problems/prime-arrangements/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/diet-plan-performance "Diet Plan Performance") -## 1175. Prime Arrangements (Easy) +## [1175. Prime Arrangements (Easy)](https://leetcode.com/problems/prime-arrangements "่ดจๆ•ฐๆŽ’ๅˆ—")

      Return the number of permutations of 1 to n so that prime numbers are at prime indices (1-indexed.)

      diff --git a/problems/prime-number-of-set-bits-in-binary-representation/README.md b/problems/prime-number-of-set-bits-in-binary-representation/README.md index bd562b4e7..c0eed9934 100644 --- a/problems/prime-number-of-set-bits-in-binary-representation/README.md +++ b/problems/prime-number-of-set-bits-in-binary-representation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/partition-labels "Partition Labels") -## 762. Prime Number of Set Bits in Binary Representation (Easy) +## [762. Prime Number of Set Bits in Binary Representation (Easy)](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation "ไบŒ่ฟ›ๅˆถ่กจ็คบไธญ่ดจๆ•ฐไธช่ฎก็ฎ—็ฝฎไฝ")

      Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary representation. diff --git a/problems/prime-palindrome/README.md b/problems/prime-palindrome/README.md index 393df3aed..8a0c4f7d2 100644 --- a/problems/prime-palindrome/README.md +++ b/problems/prime-palindrome/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/transpose-matrix "Transpose Matrix") -## 866. Prime Palindrome (Medium) +## [866. Prime Palindrome (Medium)](https://leetcode.com/problems/prime-palindrome "ๅ›žๆ–‡็ด ๆ•ฐ")

      Find the smallest prime palindrome greater than or equal to N.

      diff --git a/problems/print-binary-tree/README.md b/problems/print-binary-tree/README.md index 9bdb1e7f0..2ed2a19f9 100644 --- a/problems/print-binary-tree/README.md +++ b/problems/print-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/coin-path "Coin Path") -## 655. Print Binary Tree (Medium) +## [655. Print Binary Tree (Medium)](https://leetcode.com/problems/print-binary-tree "่พ“ๅ‡บไบŒๅ‰ๆ ‘")

      Print a binary tree in an m*n 2D string array following these rules:

      diff --git a/problems/print-foobar-alternately/README.md b/problems/print-foobar-alternately/README.md index fa9fff603..b447009b1 100644 --- a/problems/print-foobar-alternately/README.md +++ b/problems/print-foobar-alternately/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/print-zero-even-odd "Print Zero Even Odd") -## 1115. Print FooBar Alternately (Medium) +## [1115. Print FooBar Alternately (Medium)](https://leetcode.com/problems/print-foobar-alternately "ไบคๆ›ฟๆ‰“ๅฐFooBar")

      Suppose you are given the following code:

      diff --git a/problems/print-in-order/README.md b/problems/print-in-order/README.md index 601bf97a0..fa6fc8612 100644 --- a/problems/print-in-order/README.md +++ b/problems/print-in-order/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/print-foobar-alternately "Print FooBar Alternately") -## 1114. Print in Order (Easy) +## [1114. Print in Order (Easy)](https://leetcode.com/problems/print-in-order "ๆŒ‰ๅบๆ‰“ๅฐ")

      Suppose we have a class:

      diff --git a/problems/print-zero-even-odd/README.md b/problems/print-zero-even-odd/README.md index baab710f0..6ba8391e3 100644 --- a/problems/print-zero-even-odd/README.md +++ b/problems/print-zero-even-odd/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/building-h2o "Building H2O") -## 1116. Print Zero Even Odd (Medium) +## [1116. Print Zero Even Odd (Medium)](https://leetcode.com/problems/print-zero-even-odd "ๆ‰“ๅฐ้›ถไธŽๅฅ‡ๅถๆ•ฐ")

      Suppose you are given the following code:

      diff --git a/problems/prison-cells-after-n-days/README.md b/problems/prison-cells-after-n-days/README.md index 19af13d98..9202cde3a 100644 --- a/problems/prison-cells-after-n-days/README.md +++ b/problems/prison-cells-after-n-days/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/check-completeness-of-a-binary-tree "Check Completeness of a Binary Tree") -## 957. Prison Cells After N Days (Medium) +## [957. Prison Cells After N Days (Medium)](https://leetcode.com/problems/prison-cells-after-n-days "N ๅคฉๅŽ็š„็‰ขๆˆฟ")

      There are 8 prison cells in a row, and each cell is either occupied or vacant.

      diff --git a/problems/product-of-array-except-self/README.md b/problems/product-of-array-except-self/README.md index 4b6c47d8b..b4a11bf7a 100644 --- a/problems/product-of-array-except-self/README.md +++ b/problems/product-of-array-except-self/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sliding-window-maximum "Sliding Window Maximum") -## 238. Product of Array Except Self (Medium) +## [238. Product of Array Except Self (Medium)](https://leetcode.com/problems/product-of-array-except-self "้™ค่‡ช่บซไปฅๅค–ๆ•ฐ็ป„็š„ไน˜็งฏ")

      Given an array nums of n integers where n > 1,  return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].

      diff --git a/problems/product-price-at-a-given-date/README.md b/problems/product-price-at-a-given-date/README.md index 940515b0d..693530482 100644 --- a/problems/product-price-at-a-given-date/README.md +++ b/problems/product-price-at-a-given-date/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/single-row-keyboard "Single-Row Keyboard") -## 1164. Product Price at a Given Date (Medium) +## [1164. Product Price at a Given Date (Medium)](https://leetcode.com/problems/product-price-at-a-given-date "") diff --git a/problems/product-sales-analysis-i/README.md b/problems/product-sales-analysis-i/README.md index 32204dc36..d160e66cc 100644 --- a/problems/product-sales-analysis-i/README.md +++ b/problems/product-sales-analysis-i/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/product-sales-analysis-ii "Product Sales Analysis II") -## 1068. Product Sales Analysis I (Easy) +## [1068. Product Sales Analysis I (Easy)](https://leetcode.com/problems/product-sales-analysis-i "ไบงๅ“้”€ๅ”ฎๅˆ†ๆž I") diff --git a/problems/product-sales-analysis-ii/README.md b/problems/product-sales-analysis-ii/README.md index 466c01484..3729d0297 100644 --- a/problems/product-sales-analysis-ii/README.md +++ b/problems/product-sales-analysis-ii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/product-sales-analysis-iii "Product Sales Analysis III") -## 1069. Product Sales Analysis II (Easy) +## [1069. Product Sales Analysis II (Easy)](https://leetcode.com/problems/product-sales-analysis-ii "ไบงๅ“้”€ๅ”ฎๅˆ†ๆž II") diff --git a/problems/product-sales-analysis-iii/README.md b/problems/product-sales-analysis-iii/README.md index 39d9d607d..eee9db960 100644 --- a/problems/product-sales-analysis-iii/README.md +++ b/problems/product-sales-analysis-iii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/greatest-common-divisor-of-strings "Greatest Common Divisor of Strings") -## 1070. Product Sales Analysis III (Medium) +## [1070. Product Sales Analysis III (Medium)](https://leetcode.com/problems/product-sales-analysis-iii "") diff --git a/problems/profitable-schemes/README.md b/problems/profitable-schemes/README.md index 7c4e00430..03e35b4b2 100644 --- a/problems/profitable-schemes/README.md +++ b/problems/profitable-schemes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/decoded-string-at-index "Decoded String at Index") -## 879. Profitable Schemes (Hard) +## [879. Profitable Schemes (Hard)](https://leetcode.com/problems/profitable-schemes "็›ˆๅˆฉ่ฎกๅˆ’")

      There are G people in a gang, and a list of various crimes they could commit.

      diff --git a/problems/project-employees-i/README.md b/problems/project-employees-i/README.md index 0600dfb23..51b7f3e7f 100644 --- a/problems/project-employees-i/README.md +++ b/problems/project-employees-i/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/project-employees-ii "Project Employees II") -## 1075. Project Employees I (Easy) +## [1075. Project Employees I (Easy)](https://leetcode.com/problems/project-employees-i "้กน็›ฎๅ‘˜ๅทฅ I") diff --git a/problems/project-employees-ii/README.md b/problems/project-employees-ii/README.md index 4330b865b..8784501b5 100644 --- a/problems/project-employees-ii/README.md +++ b/problems/project-employees-ii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/project-employees-iii "Project Employees III") -## 1076. Project Employees II (Easy) +## [1076. Project Employees II (Easy)](https://leetcode.com/problems/project-employees-ii "") diff --git a/problems/project-employees-iii/README.md b/problems/project-employees-iii/README.md index f3d2fd81a..208531bc8 100644 --- a/problems/project-employees-iii/README.md +++ b/problems/project-employees-iii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/occurrences-after-bigram "Occurrences After Bigram") -## 1077. Project Employees III (Medium) +## [1077. Project Employees III (Medium)](https://leetcode.com/problems/project-employees-iii "้กน็›ฎๅ‘˜ๅทฅ III") diff --git a/problems/projection-area-of-3d-shapes/README.md b/problems/projection-area-of-3d-shapes/README.md index 032210a39..491b51041 100644 --- a/problems/projection-area-of-3d-shapes/README.md +++ b/problems/projection-area-of-3d-shapes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/uncommon-words-from-two-sentences "Uncommon Words from Two Sentences") -## 883. Projection Area of 3D Shapes (Easy) +## [883. Projection Area of 3D Shapes (Easy)](https://leetcode.com/problems/projection-area-of-3d-shapes "ไธ‰็ปดๅฝขไฝ“ๆŠ•ๅฝฑ้ข็งฏ")

      On a N * N grid, we place some 1 * 1 * 1 cubes that are axis-aligned with the x, y, and z axes.

      diff --git a/problems/push-dominoes/README.md b/problems/push-dominoes/README.md index 07c188e90..f065ddbb1 100644 --- a/problems/push-dominoes/README.md +++ b/problems/push-dominoes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/similar-string-groups "Similar String Groups") -## 838. Push Dominoes (Medium) +## [838. Push Dominoes (Medium)](https://leetcode.com/problems/push-dominoes "ๆŽจๅคš็ฑณ่ฏบ")

      There are N dominoes in a line, and we place each domino vertically upright.

      diff --git a/problems/pyramid-transition-matrix/README.md b/problems/pyramid-transition-matrix/README.md index e35a66b39..d7dc3cc24 100644 --- a/problems/pyramid-transition-matrix/README.md +++ b/problems/pyramid-transition-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/set-intersection-size-at-least-two "Set Intersection Size At Least Two") -## 756. Pyramid Transition Matrix (Medium) +## [756. Pyramid Transition Matrix (Medium)](https://leetcode.com/problems/pyramid-transition-matrix "้‡‘ๅญ—ๅก”่ฝฌๆข็Ÿฉ้˜ต")

      We are stacking blocks to form a pyramid. Each block has a color which is a one letter string.

      diff --git a/problems/quad-tree-intersection/README.md b/problems/quad-tree-intersection/README.md index 393e2147d..66d41f9e3 100644 --- a/problems/quad-tree-intersection/README.md +++ b/problems/quad-tree-intersection/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-depth-of-n-ary-tree "Maximum Depth of N-ary Tree") -## 558. Quad Tree Intersection (Easy) +## [558. Quad Tree Intersection (Easy)](https://leetcode.com/problems/quad-tree-intersection "ๅ››ๅ‰ๆ ‘ไบค้›†")

      A quadtree is a tree data in which each internal node has exactly four children: topLeft, topRight, bottomLeft and bottomRight. Quad trees are often used to partition a two-dimensional space by recursively subdividing it into four quadrants or regions.

      diff --git a/problems/queue-reconstruction-by-height/README.md b/problems/queue-reconstruction-by-height/README.md index e923337f6..089c6b596 100644 --- a/problems/queue-reconstruction-by-height/README.md +++ b/problems/queue-reconstruction-by-height/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/trapping-rain-water-ii "Trapping Rain Water II") -## 406. Queue Reconstruction by Height (Medium) +## [406. Queue Reconstruction by Height (Medium)](https://leetcode.com/problems/queue-reconstruction-by-height "ๆ นๆฎ่บซ้ซ˜้‡ๅปบ้˜Ÿๅˆ—")

      Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of this person who have a height greater than or equal to h. Write an algorithm to reconstruct the queue.

      diff --git a/problems/rabbits-in-forest/README.md b/problems/rabbits-in-forest/README.md index 2e41f198e..22639b128 100644 --- a/problems/rabbits-in-forest/README.md +++ b/problems/rabbits-in-forest/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/transform-to-chessboard "Transform to Chessboard") -## 781. Rabbits in Forest (Medium) +## [781. Rabbits in Forest (Medium)](https://leetcode.com/problems/rabbits-in-forest "ๆฃฎๆž—ไธญ็š„ๅ…”ๅญ")

      In a forest, each rabbit has some color. Some subset of rabbits (possibly all of them) tell you how many other rabbits have the same color as them. Those answers are placed in an array.

      diff --git a/problems/race-car/README.md b/problems/race-car/README.md index 60541dca0..f2a79fc81 100644 --- a/problems/race-car/README.md +++ b/problems/race-car/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/most-common-word "Most Common Word") -## 818. Race Car (Hard) +## [818. Race Car (Hard)](https://leetcode.com/problems/race-car "่ต›่ฝฆ")

      Your car starts at position 0 and speed +1 on an infinite number line.  (Your car can go into negative positions.)

      diff --git a/problems/random-flip-matrix/README.md b/problems/random-flip-matrix/README.md index ec963489e..a72b17742 100644 --- a/problems/random-flip-matrix/README.md +++ b/problems/random-flip-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/detect-capital "Detect Capital") -## 519. Random Flip Matrix (Medium) +## [519. Random Flip Matrix (Medium)](https://leetcode.com/problems/random-flip-matrix "้šๆœบ็ฟป่ฝฌ็Ÿฉ้˜ต")

      You are given the number of rows n_rows and number of columns n_cols of a 2D binary matrix where all values are initially 0. Write a function flip which chooses a 0 value uniformly at random, changes it to 1, and then returns the position [row.id, col.id] of that value. Also, write a function reset which sets all values back to 0. Try to minimize the number of calls to system's Math.random() and optimize the time and space complexity.

      diff --git a/problems/random-pick-index/README.md b/problems/random-pick-index/README.md index 49f0c7eed..071d06f1f 100644 --- a/problems/random-pick-index/README.md +++ b/problems/random-pick-index/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/evaluate-division "Evaluate Division") -## 398. Random Pick Index (Medium) +## [398. Random Pick Index (Medium)](https://leetcode.com/problems/random-pick-index "้šๆœบๆ•ฐ็ดขๅผ•")

      Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number must exist in the array.

      diff --git a/problems/random-pick-with-blacklist/README.md b/problems/random-pick-with-blacklist/README.md index f7e2cea42..3e58fc9f6 100644 --- a/problems/random-pick-with-blacklist/README.md +++ b/problems/random-pick-with-blacklist/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-distinct-islands-ii "Number of Distinct Islands II") -## 710. Random Pick with Blacklist (Hard) +## [710. Random Pick with Blacklist (Hard)](https://leetcode.com/problems/random-pick-with-blacklist "้ป‘ๅๅ•ไธญ็š„้šๆœบๆ•ฐ")

      Given a blacklist B containing unique integers from [0, N), write a function to return a uniform random integer from [0, N) which is NOT in B.

      diff --git a/problems/random-pick-with-weight/README.md b/problems/random-pick-with-weight/README.md index 4cbc62bf2..bd51b9db2 100644 --- a/problems/random-pick-with-weight/README.md +++ b/problems/random-pick-with-weight/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minesweeper "Minesweeper") -## 528. Random Pick with Weight (Medium) +## [528. Random Pick with Weight (Medium)](https://leetcode.com/problems/random-pick-with-weight "ๆŒ‰ๆƒ้‡้šๆœบ้€‰ๆ‹ฉ")

      Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in proportion to its weight.

      diff --git a/problems/random-point-in-non-overlapping-rectangles/README.md b/problems/random-point-in-non-overlapping-rectangles/README.md index b8870e2a4..2beed348c 100644 --- a/problems/random-point-in-non-overlapping-rectangles/README.md +++ b/problems/random-point-in-non-overlapping-rectangles/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/diagonal-traverse "Diagonal Traverse") -## 497. Random Point in Non-overlapping Rectangles (Medium) +## [497. Random Point in Non-overlapping Rectangles (Medium)](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles "้ž้‡ๅ ็Ÿฉๅฝขไธญ็š„้šๆœบ็‚น")

      Given a list of non-overlapping axis-aligned rectangles rects, write a function pick which randomly and uniformily picks an integer point in the space covered by the rectangles.

      diff --git a/problems/range-addition-ii/README.md b/problems/range-addition-ii/README.md index ec634a641..8b233264b 100644 --- a/problems/range-addition-ii/README.md +++ b/problems/range-addition-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-index-sum-of-two-lists "Minimum Index Sum of Two Lists") -## 598. Range Addition II (Easy) +## [598. Range Addition II (Easy)](https://leetcode.com/problems/range-addition-ii "่Œƒๅ›ดๆฑ‚ๅ’Œ II")

      Given an m * n matrix M initialized with all 0's and several update operations.

      Operations are represented by a 2D array, and each operation is represented by an array with two positive integers a and b, which means M[i][j] should be added by one for all 0 <= i < a and 0 <= j < b.

      diff --git a/problems/range-addition/README.md b/problems/range-addition/README.md index f510bc7c1..b9d1d7251 100644 --- a/problems/range-addition/README.md +++ b/problems/range-addition/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-of-two-integers "Sum of Two Integers") -## 370. Range Addition (Medium) +## [370. Range Addition (Medium)](https://leetcode.com/problems/range-addition "ๅŒบ้—ดๅŠ ๆณ•") diff --git a/problems/range-module/README.md b/problems/range-module/README.md index 2a75f01db..e84f60fb3 100644 --- a/problems/range-module/README.md +++ b/problems/range-module/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-stack "Max Stack") -## 715. Range Module (Hard) +## [715. Range Module (Hard)](https://leetcode.com/problems/range-module "Range ๆจกๅ—")

      A Range Module is a module that tracks ranges of numbers. Your task is to design and implement the following interfaces in an efficient manner.

      diff --git a/problems/range-sum-of-bst/README.md b/problems/range-sum-of-bst/README.md index d891d406a..356f00373 100644 --- a/problems/range-sum-of-bst/README.md +++ b/problems/range-sum-of-bst/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-area-rectangle "Minimum Area Rectangle") -## 938. Range Sum of BST (Easy) +## [938. Range Sum of BST (Easy)](https://leetcode.com/problems/range-sum-of-bst "ไบŒๅ‰ๆœ็ดขๆ ‘็š„่Œƒๅ›ดๅ’Œ")

      Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (inclusive).

      diff --git a/problems/range-sum-query-2d-immutable/README.md b/problems/range-sum-query-2d-immutable/README.md index 6d946db4c..58ef930c4 100644 --- a/problems/range-sum-query-2d-immutable/README.md +++ b/problems/range-sum-query-2d-immutable/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-islands-ii "Number of Islands II") -## 304. Range Sum Query 2D - Immutable (Medium) +## [304. Range Sum Query 2D - Immutable (Medium)](https://leetcode.com/problems/range-sum-query-2d-immutable "ไบŒ็ปดๅŒบๅŸŸๅ’Œๆฃ€็ดข - ็Ÿฉ้˜ตไธๅฏๅ˜")

      Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2).

      diff --git a/problems/range-sum-query-2d-mutable/README.md b/problems/range-sum-query-2d-mutable/README.md index e1f500423..23cd7a7f5 100644 --- a/problems/range-sum-query-2d-mutable/README.md +++ b/problems/range-sum-query-2d-mutable/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/best-time-to-buy-and-sell-stock-with-cooldown "Best Time to Buy and Sell Stock with Cooldown") -## 308. Range Sum Query 2D - Mutable (Hard) +## [308. Range Sum Query 2D - Mutable (Hard)](https://leetcode.com/problems/range-sum-query-2d-mutable "ไบŒ็ปดๅŒบๅŸŸๅ’Œๆฃ€็ดข - ๅฏๅ˜") diff --git a/problems/range-sum-query-immutable/README.md b/problems/range-sum-query-immutable/README.md index a5f0e72c3..fc3a0444e 100644 --- a/problems/range-sum-query-immutable/README.md +++ b/problems/range-sum-query-immutable/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/range-sum-query-2d-immutable "Range Sum Query 2D - Immutable") -## 303. Range Sum Query - Immutable (Easy) +## [303. Range Sum Query - Immutable (Easy)](https://leetcode.com/problems/range-sum-query-immutable "ๅŒบๅŸŸๅ’Œๆฃ€็ดข - ๆ•ฐ็ป„ไธๅฏๅ˜")

      Given an integer array nums, find the sum of the elements between indices i and j (ij), inclusive.

      diff --git a/problems/range-sum-query-mutable/README.md b/problems/range-sum-query-mutable/README.md index abd4dcb0d..0922ceb77 100644 --- a/problems/range-sum-query-mutable/README.md +++ b/problems/range-sum-query-mutable/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/range-sum-query-2d-mutable "Range Sum Query 2D - Mutable") -## 307. Range Sum Query - Mutable (Medium) +## [307. Range Sum Query - Mutable (Medium)](https://leetcode.com/problems/range-sum-query-mutable "ๅŒบๅŸŸๅ’Œๆฃ€็ดข - ๆ•ฐ็ป„ๅฏไฟฎๆ”น")

      Given an integer array nums, find the sum of the elements between indices i and j (ij), inclusive.

      diff --git a/problems/rank-scores/README.md b/problems/rank-scores/README.md index 408f21e0f..98a80e882 100644 --- a/problems/rank-scores/README.md +++ b/problems/rank-scores/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-number "Largest Number") -## 178. Rank Scores (Medium) +## [178. Rank Scores (Medium)](https://leetcode.com/problems/rank-scores "ๅˆ†ๆ•ฐๆŽ’ๅ")

      Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking number should be the next consecutive integer value. In other words, there should be no "holes" between ranks.

      diff --git a/problems/ransom-note/README.md b/problems/ransom-note/README.md index c799b566f..f3bc42a43 100644 --- a/problems/ransom-note/README.md +++ b/problems/ransom-note/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shuffle-an-array "Shuffle an Array") -## 383. Ransom Note (Easy) +## [383. Ransom Note (Easy)](https://leetcode.com/problems/ransom-note "่ตŽ้‡‘ไฟก")

      Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom diff --git a/problems/reach-a-number/README.md b/problems/reach-a-number/README.md index b40a358a5..b13e05bc4 100644 --- a/problems/reach-a-number/README.md +++ b/problems/reach-a-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/pour-water "Pour Water") -## 754. Reach a Number (Easy) +## [754. Reach a Number (Easy)](https://leetcode.com/problems/reach-a-number "ๅˆฐ่พพ็ปˆ็‚นๆ•ฐๅญ—")

      You are standing at position 0 on an infinite number line. There is a goal at position target. diff --git a/problems/reachable-nodes-in-subdivided-graph/README.md b/problems/reachable-nodes-in-subdivided-graph/README.md index 340bf3d55..8cd936a5b 100644 --- a/problems/reachable-nodes-in-subdivided-graph/README.md +++ b/problems/reachable-nodes-in-subdivided-graph/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/projection-area-of-3d-shapes "Projection Area of 3D Shapes") -## 882. Reachable Nodes In Subdivided Graph (Hard) +## [882. Reachable Nodes In Subdivided Graph (Hard)](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph "็ป†ๅˆ†ๅ›พไธญ็š„ๅฏๅˆฐ่พพ็ป“็‚น")

      Starting with an undirected graph (the "original graph") with nodes from 0 to N-1, subdivisions are made to some of the edges.

      diff --git a/problems/reaching-points/README.md b/problems/reaching-points/README.md index 195778ec3..383a2a695 100644 --- a/problems/reaching-points/README.md +++ b/problems/reaching-points/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/rabbits-in-forest "Rabbits in Forest") -## 780. Reaching Points (Hard) +## [780. Reaching Points (Hard)](https://leetcode.com/problems/reaching-points "ๅˆฐ่พพ็ปˆ็‚น")

      A move consists of taking a point (x, y) and transforming it to either (x, x+y) or (x+y, y).

      diff --git a/problems/read-n-characters-given-read4-ii-call-multiple-times/README.md b/problems/read-n-characters-given-read4-ii-call-multiple-times/README.md index 8a6313772..e57ac27bf 100644 --- a/problems/read-n-characters-given-read4-ii-call-multiple-times/README.md +++ b/problems/read-n-characters-given-read4-ii-call-multiple-times/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-substring-with-at-most-two-distinct-characters "Longest Substring with At Most Two Distinct Characters") -## 158. Read N Characters Given Read4 II - Call multiple times (Hard) +## [158. Read N Characters Given Read4 II - Call multiple times (Hard)](https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times "็”จ Read4 ่ฏปๅ– N ไธชๅญ—็ฌฆ II") diff --git a/problems/read-n-characters-given-read4/README.md b/problems/read-n-characters-given-read4/README.md index 057d77baa..52aef5ac7 100644 --- a/problems/read-n-characters-given-read4/README.md +++ b/problems/read-n-characters-given-read4/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/read-n-characters-given-read4-ii-call-multiple-times "Read N Characters Given Read4 II - Call multiple times") -## 157. Read N Characters Given Read4 (Easy) +## [157. Read N Characters Given Read4 (Easy)](https://leetcode.com/problems/read-n-characters-given-read4 "็”จ Read4 ่ฏปๅ– N ไธชๅญ—็ฌฆ") diff --git a/problems/rearrange-string-k-distance-apart/README.md b/problems/rearrange-string-k-distance-apart/README.md index 297efdf0a..4d193ff89 100644 --- a/problems/rearrange-string-k-distance-apart/README.md +++ b/problems/rearrange-string-k-distance-apart/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/logger-rate-limiter "Logger Rate Limiter") -## 358. Rearrange String k Distance Apart (Hard) +## [358. Rearrange String k Distance Apart (Hard)](https://leetcode.com/problems/rearrange-string-k-distance-apart "K ่ท็ฆป้—ด้š”้‡ๆŽ’ๅญ—็ฌฆไธฒ") diff --git a/problems/reconstruct-itinerary/README.md b/problems/reconstruct-itinerary/README.md index e5e170bc1..09afa8ff3 100644 --- a/problems/reconstruct-itinerary/README.md +++ b/problems/reconstruct-itinerary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-bst-subtree "Largest BST Subtree") -## 332. Reconstruct Itinerary (Medium) +## [332. Reconstruct Itinerary (Medium)](https://leetcode.com/problems/reconstruct-itinerary "้‡ๆ–ฐๅฎ‰ๆŽ’่กŒ็จ‹")

      Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tickets belong to a man who departs from JFK. Thus, the itinerary must begin with JFK.

      diff --git a/problems/reconstruct-original-digits-from-english/README.md b/problems/reconstruct-original-digits-from-english/README.md index d7086d50c..a3a9d6ed8 100644 --- a/problems/reconstruct-original-digits-from-english/README.md +++ b/problems/reconstruct-original-digits-from-english/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-repeating-character-replacement "Longest Repeating Character Replacement") -## 423. Reconstruct Original Digits from English (Medium) +## [423. Reconstruct Original Digits from English (Medium)](https://leetcode.com/problems/reconstruct-original-digits-from-english "ไปŽ่‹ฑๆ–‡ไธญ้‡ๅปบๆ•ฐๅญ—")

      Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order.

      diff --git a/problems/recover-a-tree-from-preorder-traversal/README.md b/problems/recover-a-tree-from-preorder-traversal/README.md index 02436c786..806ef8f48 100644 --- a/problems/recover-a-tree-from-preorder-traversal/README.md +++ b/problems/recover-a-tree-from-preorder-traversal/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/two-city-scheduling "Two City Scheduling") -## 1028. Recover a Tree From Preorder Traversal (Hard) +## [1028. Recover a Tree From Preorder Traversal (Hard)](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal "ไปŽๅ…ˆๅบ้ๅކ่ฟ˜ๅŽŸไบŒๅ‰ๆ ‘")

      We run a preorder depth first search on the root of a binary tree.

      diff --git a/problems/recover-binary-search-tree/README.md b/problems/recover-binary-search-tree/README.md index 367db2df3..59bc3e33c 100644 --- a/problems/recover-binary-search-tree/README.md +++ b/problems/recover-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/same-tree "Same Tree") -## 99. Recover Binary Search Tree (Hard) +## [99. Recover Binary Search Tree (Hard)](https://leetcode.com/problems/recover-binary-search-tree "ๆขๅคไบŒๅ‰ๆœ็ดขๆ ‘")

      Two elements of a binary search tree (BST) are swapped by mistake.

      diff --git a/problems/rectangle-area-ii/README.md b/problems/rectangle-area-ii/README.md index ffe3adb6d..1fdb74c03 100644 --- a/problems/rectangle-area-ii/README.md +++ b/problems/rectangle-area-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/loud-and-rich "Loud and Rich") -## 850. Rectangle Area II (Hard) +## [850. Rectangle Area II (Hard)](https://leetcode.com/problems/rectangle-area-ii "็Ÿฉๅฝข้ข็งฏ II")

      We are given a list of (axis-aligned) rectangles.  Each rectangle[i] = [x1, y1, x2, y2] , where (x1, y1) are the coordinates of the bottom-left corner, and (x2, y2) are the coordinates of the top-right corner of the ith rectangle.

      diff --git a/problems/rectangle-area/README.md b/problems/rectangle-area/README.md index 20b6623d7..8cc6f2f84 100644 --- a/problems/rectangle-area/README.md +++ b/problems/rectangle-area/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/basic-calculator "Basic Calculator") -## 223. Rectangle Area (Medium) +## [223. Rectangle Area (Medium)](https://leetcode.com/problems/rectangle-area "็Ÿฉๅฝข้ข็งฏ")

      Find the total area covered by two rectilinear rectangles in a 2D plane.

      diff --git a/problems/rectangle-overlap/README.md b/problems/rectangle-overlap/README.md index c7218b9e1..ee40280ab 100644 --- a/problems/rectangle-overlap/README.md +++ b/problems/rectangle-overlap/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/new-21-game "New 21 Game") -## 836. Rectangle Overlap (Easy) +## [836. Rectangle Overlap (Easy)](https://leetcode.com/problems/rectangle-overlap "็Ÿฉๅฝข้‡ๅ ")

      A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) are the coordinates of its top-right corner.

      diff --git a/problems/redundant-connection-ii/README.md b/problems/redundant-connection-ii/README.md index d1811457f..7b6adc70d 100644 --- a/problems/redundant-connection-ii/README.md +++ b/problems/redundant-connection-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/repeated-string-match "Repeated String Match") -## 685. Redundant Connection II (Hard) +## [685. Redundant Connection II (Hard)](https://leetcode.com/problems/redundant-connection-ii "ๅ†—ไฝ™่ฟžๆŽฅ II")

      In this problem, a rooted tree is a directed graph such that, there is exactly one node (the root) for which all other nodes are descendants of this node, plus every node has exactly one parent, except for the root node which has no parents. diff --git a/problems/redundant-connection/README.md b/problems/redundant-connection/README.md index 24ffdcc64..27cf22c9c 100644 --- a/problems/redundant-connection/README.md +++ b/problems/redundant-connection/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/redundant-connection-ii "Redundant Connection II") -## 684. Redundant Connection (Medium) +## [684. Redundant Connection (Medium)](https://leetcode.com/problems/redundant-connection "ๅ†—ไฝ™่ฟžๆŽฅ")

      In this problem, a tree is an undirected graph that is connected and has no cycles. diff --git a/problems/reformat-department-table/README.md b/problems/reformat-department-table/README.md index f52b8ea89..f5e5b98f7 100644 --- a/problems/reformat-department-table/README.md +++ b/problems/reformat-department-table/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-substrings-with-only-one-distinct-letter "Count Substrings with Only One Distinct Letter") -## 1179. Reformat Department Table (Easy) +## [1179. Reformat Department Table (Easy)](https://leetcode.com/problems/reformat-department-table "")

      Table: Department

      diff --git a/problems/regions-cut-by-slashes/README.md b/problems/regions-cut-by-slashes/README.md index 919de0cf8..b96d8c349 100644 --- a/problems/regions-cut-by-slashes/README.md +++ b/problems/regions-cut-by-slashes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/delete-columns-to-make-sorted-iii "Delete Columns to Make Sorted III") -## 959. Regions Cut By Slashes (Medium) +## [959. Regions Cut By Slashes (Medium)](https://leetcode.com/problems/regions-cut-by-slashes "็”ฑๆ–œๆ ๅˆ’ๅˆ†ๅŒบๅŸŸ")

      In a N x N grid composed of 1 x 1 squares, each 1 x 1 square consists of a /, \, or blank space.  These characters divide the square into contiguous regions.

      diff --git a/problems/regular-expression-matching/README.md b/problems/regular-expression-matching/README.md index 174290e62..5e5d65f82 100644 --- a/problems/regular-expression-matching/README.md +++ b/problems/regular-expression-matching/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/container-with-most-water "Container With Most Water") -## 10. Regular Expression Matching (Hard) +## [10. Regular Expression Matching (Hard)](https://leetcode.com/problems/regular-expression-matching "ๆญฃๅˆ™่กจ่พพๅผๅŒน้…")

      Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.

      diff --git a/problems/relative-ranks/README.md b/problems/relative-ranks/README.md index b4c520b0e..e8c796d4b 100644 --- a/problems/relative-ranks/README.md +++ b/problems/relative-ranks/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/perfect-number "Perfect Number") -## 506. Relative Ranks (Easy) +## [506. Relative Ranks (Easy)](https://leetcode.com/problems/relative-ranks "็›ธๅฏนๅๆฌก")

      Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Silver Medal" and "Bronze Medal".

      diff --git a/problems/relative-sort-array/README.md b/problems/relative-sort-array/README.md index 7a5a372a5..95a21fd99 100644 --- a/problems/relative-sort-array/README.md +++ b/problems/relative-sort-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lowest-common-ancestor-of-deepest-leaves "Lowest Common Ancestor of Deepest Leaves") -## 1122. Relative Sort Array (Easy) +## [1122. Relative Sort Array (Easy)](https://leetcode.com/problems/relative-sort-array "ๆ•ฐ็ป„็š„็›ธๅฏนๆŽ’ๅบ")

      Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1.

      @@ -33,3 +33,14 @@ ### Related Topics [[Sort](https://github.com/openset/leetcode/tree/master/tag/sort/README.md)] [[Array](https://github.com/openset/leetcode/tree/master/tag/array/README.md)] + +### Hints +
      +Hint 1 +Using a hashmap, we can map the values of arr2 to their position in arr2. +
      + +
      +Hint 2 +After, we can use a custom sorting function. +
      diff --git a/problems/remove-9/README.md b/problems/remove-9/README.md index 4a4db56ea..5a8abb0b8 100644 --- a/problems/remove-9/README.md +++ b/problems/remove-9/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/image-smoother "Image Smoother") -## 660. Remove 9 (Hard) +## [660. Remove 9 (Hard)](https://leetcode.com/problems/remove-9 "็งป้™ค 9")

      Start from integer 1, remove any integer that contains 9 such as 9, 19, 29...

      diff --git a/problems/remove-all-adjacent-duplicates-in-string/README.md b/problems/remove-all-adjacent-duplicates-in-string/README.md index 5c51b362f..12f0aa56c 100644 --- a/problems/remove-all-adjacent-duplicates-in-string/README.md +++ b/problems/remove-all-adjacent-duplicates-in-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-string-chain "Longest String Chain") -## 1047. Remove All Adjacent Duplicates In String (Easy) +## [1047. Remove All Adjacent Duplicates In String (Easy)](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string "ๅˆ ้™คๅญ—็ฌฆไธฒไธญ็š„ๆ‰€ๆœ‰็›ธ้‚ป้‡ๅค้กน")

      Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them.

      diff --git a/problems/remove-boxes/README.md b/problems/remove-boxes/README.md index 3444fd34e..56bea8406 100644 --- a/problems/remove-boxes/README.md +++ b/problems/remove-boxes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/friend-circles "Friend Circles") -## 546. Remove Boxes (Hard) +## [546. Remove Boxes (Hard)](https://leetcode.com/problems/remove-boxes "็งป้™ค็›’ๅญ")

      Given several boxes with different colors represented by different positive numbers.
      You may experience several rounds to remove boxes until there is no box left. Each time you can choose some continuous boxes with the same color (composed of k boxes, k >= 1), remove them and get k*k points.
      diff --git a/problems/remove-comments/README.md b/problems/remove-comments/README.md index 4369309e0..3a981fc79 100644 --- a/problems/remove-comments/README.md +++ b/problems/remove-comments/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/candy-crush "Candy Crush") -## 722. Remove Comments (Medium) +## [722. Remove Comments (Medium)](https://leetcode.com/problems/remove-comments "ๅˆ ้™คๆณจ้‡Š")

      Given a C++ program, remove comments from it. The program source is an array where source[i] is the i-th line of the source code. This represents the result of splitting the original source code string by the newline character \n.

      diff --git a/problems/remove-duplicate-letters/README.md b/problems/remove-duplicate-letters/README.md index b0b2a04ed..f19bcb730 100644 --- a/problems/remove-duplicate-letters/README.md +++ b/problems/remove-duplicate-letters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-distance-from-all-buildings "Shortest Distance from All Buildings") -## 316. Remove Duplicate Letters (Hard) +## [316. Remove Duplicate Letters (Hard)](https://leetcode.com/problems/remove-duplicate-letters "ๅŽป้™ค้‡ๅคๅญ—ๆฏ")

      Given a string which contains only lowercase letters, remove duplicate letters so that every letter appears once and only once. You must make sure your result is the smallest in lexicographical order among all possible results.

      diff --git a/problems/remove-duplicates-from-sorted-array-ii/README.md b/problems/remove-duplicates-from-sorted-array-ii/README.md index 3a39423aa..91362b9d8 100644 --- a/problems/remove-duplicates-from-sorted-array-ii/README.md +++ b/problems/remove-duplicates-from-sorted-array-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/search-in-rotated-sorted-array-ii "Search in Rotated Sorted Array II") -## 80. Remove Duplicates from Sorted Array II (Medium) +## [80. Remove Duplicates from Sorted Array II (Medium)](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii "ๅˆ ้™คๆŽ’ๅบๆ•ฐ็ป„ไธญ็š„้‡ๅค้กน II")

      Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length.

      diff --git a/problems/remove-duplicates-from-sorted-array/README.md b/problems/remove-duplicates-from-sorted-array/README.md index aead845ca..ea2a906a3 100644 --- a/problems/remove-duplicates-from-sorted-array/README.md +++ b/problems/remove-duplicates-from-sorted-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-element "Remove Element") -## 26. Remove Duplicates from Sorted Array (Easy) +## [26. Remove Duplicates from Sorted Array (Easy)](https://leetcode.com/problems/remove-duplicates-from-sorted-array "ๅˆ ้™คๆŽ’ๅบๆ•ฐ็ป„ไธญ็š„้‡ๅค้กน")

      Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.

      diff --git a/problems/remove-duplicates-from-sorted-list-ii/README.md b/problems/remove-duplicates-from-sorted-list-ii/README.md index 1c307d620..53a8da13c 100644 --- a/problems/remove-duplicates-from-sorted-list-ii/README.md +++ b/problems/remove-duplicates-from-sorted-list-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-duplicates-from-sorted-list "Remove Duplicates from Sorted List") -## 82. Remove Duplicates from Sorted List II (Medium) +## [82. Remove Duplicates from Sorted List II (Medium)](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii "ๅˆ ้™คๆŽ’ๅบ้“พ่กจไธญ็š„้‡ๅคๅ…ƒ็ด  II")

      Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.

      diff --git a/problems/remove-duplicates-from-sorted-list/README.md b/problems/remove-duplicates-from-sorted-list/README.md index de69c4e5b..044ffdc16 100644 --- a/problems/remove-duplicates-from-sorted-list/README.md +++ b/problems/remove-duplicates-from-sorted-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-rectangle-in-histogram "Largest Rectangle in Histogram") -## 83. Remove Duplicates from Sorted List (Easy) +## [83. Remove Duplicates from Sorted List (Easy)](https://leetcode.com/problems/remove-duplicates-from-sorted-list "ๅˆ ้™คๆŽ’ๅบ้“พ่กจไธญ็š„้‡ๅคๅ…ƒ็ด ")

      Given a sorted linked list, delete all duplicates such that each element appear only once.

      diff --git a/problems/remove-element/README.md b/problems/remove-element/README.md index 614901bbc..974109275 100644 --- a/problems/remove-element/README.md +++ b/problems/remove-element/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/implement-strstr "Implement strStr()") -## 27. Remove Element (Easy) +## [27. Remove Element (Easy)](https://leetcode.com/problems/remove-element "็งป้™คๅ…ƒ็ด ")

      Given an array nums and a value val, remove all instances of that value in-place and return the new length.

      diff --git a/problems/remove-invalid-parentheses/README.md b/problems/remove-invalid-parentheses/README.md index 43f902630..5230d2179 100644 --- a/problems/remove-invalid-parentheses/README.md +++ b/problems/remove-invalid-parentheses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-rectangle-enclosing-black-pixels "Smallest Rectangle Enclosing Black Pixels") -## 301. Remove Invalid Parentheses (Hard) +## [301. Remove Invalid Parentheses (Hard)](https://leetcode.com/problems/remove-invalid-parentheses "ๅˆ ้™คๆ— ๆ•ˆ็š„ๆ‹ฌๅท")

      Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.

      diff --git a/problems/remove-k-digits/README.md b/problems/remove-k-digits/README.md index 2e5bf4a93..c52c1a493 100644 --- a/problems/remove-k-digits/README.md +++ b/problems/remove-k-digits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/frog-jump "Frog Jump") -## 402. Remove K Digits (Medium) +## [402. Remove K Digits (Medium)](https://leetcode.com/problems/remove-k-digits "็งปๆމKไฝๆ•ฐๅญ—")

      Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible.

      diff --git a/problems/remove-linked-list-elements/README.md b/problems/remove-linked-list-elements/README.md index 0851ea527..685fd493c 100644 --- a/problems/remove-linked-list-elements/README.md +++ b/problems/remove-linked-list-elements/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-primes "Count Primes") -## 203. Remove Linked List Elements (Easy) +## [203. Remove Linked List Elements (Easy)](https://leetcode.com/problems/remove-linked-list-elements "็งป้™ค้“พ่กจๅ…ƒ็ด ")

      Remove all elements from a linked list of integers that have value val.

      diff --git a/problems/remove-nth-node-from-end-of-list/README.md b/problems/remove-nth-node-from-end-of-list/README.md index 1487b6d3e..51ff61a63 100644 --- a/problems/remove-nth-node-from-end-of-list/README.md +++ b/problems/remove-nth-node-from-end-of-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-parentheses "Valid Parentheses") -## 19. Remove Nth Node From End of List (Medium) +## [19. Remove Nth Node From End of List (Medium)](https://leetcode.com/problems/remove-nth-node-from-end-of-list "ๅˆ ้™ค้“พ่กจ็š„ๅ€’ๆ•ฐ็ฌฌNไธช่Š‚็‚น")

      Given a linked list, remove the n-th node from the end of list and return its head.

      diff --git a/problems/remove-outermost-parentheses/README.md b/problems/remove-outermost-parentheses/README.md index c0b3f3f05..88c154ddb 100644 --- a/problems/remove-outermost-parentheses/README.md +++ b/problems/remove-outermost-parentheses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-of-root-to-leaf-binary-numbers "Sum of Root To Leaf Binary Numbers") -## 1021. Remove Outermost Parentheses (Easy) +## [1021. Remove Outermost Parentheses (Easy)](https://leetcode.com/problems/remove-outermost-parentheses "ๅˆ ้™คๆœ€ๅค–ๅฑ‚็š„ๆ‹ฌๅท")

      A valid parentheses string is either empty (""), "(" + A + ")", or A + B, where A and B are valid parentheses strings, and + represents string concatenation.  For example, "", "()", "(())()", and "(()(()))" are all valid parentheses strings.

      diff --git a/problems/remove-vowels-from-a-string/README.md b/problems/remove-vowels-from-a-string/README.md index 12029602c..cd0c5d78d 100644 --- a/problems/remove-vowels-from-a-string/README.md +++ b/problems/remove-vowels-from-a-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-average-subtree "Maximum Average Subtree") -## 1119. Remove Vowels from a String (Easy) +## [1119. Remove Vowels from a String (Easy)](https://leetcode.com/problems/remove-vowels-from-a-string "ๅˆ ๅŽปๅญ—็ฌฆไธฒไธญ็š„ๅ…ƒ้Ÿณ") diff --git a/problems/remove-zero-sum-consecutive-nodes-from-linked-list/README.md b/problems/remove-zero-sum-consecutive-nodes-from-linked-list/README.md index ddbaefcd6..b773d3eaf 100644 --- a/problems/remove-zero-sum-consecutive-nodes-from-linked-list/README.md +++ b/problems/remove-zero-sum-consecutive-nodes-from-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/dinner-plate-stacks "Dinner Plate Stacks") -## 1171. Remove Zero Sum Consecutive Nodes from Linked List (Medium) +## [1171. Remove Zero Sum Consecutive Nodes from Linked List (Medium)](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list "ไปŽ้“พ่กจไธญๅˆ ๅŽปๆ€ปๅ’Œๅ€ผไธบ้›ถ็š„่ฟž็ปญ่Š‚็‚น")

      Given the head of a linked list, we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences.

      diff --git a/problems/reorder-data-in-log-files/README.md b/problems/reorder-data-in-log-files/README.md index 8402484b4..3197017c1 100644 --- a/problems/reorder-data-in-log-files/README.md +++ b/problems/reorder-data-in-log-files/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/range-sum-of-bst "Range Sum of BST") -## 937. Reorder Data in Log Files (Easy) +## [937. Reorder Data in Log Files (Easy)](https://leetcode.com/problems/reorder-data-in-log-files "")

      You have an array of logs.  Each log is a space delimited string of words.

      diff --git a/problems/reorder-list/README.md b/problems/reorder-list/README.md index 797b16c1c..300cd6bf9 100644 --- a/problems/reorder-list/README.md +++ b/problems/reorder-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-preorder-traversal "Binary Tree Preorder Traversal") -## 143. Reorder List (Medium) +## [143. Reorder List (Medium)](https://leetcode.com/problems/reorder-list "้‡ๆŽ’้“พ่กจ")

      Given a singly linked list L: L0L1→…→Ln-1Ln,
      reorder it to: L0LnL1Ln-1L2Ln-2→…

      diff --git a/problems/reordered-power-of-2/README.md b/problems/reordered-power-of-2/README.md index 8dda5762d..09805a4c7 100644 --- a/problems/reordered-power-of-2/README.md +++ b/problems/reordered-power-of-2/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/advantage-shuffle "Advantage Shuffle") -## 869. Reordered Power of 2 (Medium) +## [869. Reordered Power of 2 (Medium)](https://leetcode.com/problems/reordered-power-of-2 "้‡ๆ–ฐๆŽ’ๅบๅพ—ๅˆฐ 2 ็š„ๅน‚")

      Starting with a positive integer N, we reorder the digits in any order (including the original order) such that the leading digit is not zero.

      diff --git a/problems/reorganize-string/README.md b/problems/reorganize-string/README.md index 1b317a9e6..dfd251134 100644 --- a/problems/reorganize-string/README.md +++ b/problems/reorganize-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-chunks-to-make-sorted-ii "Max Chunks To Make Sorted II") -## 767. Reorganize String (Medium) +## [767. Reorganize String (Medium)](https://leetcode.com/problems/reorganize-string "้‡ๆž„ๅญ—็ฌฆไธฒ")

      Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each other are not the same.

      diff --git a/problems/repeated-dna-sequences/README.md b/problems/repeated-dna-sequences/README.md index b426c95bc..ede09e699 100644 --- a/problems/repeated-dna-sequences/README.md +++ b/problems/repeated-dna-sequences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/best-time-to-buy-and-sell-stock-iv "Best Time to Buy and Sell Stock IV") -## 187. Repeated DNA Sequences (Medium) +## [187. Repeated DNA Sequences (Medium)](https://leetcode.com/problems/repeated-dna-sequences "้‡ๅค็š„DNAๅบๅˆ—")

      All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to identify repeated sequences within the DNA.

      diff --git a/problems/repeated-string-match/README.md b/problems/repeated-string-match/README.md index e8cd3611c..5713cd4a0 100644 --- a/problems/repeated-string-match/README.md +++ b/problems/repeated-string-match/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-univalue-path "Longest Univalue Path") -## 686. Repeated String Match (Easy) +## [686. Repeated String Match (Easy)](https://leetcode.com/problems/repeated-string-match "้‡ๅคๅ ๅŠ ๅญ—็ฌฆไธฒๅŒน้…")

      Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1.

      diff --git a/problems/repeated-substring-pattern/README.md b/problems/repeated-substring-pattern/README.md index d627a66be..78acee6c6 100644 --- a/problems/repeated-substring-pattern/README.md +++ b/problems/repeated-substring-pattern/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/lfu-cache "LFU Cache") -## 459. Repeated Substring Pattern (Easy) +## [459. Repeated Substring Pattern (Easy)](https://leetcode.com/problems/repeated-substring-pattern "้‡ๅค็š„ๅญๅญ—็ฌฆไธฒ")

      Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may assume the given string consists of lowercase English letters only and its length will not exceed 10000.

      diff --git a/problems/replace-words/README.md b/problems/replace-words/README.md index d16fce052..437a54593 100644 --- a/problems/replace-words/README.md +++ b/problems/replace-words/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/dota2-senate "Dota2 Senate") -## 648. Replace Words (Medium) +## [648. Replace Words (Medium)](https://leetcode.com/problems/replace-words "ๅ•่ฏๆ›ฟๆข")

      In English, we have a concept called root, which can be followed by some other words to form another longer word - let's call this word successor. For example, the root an, followed by other, which can form another word another.

      diff --git a/problems/reported-posts-ii/README.md b/problems/reported-posts-ii/README.md index e9288b782..345feb1fc 100644 --- a/problems/reported-posts-ii/README.md +++ b/problems/reported-posts-ii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-unique-number "Largest Unique Number") -## 1132. Reported Posts II (Medium) +## [1132. Reported Posts II (Medium)](https://leetcode.com/problems/reported-posts-ii "") diff --git a/problems/reported-posts/README.md b/problems/reported-posts/README.md index 85ca6d292..458e35345 100644 --- a/problems/reported-posts/README.md +++ b/problems/reported-posts/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/print-in-order "Print in Order") -## 1113. Reported Posts (Easy) +## [1113. Reported Posts (Easy)](https://leetcode.com/problems/reported-posts "") diff --git a/problems/reshape-the-matrix/README.md b/problems/reshape-the-matrix/README.md index 5a951220d..66969fde1 100644 --- a/problems/reshape-the-matrix/README.md +++ b/problems/reshape-the-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/permutation-in-string "Permutation in String") -## 566. Reshape the Matrix (Easy) +## [566. Reshape the Matrix (Easy)](https://leetcode.com/problems/reshape-the-matrix "้‡ๅก‘็Ÿฉ้˜ต")

      In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data.

      diff --git a/problems/restore-ip-addresses/README.md b/problems/restore-ip-addresses/README.md index a9e4912fa..d19d86b24 100644 --- a/problems/restore-ip-addresses/README.md +++ b/problems/restore-ip-addresses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-inorder-traversal "Binary Tree Inorder Traversal") -## 93. Restore IP Addresses (Medium) +## [93. Restore IP Addresses (Medium)](https://leetcode.com/problems/restore-ip-addresses "ๅคๅŽŸIPๅœฐๅ€")

      Given a string containing only digits, restore it by returning all possible valid IP address combinations.

      diff --git a/problems/reveal-cards-in-increasing-order/README.md b/problems/reveal-cards-in-increasing-order/README.md index fe849e51e..7d4c21d36 100644 --- a/problems/reveal-cards-in-increasing-order/README.md +++ b/problems/reveal-cards-in-increasing-order/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flip-equivalent-binary-trees "Flip Equivalent Binary Trees") -## 950. Reveal Cards In Increasing Order (Medium) +## [950. Reveal Cards In Increasing Order (Medium)](https://leetcode.com/problems/reveal-cards-in-increasing-order "ๆŒ‰้€’ๅขž้กบๅบๆ˜พ็คบๅก็‰Œ")

      In a deck of cards, every card has a unique integer.  You can order the deck in any order you want.

      diff --git a/problems/reverse-bits/README.md b/problems/reverse-bits/README.md index 6db615aa8..9197d30aa 100644 --- a/problems/reverse-bits/README.md +++ b/problems/reverse-bits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-1-bits "Number of 1 Bits") -## 190. Reverse Bits (Easy) +## [190. Reverse Bits (Easy)](https://leetcode.com/problems/reverse-bits "้ข ๅ€’ไบŒ่ฟ›ๅˆถไฝ")

      Reverse bits of a given 32 bits unsigned integer.

      diff --git a/problems/reverse-integer/README.md b/problems/reverse-integer/README.md index 26aaab012..354062cd9 100644 --- a/problems/reverse-integer/README.md +++ b/problems/reverse-integer/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/string-to-integer-atoi "String to Integer (atoi)") -## 7. Reverse Integer (Easy) +## [7. Reverse Integer (Easy)](https://leetcode.com/problems/reverse-integer "ๆ•ดๆ•ฐๅ่ฝฌ")

      Given a 32-bit signed integer, reverse digits of an integer.

      diff --git a/problems/reverse-linked-list-ii/README.md b/problems/reverse-linked-list-ii/README.md index 3e1fc79b8..1fb6872ce 100644 --- a/problems/reverse-linked-list-ii/README.md +++ b/problems/reverse-linked-list-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/restore-ip-addresses "Restore IP Addresses") -## 92. Reverse Linked List II (Medium) +## [92. Reverse Linked List II (Medium)](https://leetcode.com/problems/reverse-linked-list-ii "ๅ่ฝฌ้“พ่กจ II")

      Reverse a linked list from position m to n. Do it in one-pass.

      diff --git a/problems/reverse-linked-list/README.md b/problems/reverse-linked-list/README.md index f5f93a1b6..0ae9d3e1e 100644 --- a/problems/reverse-linked-list/README.md +++ b/problems/reverse-linked-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/course-schedule "Course Schedule") -## 206. Reverse Linked List (Easy) +## [206. Reverse Linked List (Easy)](https://leetcode.com/problems/reverse-linked-list "ๅ่ฝฌ้“พ่กจ")

      Reverse a singly linked list.

      diff --git a/problems/reverse-nodes-in-k-group/README.md b/problems/reverse-nodes-in-k-group/README.md index 2af932045..604789930 100644 --- a/problems/reverse-nodes-in-k-group/README.md +++ b/problems/reverse-nodes-in-k-group/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-duplicates-from-sorted-array "Remove Duplicates from Sorted Array") -## 25. Reverse Nodes in k-Group (Hard) +## [25. Reverse Nodes in k-Group (Hard)](https://leetcode.com/problems/reverse-nodes-in-k-group "K ไธชไธ€็ป„็ฟป่ฝฌ้“พ่กจ")

      Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.

      diff --git a/problems/reverse-only-letters/README.md b/problems/reverse-only-letters/README.md index ddf0cedff..a44bee935 100644 --- a/problems/reverse-only-letters/README.md +++ b/problems/reverse-only-letters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-sum-circular-subarray "Maximum Sum Circular Subarray") -## 917. Reverse Only Letters (Easy) +## [917. Reverse Only Letters (Easy)](https://leetcode.com/problems/reverse-only-letters "ไป…ไป…ๅ่ฝฌๅญ—ๆฏ")

      Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positions.

      diff --git a/problems/reverse-pairs/README.md b/problems/reverse-pairs/README.md index 23a05d521..b5695a66d 100644 --- a/problems/reverse-pairs/README.md +++ b/problems/reverse-pairs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/target-sum "Target Sum") -## 493. Reverse Pairs (Hard) +## [493. Reverse Pairs (Hard)](https://leetcode.com/problems/reverse-pairs "็ฟป่ฝฌๅฏน")

      Given an array nums, we call (i, j) an important reverse pair if i < j and nums[i] > 2*nums[j].

      diff --git a/problems/reverse-string-ii/README.md b/problems/reverse-string-ii/README.md index e9ed93c32..fbbd396b6 100644 --- a/problems/reverse-string-ii/README.md +++ b/problems/reverse-string-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/01-matrix "01 Matrix") -## 541. Reverse String II (Easy) +## [541. Reverse String II (Easy)](https://leetcode.com/problems/reverse-string-ii "ๅ่ฝฌๅญ—็ฌฆไธฒ II")

      Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters left, reverse all of them. If there are less than 2k but greater than or equal to k characters, then reverse the first k characters and left the other as original. diff --git a/problems/reverse-string/README.md b/problems/reverse-string/README.md index cbe16c798..7c5a2ca27 100644 --- a/problems/reverse-string/README.md +++ b/problems/reverse-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-vowels-of-a-string "Reverse Vowels of a String") -## 344. Reverse String (Easy) +## [344. Reverse String (Easy)](https://leetcode.com/problems/reverse-string "ๅ่ฝฌๅญ—็ฌฆไธฒ")

      Write a function that reverses a string. The input string is given as an array of characters char[].

      diff --git a/problems/reverse-substrings-between-each-pair-of-parentheses/README.md b/problems/reverse-substrings-between-each-pair-of-parentheses/README.md index 30af09af3..f1be89b20 100644 --- a/problems/reverse-substrings-between-each-pair-of-parentheses/README.md +++ b/problems/reverse-substrings-between-each-pair-of-parentheses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/k-concatenation-maximum-sum "K-Concatenation Maximum Sum") -## 1190. Reverse Substrings Between Each Pair of Parentheses (Medium) +## [1190. Reverse Substrings Between Each Pair of Parentheses (Medium)](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses "ๅ่ฝฌๆฏๅฏนๆ‹ฌๅท้—ด็š„ๅญไธฒ")

      Given a string s that consists of lower case English letters and brackets. 

      @@ -57,9 +57,6 @@
    • It's guaranteed that all parentheses are balanced.
    -### Related Topics - [[Stack](https://github.com/openset/leetcode/tree/master/tag/stack/README.md)] - ### Hints
    Hint 1 diff --git a/problems/reverse-vowels-of-a-string/README.md b/problems/reverse-vowels-of-a-string/README.md index 1dd2cf605..3b1c05b08 100644 --- a/problems/reverse-vowels-of-a-string/README.md +++ b/problems/reverse-vowels-of-a-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/moving-average-from-data-stream "Moving Average from Data Stream") -## 345. Reverse Vowels of a String (Easy) +## [345. Reverse Vowels of a String (Easy)](https://leetcode.com/problems/reverse-vowels-of-a-string "ๅ่ฝฌๅญ—็ฌฆไธฒไธญ็š„ๅ…ƒ้Ÿณๅญ—ๆฏ")

    Write a function that takes a string as input and reverse only the vowels of a string.

    diff --git a/problems/reverse-words-in-a-string-ii/README.md b/problems/reverse-words-in-a-string-ii/README.md index afee3c968..c56b97182 100644 --- a/problems/reverse-words-in-a-string-ii/README.md +++ b/problems/reverse-words-in-a-string-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/repeated-dna-sequences "Repeated DNA Sequences") -## 186. Reverse Words in a String II (Medium) +## [186. Reverse Words in a String II (Medium)](https://leetcode.com/problems/reverse-words-in-a-string-ii "็ฟป่ฝฌๅญ—็ฌฆไธฒ้‡Œ็š„ๅ•่ฏ II") diff --git a/problems/reverse-words-in-a-string-iii/README.md b/problems/reverse-words-in-a-string-iii/README.md index cc190c6e9..1186419ab 100644 --- a/problems/reverse-words-in-a-string-iii/README.md +++ b/problems/reverse-words-in-a-string-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/quad-tree-intersection "Quad Tree Intersection") -## 557. Reverse Words in a String III (Easy) +## [557. Reverse Words in a String III (Easy)](https://leetcode.com/problems/reverse-words-in-a-string-iii "ๅ่ฝฌๅญ—็ฌฆไธฒไธญ็š„ๅ•่ฏ III")

    Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.

    diff --git a/problems/reverse-words-in-a-string/README.md b/problems/reverse-words-in-a-string/README.md index 616d8b4cf..167067f44 100644 --- a/problems/reverse-words-in-a-string/README.md +++ b/problems/reverse-words-in-a-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-product-subarray "Maximum Product Subarray") -## 151. Reverse Words in a String (Medium) +## [151. Reverse Words in a String (Medium)](https://leetcode.com/problems/reverse-words-in-a-string "็ฟป่ฝฌๅญ—็ฌฆไธฒ้‡Œ็š„ๅ•่ฏ")

    Given an input string, reverse the string word by word.

    diff --git a/problems/rising-temperature/README.md b/problems/rising-temperature/README.md index 6b396a40a..cc63c72db 100644 --- a/problems/rising-temperature/README.md +++ b/problems/rising-temperature/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/house-robber "House Robber") -## 197. Rising Temperature (Easy) +## [197. Rising Temperature (Easy)](https://leetcode.com/problems/rising-temperature "ไธŠๅ‡็š„ๆธฉๅบฆ")

    Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates.

    diff --git a/problems/rle-iterator/README.md b/problems/rle-iterator/README.md index 526ef2e9f..45275902a 100644 --- a/problems/rle-iterator/README.md +++ b/problems/rle-iterator/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/online-stock-span "Online Stock Span") -## 900. RLE Iterator (Medium) +## [900. RLE Iterator (Medium)](https://leetcode.com/problems/rle-iterator "RLE ่ฟญไปฃๅ™จ")

    Write an iterator that iterates through a run-length encoded sequence.

    diff --git a/problems/robot-bounded-in-circle/README.md b/problems/robot-bounded-in-circle/README.md index e5215de95..29c9233ab 100644 --- a/problems/robot-bounded-in-circle/README.md +++ b/problems/robot-bounded-in-circle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/flower-planting-with-no-adjacent "Flower Planting With No Adjacent") -## 1041. Robot Bounded In Circle (Easy) +## [1041. Robot Bounded In Circle (Easy)](https://leetcode.com/problems/robot-bounded-in-circle "ๅ›ฐไบŽ็Žฏไธญ็š„ๆœบๅ™จไบบ")

    On an infinite plane, a robot initially stands at (0, 0) and faces north.  The robot can receive one of three instructions:

    diff --git a/problems/robot-return-to-origin/README.md b/problems/robot-return-to-origin/README.md index 330196b9b..53af872b3 100644 --- a/problems/robot-return-to-origin/README.md +++ b/problems/robot-return-to-origin/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-k-closest-elements "Find K Closest Elements") -## 657. Robot Return to Origin (Easy) +## [657. Robot Return to Origin (Easy)](https://leetcode.com/problems/robot-return-to-origin "ๆœบๅ™จไบบ่ƒฝๅฆ่ฟ”ๅ›žๅŽŸ็‚น")

    There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) after it completes its moves.

    diff --git a/problems/robot-room-cleaner/README.md b/problems/robot-room-cleaner/README.md index ff1accea5..e08f5efd5 100644 --- a/problems/robot-room-cleaner/README.md +++ b/problems/robot-room-cleaner/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/the-maze "The Maze") -## 489. Robot Room Cleaner (Hard) +## [489. Robot Room Cleaner (Hard)](https://leetcode.com/problems/robot-room-cleaner "ๆ‰ซๅœฐๆœบๅ™จไบบ")

    Given a robot cleaner in a room modeled as a grid.

    diff --git a/problems/roman-to-integer/README.md b/problems/roman-to-integer/README.md index 7d0dbe087..b9219902f 100644 --- a/problems/roman-to-integer/README.md +++ b/problems/roman-to-integer/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-common-prefix "Longest Common Prefix") -## 13. Roman to Integer (Easy) +## [13. Roman to Integer (Easy)](https://leetcode.com/problems/roman-to-integer "็ฝ—้ฉฌๆ•ฐๅญ—่ฝฌๆ•ดๆ•ฐ")

    Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.

    diff --git a/problems/rotate-array/README.md b/problems/rotate-array/README.md index db933359b..c56e711c5 100644 --- a/problems/rotate-array/README.md +++ b/problems/rotate-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-bits "Reverse Bits") -## 189. Rotate Array (Easy) +## [189. Rotate Array (Easy)](https://leetcode.com/problems/rotate-array "ๆ—‹่ฝฌๆ•ฐ็ป„")

    Given an array, rotate the array to the right by k steps, where k is non-negative.

    diff --git a/problems/rotate-function/README.md b/problems/rotate-function/README.md index 07fa16f4e..849f8be48 100644 --- a/problems/rotate-function/README.md +++ b/problems/rotate-function/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/integer-replacement "Integer Replacement") -## 396. Rotate Function (Medium) +## [396. Rotate Function (Medium)](https://leetcode.com/problems/rotate-function "ๆ—‹่ฝฌๅ‡ฝๆ•ฐ")

    Given an array of integers A and let n to be its length. diff --git a/problems/rotate-image/README.md b/problems/rotate-image/README.md index eeffd9159..ce9dd0479 100644 --- a/problems/rotate-image/README.md +++ b/problems/rotate-image/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/group-anagrams "Group Anagrams") -## 48. Rotate Image (Medium) +## [48. Rotate Image (Medium)](https://leetcode.com/problems/rotate-image "ๆ—‹่ฝฌๅ›พๅƒ")

    You are given an n x n 2D matrix representing an image.

    diff --git a/problems/rotate-list/README.md b/problems/rotate-list/README.md index 4537a73ef..0bd2abc1c 100644 --- a/problems/rotate-list/README.md +++ b/problems/rotate-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-paths "Unique Paths") -## 61. Rotate List (Medium) +## [61. Rotate List (Medium)](https://leetcode.com/problems/rotate-list "ๆ—‹่ฝฌ้“พ่กจ")

    Given a linked list, rotate the list to the right by k places, where k is non-negative.

    diff --git a/problems/rotate-string/README.md b/problems/rotate-string/README.md index 5fea16f2c..65bdefc83 100644 --- a/problems/rotate-string/README.md +++ b/problems/rotate-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/all-paths-from-source-to-target "All Paths From Source to Target") -## 796. Rotate String (Easy) +## [796. Rotate String (Easy)](https://leetcode.com/problems/rotate-string "ๆ—‹่ฝฌๅญ—็ฌฆไธฒ")

    We are given two strings, A and B.

    diff --git a/problems/rotated-digits/README.md b/problems/rotated-digits/README.md index 1642b9a32..a7767e7e4 100644 --- a/problems/rotated-digits/README.md +++ b/problems/rotated-digits/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/escape-the-ghosts "Escape The Ghosts") -## 788. Rotated Digits (Easy) +## [788. Rotated Digits (Easy)](https://leetcode.com/problems/rotated-digits "ๆ—‹่ฝฌๆ•ฐๅญ—")

    X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X.  Each digit must be rotated - we cannot choose to leave it alone.

    diff --git a/problems/rotting-oranges/README.md b/problems/rotting-oranges/README.md index ed415de14..80037e6f9 100644 --- a/problems/rotting-oranges/README.md +++ b/problems/rotting-oranges/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-number-of-k-consecutive-bit-flips "Minimum Number of K Consecutive Bit Flips") -## 994. Rotting Oranges (Easy) +## [994. Rotting Oranges (Easy)](https://leetcode.com/problems/rotting-oranges "่…็ƒ‚็š„ๆฉ˜ๅญ")

    In a given grid, each cell can have one of three values:

    diff --git a/problems/russian-doll-envelopes/README.md b/problems/russian-doll-envelopes/README.md index 1c89999e4..3c94eabcd 100644 --- a/problems/russian-doll-envelopes/README.md +++ b/problems/russian-doll-envelopes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-twitter "Design Twitter") -## 354. Russian Doll Envelopes (Hard) +## [354. Russian Doll Envelopes (Hard)](https://leetcode.com/problems/russian-doll-envelopes "ไฟ„็ฝ—ๆ–ฏๅฅ—ๅจƒไฟกๅฐ้—ฎ้ข˜")

    You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the width and height of one envelope is greater than the width and height of the other envelope.

    diff --git a/problems/sales-analysis-i/README.md b/problems/sales-analysis-i/README.md index c60bf8bbc..3fd2a8927 100644 --- a/problems/sales-analysis-i/README.md +++ b/problems/sales-analysis-i/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-ii "Sales Analysis II") -## 1082. Sales Analysis I (Easy) +## [1082. Sales Analysis I (Easy)](https://leetcode.com/problems/sales-analysis-i "้”€ๅ”ฎๅˆ†ๆž I ") diff --git a/problems/sales-analysis-ii/README.md b/problems/sales-analysis-ii/README.md index 09bb3bb80..d4a0a63c5 100644 --- a/problems/sales-analysis-ii/README.md +++ b/problems/sales-analysis-ii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-iii "Sales Analysis III") -## 1083. Sales Analysis II (Easy) +## [1083. Sales Analysis II (Easy)](https://leetcode.com/problems/sales-analysis-ii "1083. ้”€ๅ”ฎๅˆ†ๆžII") diff --git a/problems/sales-analysis-iii/README.md b/problems/sales-analysis-iii/README.md index 89dd7eb2d..86f35c455 100644 --- a/problems/sales-analysis-iii/README.md +++ b/problems/sales-analysis-iii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-of-digits-in-the-minimum-number "Sum of Digits in the Minimum Number") -## 1084. Sales Analysis III (Easy) +## [1084. Sales Analysis III (Easy)](https://leetcode.com/problems/sales-analysis-iii "") diff --git a/problems/sales-person/README.md b/problems/sales-person/README.md index 309e1948c..d0908a262 100644 --- a/problems/sales-person/README.md +++ b/problems/sales-person/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/tree-node "Tree Node") -## 607. Sales Person (Easy) +## [607. Sales Person (Easy)](https://leetcode.com/problems/sales-person "้”€ๅ”ฎๅ‘˜")

    Description

    diff --git a/problems/same-tree/README.md b/problems/same-tree/README.md index 6a8401e6d..d9a6e5cd2 100644 --- a/problems/same-tree/README.md +++ b/problems/same-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/symmetric-tree "Symmetric Tree") -## 100. Same Tree (Easy) +## [100. Same Tree (Easy)](https://leetcode.com/problems/same-tree "็›ธๅŒ็š„ๆ ‘")

    Given two binary trees, write a function to check if they are the same or not.

    diff --git a/problems/satisfiability-of-equality-equations/README.md b/problems/satisfiability-of-equality-equations/README.md index 2b9dace2e..703b43d29 100644 --- a/problems/satisfiability-of-equality-equations/README.md +++ b/problems/satisfiability-of-equality-equations/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/broken-calculator "Broken Calculator") -## 990. Satisfiability of Equality Equations (Medium) +## [990. Satisfiability of Equality Equations (Medium)](https://leetcode.com/problems/satisfiability-of-equality-equations "็ญ‰ๅผๆ–น็จ‹็š„ๅฏๆปก่ถณๆ€ง")

    Given an array equations of strings that represent relationships between variables, each string equations[i] has length 4 and takes one of two different forms: "a==b" or "a!=b".  Here, a and b are lowercase letters (not necessarily different) that represent one-letter variable names.

    diff --git a/problems/score-after-flipping-matrix/README.md b/problems/score-after-flipping-matrix/README.md index 1bad9f9e9..78058d317 100644 --- a/problems/score-after-flipping-matrix/README.md +++ b/problems/score-after-flipping-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-subarray-with-sum-at-least-k "Shortest Subarray with Sum at Least K") -## 861. Score After Flipping Matrix (Medium) +## [861. Score After Flipping Matrix (Medium)](https://leetcode.com/problems/score-after-flipping-matrix "็ฟป่ฝฌ็Ÿฉ้˜ตๅŽ็š„ๅพ—ๅˆ†")

    We have a two dimensional matrix A where each value is 0 or 1.

    diff --git a/problems/score-of-parentheses/README.md b/problems/score-of-parentheses/README.md index e24d5f0f9..dc86153a3 100644 --- a/problems/score-of-parentheses/README.md +++ b/problems/score-of-parentheses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-cost-to-hire-k-workers "Minimum Cost to Hire K Workers") -## 856. Score of Parentheses (Medium) +## [856. Score of Parentheses (Medium)](https://leetcode.com/problems/score-of-parentheses "ๆ‹ฌๅท็š„ๅˆ†ๆ•ฐ")

    Given a balanced parentheses string S, compute the score of the string based on the following rule:

    diff --git a/problems/scramble-string/README.md b/problems/scramble-string/README.md index 4ca25ada2..fdfdfe68a 100644 --- a/problems/scramble-string/README.md +++ b/problems/scramble-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/merge-sorted-array "Merge Sorted Array") -## 87. Scramble String (Hard) +## [87. Scramble String (Hard)](https://leetcode.com/problems/scramble-string "ๆ‰ฐไนฑๅญ—็ฌฆไธฒ")

    Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.

    diff --git a/problems/search-a-2d-matrix-ii/README.md b/problems/search-a-2d-matrix-ii/README.md index 9f6b18fc6..64030105e 100644 --- a/problems/search-a-2d-matrix-ii/README.md +++ b/problems/search-a-2d-matrix-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/different-ways-to-add-parentheses "Different Ways to Add Parentheses") -## 240. Search a 2D Matrix II (Medium) +## [240. Search a 2D Matrix II (Medium)](https://leetcode.com/problems/search-a-2d-matrix-ii "ๆœ็ดขไบŒ็ปด็Ÿฉ้˜ต II")

    Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:

    diff --git a/problems/search-a-2d-matrix/README.md b/problems/search-a-2d-matrix/README.md index 73c86dfaa..2d46926c8 100644 --- a/problems/search-a-2d-matrix/README.md +++ b/problems/search-a-2d-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sort-colors "Sort Colors") -## 74. Search a 2D Matrix (Medium) +## [74. Search a 2D Matrix (Medium)](https://leetcode.com/problems/search-a-2d-matrix "ๆœ็ดขไบŒ็ปด็Ÿฉ้˜ต")

    Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:

    diff --git a/problems/search-in-a-binary-search-tree/README.md b/problems/search-in-a-binary-search-tree/README.md index 2a4508688..e20122d20 100644 --- a/problems/search-in-a-binary-search-tree/README.md +++ b/problems/search-in-a-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/insert-into-a-binary-search-tree "Insert into a Binary Search Tree") -## 700. Search in a Binary Search Tree (Easy) +## [700. Search in a Binary Search Tree (Easy)](https://leetcode.com/problems/search-in-a-binary-search-tree "ไบŒๅ‰ๆœ็ดขๆ ‘ไธญ็š„ๆœ็ดข")

    Given the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node's value equals the given value. Return the subtree rooted with that node. If such node doesn't exist, you should return NULL.

    diff --git a/problems/search-in-a-sorted-array-of-unknown-size/README.md b/problems/search-in-a-sorted-array-of-unknown-size/README.md index 007fd221b..72b6b6836 100644 --- a/problems/search-in-a-sorted-array-of-unknown-size/README.md +++ b/problems/search-in-a-sorted-array-of-unknown-size/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/kth-largest-element-in-a-stream "Kth Largest Element in a Stream") -## 702. Search in a Sorted Array of Unknown Size (Medium) +## [702. Search in a Sorted Array of Unknown Size (Medium)](https://leetcode.com/problems/search-in-a-sorted-array-of-unknown-size "ๆœ็ดข้•ฟๅบฆๆœช็Ÿฅ็š„ๆœ‰ๅบๆ•ฐ็ป„") diff --git a/problems/search-in-rotated-sorted-array-ii/README.md b/problems/search-in-rotated-sorted-array-ii/README.md index b2b83118b..8cf3d2d0d 100644 --- a/problems/search-in-rotated-sorted-array-ii/README.md +++ b/problems/search-in-rotated-sorted-array-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-duplicates-from-sorted-list-ii "Remove Duplicates from Sorted List II") -## 81. Search in Rotated Sorted Array II (Medium) +## [81. Search in Rotated Sorted Array II (Medium)](https://leetcode.com/problems/search-in-rotated-sorted-array-ii "ๆœ็ดขๆ—‹่ฝฌๆŽ’ๅบๆ•ฐ็ป„ II")

    Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

    diff --git a/problems/search-in-rotated-sorted-array/README.md b/problems/search-in-rotated-sorted-array/README.md index ca476cbb8..4068e77b2 100644 --- a/problems/search-in-rotated-sorted-array/README.md +++ b/problems/search-in-rotated-sorted-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-first-and-last-position-of-element-in-sorted-array "Find First and Last Position of Element in Sorted Array") -## 33. Search in Rotated Sorted Array (Medium) +## [33. Search in Rotated Sorted Array (Medium)](https://leetcode.com/problems/search-in-rotated-sorted-array "ๆœ็ดขๆ—‹่ฝฌๆŽ’ๅบๆ•ฐ็ป„")

    Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

    diff --git a/problems/search-insert-position/README.md b/problems/search-insert-position/README.md index 82869288f..999e416f2 100644 --- a/problems/search-insert-position/README.md +++ b/problems/search-insert-position/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-sudoku "Valid Sudoku") -## 35. Search Insert Position (Easy) +## [35. Search Insert Position (Easy)](https://leetcode.com/problems/search-insert-position "ๆœ็ดขๆ’ๅ…ฅไฝ็ฝฎ")

    Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.

    diff --git a/problems/second-degree-follower/README.md b/problems/second-degree-follower/README.md index bfddbf4f0..3c7805b72 100644 --- a/problems/second-degree-follower/README.md +++ b/problems/second-degree-follower/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/average-salary-departments-vs-company "Average Salary: Departments VS Company") -## 614. Second Degree Follower (Medium) +## [614. Second Degree Follower (Medium)](https://leetcode.com/problems/second-degree-follower "ไบŒ็บงๅ…ณๆณจ่€…") diff --git a/problems/second-highest-salary/README.md b/problems/second-highest-salary/README.md index c0cc34814..392232b96 100644 --- a/problems/second-highest-salary/README.md +++ b/problems/second-highest-salary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/nth-highest-salary "Nth Highest Salary") -## 176. Second Highest Salary (Easy) +## [176. Second Highest Salary (Easy)](https://leetcode.com/problems/second-highest-salary "็ฌฌไบŒ้ซ˜็š„่–ชๆฐด")

    Write a SQL query to get the second highest salary from the Employee table.

    diff --git a/problems/second-minimum-node-in-a-binary-tree/README.md b/problems/second-minimum-node-in-a-binary-tree/README.md index 2a6ad3114..a2fb836a5 100644 --- a/problems/second-minimum-node-in-a-binary-tree/README.md +++ b/problems/second-minimum-node-in-a-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bulb-switcher-ii "Bulb Switcher II") -## 671. Second Minimum Node In a Binary Tree (Easy) +## [671. Second Minimum Node In a Binary Tree (Easy)](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree "ไบŒๅ‰ๆ ‘ไธญ็ฌฌไบŒๅฐ็š„่Š‚็‚น")

    Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero sub-node. If the node has two sub-nodes, then this node's value is the smaller value among its two sub-nodes. More formally, the property root.val = min(root.left.val, root.right.val) always holds.

    diff --git a/problems/self-crossing/README.md b/problems/self-crossing/README.md index 7980ac38c..cea72f512 100644 --- a/problems/self-crossing/README.md +++ b/problems/self-crossing/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/palindrome-pairs "Palindrome Pairs") -## 335. Self Crossing (Hard) +## [335. Self Crossing (Hard)](https://leetcode.com/problems/self-crossing "่ทฏๅพ„ไบคๅ‰")

    You are given an array x of n positive numbers. You start at point (0,0) and moves x[0] metres to the north, then x[1] metres to the west, x[2] metres to the south, x[3] metres to the east and so on. In other words, after each move your direction changes counter-clockwise.

    diff --git a/problems/self-dividing-numbers/README.md b/problems/self-dividing-numbers/README.md index f0cb6f3d9..7b1e8948c 100644 --- a/problems/self-dividing-numbers/README.md +++ b/problems/self-dividing-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/my-calendar-i "My Calendar I") -## 728. Self Dividing Numbers (Easy) +## [728. Self Dividing Numbers (Easy)](https://leetcode.com/problems/self-dividing-numbers "่‡ช้™คๆ•ฐ")

    A self-dividing number is a number that is divisible by every digit it contains. diff --git a/problems/sentence-screen-fitting/README.md b/problems/sentence-screen-fitting/README.md index cc6361d1d..0887c09a7 100644 --- a/problems/sentence-screen-fitting/README.md +++ b/problems/sentence-screen-fitting/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/battleships-in-a-board "Battleships in a Board") -## 418. Sentence Screen Fitting (Medium) +## [418. Sentence Screen Fitting (Medium)](https://leetcode.com/problems/sentence-screen-fitting "ๅฑๅน•ๅฏๆ˜พ็คบๅฅๅญ็š„ๆ•ฐ้‡") diff --git a/problems/sentence-similarity-ii/README.md b/problems/sentence-similarity-ii/README.md index 8d280b680..718056141 100644 --- a/problems/sentence-similarity-ii/README.md +++ b/problems/sentence-similarity-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/monotone-increasing-digits "Monotone Increasing Digits") -## 737. Sentence Similarity II (Medium) +## [737. Sentence Similarity II (Medium)](https://leetcode.com/problems/sentence-similarity-ii "ๅฅๅญ็›ธไผผๆ€ง II") diff --git a/problems/sentence-similarity/README.md b/problems/sentence-similarity/README.md index 7f7132911..c37210a1f 100644 --- a/problems/sentence-similarity/README.md +++ b/problems/sentence-similarity/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/asteroid-collision "Asteroid Collision") -## 734. Sentence Similarity (Easy) +## [734. Sentence Similarity (Easy)](https://leetcode.com/problems/sentence-similarity "ๅฅๅญ็›ธไผผๆ€ง") diff --git a/problems/sequence-reconstruction/README.md b/problems/sequence-reconstruction/README.md index a8b4638b7..b81abb5ce 100644 --- a/problems/sequence-reconstruction/README.md +++ b/problems/sequence-reconstruction/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/add-two-numbers-ii "Add Two Numbers II") -## 444. Sequence Reconstruction (Medium) +## [444. Sequence Reconstruction (Medium)](https://leetcode.com/problems/sequence-reconstruction "ๅบๅˆ—้‡ๅปบ") diff --git a/problems/serialize-and-deserialize-binary-tree/README.md b/problems/serialize-and-deserialize-binary-tree/README.md index 5cb05e80f..839b482f4 100644 --- a/problems/serialize-and-deserialize-binary-tree/README.md +++ b/problems/serialize-and-deserialize-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-longest-consecutive-sequence "Binary Tree Longest Consecutive Sequence") -## 297. Serialize and Deserialize Binary Tree (Hard) +## [297. Serialize and Deserialize Binary Tree (Hard)](https://leetcode.com/problems/serialize-and-deserialize-binary-tree "ไบŒๅ‰ๆ ‘็š„ๅบๅˆ—ๅŒ–ไธŽๅๅบๅˆ—ๅŒ–")

    Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be reconstructed later in the same or another computer environment.

    diff --git a/problems/serialize-and-deserialize-bst/README.md b/problems/serialize-and-deserialize-bst/README.md index dae187bad..774273e13 100644 --- a/problems/serialize-and-deserialize-bst/README.md +++ b/problems/serialize-and-deserialize-bst/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/delete-node-in-a-bst "Delete Node in a BST") -## 449. Serialize and Deserialize BST (Medium) +## [449. Serialize and Deserialize BST (Medium)](https://leetcode.com/problems/serialize-and-deserialize-bst "ๅบๅˆ—ๅŒ–ๅ’Œๅๅบๅˆ—ๅŒ–ไบŒๅ‰ๆœ็ดขๆ ‘")

    Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be reconstructed later in the same or another computer environment.

    diff --git a/problems/serialize-and-deserialize-n-ary-tree/README.md b/problems/serialize-and-deserialize-n-ary-tree/README.md index 0a5e7f732..3f53be3f6 100644 --- a/problems/serialize-and-deserialize-n-ary-tree/README.md +++ b/problems/serialize-and-deserialize-n-ary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/n-ary-tree-level-order-traversal "N-ary Tree Level Order Traversal") -## 428. Serialize and Deserialize N-ary Tree (Hard) +## [428. Serialize and Deserialize N-ary Tree (Hard)](https://leetcode.com/problems/serialize-and-deserialize-n-ary-tree "ๅบๅˆ—ๅŒ–ๅ’Œๅๅบๅˆ—ๅŒ– N ๅ‰ๆ ‘") diff --git a/problems/set-intersection-size-at-least-two/README.md b/problems/set-intersection-size-at-least-two/README.md index bd8255f7b..5e31e5660 100644 --- a/problems/set-intersection-size-at-least-two/README.md +++ b/problems/set-intersection-size-at-least-two/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bold-words-in-string "Bold Words in String") -## 757. Set Intersection Size At Least Two (Hard) +## [757. Set Intersection Size At Least Two (Hard)](https://leetcode.com/problems/set-intersection-size-at-least-two " ่ฎพ็ฝฎไบค้›†ๅคงๅฐ่‡ณๅฐ‘ไธบ2")

    An integer interval [a, b] (for integers a < b) is a set of all consecutive integers from a to b, including a and b. diff --git a/problems/set-matrix-zeroes/README.md b/problems/set-matrix-zeroes/README.md index d2e0c1935..1b09a82e9 100644 --- a/problems/set-matrix-zeroes/README.md +++ b/problems/set-matrix-zeroes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/search-a-2d-matrix "Search a 2D Matrix") -## 73. Set Matrix Zeroes (Medium) +## [73. Set Matrix Zeroes (Medium)](https://leetcode.com/problems/set-matrix-zeroes "็Ÿฉ้˜ต็ฝฎ้›ถ")

    Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place.

    diff --git a/problems/set-mismatch/README.md b/problems/set-mismatch/README.md index c2da7a4bb..6b7304a8f 100644 --- a/problems/set-mismatch/README.md +++ b/problems/set-mismatch/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-length-of-pair-chain "Maximum Length of Pair Chain") -## 645. Set Mismatch (Easy) +## [645. Set Mismatch (Easy)](https://leetcode.com/problems/set-mismatch "้”™่ฏฏ็š„้›†ๅˆ")

    The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another number in the set, which results in repetition of one number and loss of another number. diff --git a/problems/shifting-letters/README.md b/problems/shifting-letters/README.md index f905935b9..ad1ce0a73 100644 --- a/problems/shifting-letters/README.md +++ b/problems/shifting-letters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximize-distance-to-closest-person "Maximize Distance to Closest Person") -## 848. Shifting Letters (Medium) +## [848. Shifting Letters (Medium)](https://leetcode.com/problems/shifting-letters "ๅญ—ๆฏ็งปไฝ")

    We have a string S of lowercase letters, and an integer array shifts.

    diff --git a/problems/shopping-offers/README.md b/problems/shopping-offers/README.md index 1e65af5e1..cc17dff08 100644 --- a/problems/shopping-offers/README.md +++ b/problems/shopping-offers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/decode-ways-ii "Decode Ways II") -## 638. Shopping Offers (Medium) +## [638. Shopping Offers (Medium)](https://leetcode.com/problems/shopping-offers "ๅคง็คผๅŒ…")

    In LeetCode Store, there are some kinds of items to sell. Each item has a price. diff --git a/problems/short-encoding-of-words/README.md b/problems/short-encoding-of-words/README.md index e9041cd24..ee2d7e0a5 100644 --- a/problems/short-encoding-of-words/README.md +++ b/problems/short-encoding-of-words/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-distance-to-a-character "Shortest Distance to a Character") -## 820. Short Encoding of Words (Medium) +## [820. Short Encoding of Words (Medium)](https://leetcode.com/problems/short-encoding-of-words "ๅ•่ฏ็š„ๅŽ‹็ผฉ็ผ–็ ")

    Given a list of words, we may encode it by writing a reference string S and a list of indexes A.

    diff --git a/problems/shortest-bridge/README.md b/problems/shortest-bridge/README.md index 71c01af1c..260f0a91a 100644 --- a/problems/shortest-bridge/README.md +++ b/problems/shortest-bridge/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/knight-dialer "Knight Dialer") -## 934. Shortest Bridge (Medium) +## [934. Shortest Bridge (Medium)](https://leetcode.com/problems/shortest-bridge "ๆœ€็Ÿญ็š„ๆกฅ")

    In a given 2D binary array A, there are two islands.  (An island is a 4-directionally connected group of 1s not connected to any other 1s.)

    diff --git a/problems/shortest-common-supersequence/README.md b/problems/shortest-common-supersequence/README.md index e5c5574db..c206af295 100644 --- a/problems/shortest-common-supersequence/README.md +++ b/problems/shortest-common-supersequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/statistics-from-a-large-sample "Statistics from a Large Sample") -## 1092. Shortest Common Supersequence (Hard) +## [1092. Shortest Common Supersequence (Hard)](https://leetcode.com/problems/shortest-common-supersequence "ๆœ€็Ÿญๅ…ฌๅ…ฑ่ถ…ๅบๅˆ—")

    Given two strings str1 and str2, return the shortest string that has both str1 and str2 as subsequences.  If multiple answers exist, you may return any of them.

    diff --git a/problems/shortest-completing-word/README.md b/problems/shortest-completing-word/README.md index 8703bfdd9..c77c4c671 100644 --- a/problems/shortest-completing-word/README.md +++ b/problems/shortest-completing-word/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/contain-virus "Contain Virus") -## 748. Shortest Completing Word (Easy) +## [748. Shortest Completing Word (Easy)](https://leetcode.com/problems/shortest-completing-word "ๆœ€็ŸญๅฎŒๆ•ด่ฏ")

    Find the minimum length word from a given dictionary words, which has all the letters from the string licensePlate. Such a word is said to complete the given string licensePlate diff --git a/problems/shortest-distance-from-all-buildings/README.md b/problems/shortest-distance-from-all-buildings/README.md index d075a9d7f..4f3fa79c6 100644 --- a/problems/shortest-distance-from-all-buildings/README.md +++ b/problems/shortest-distance-from-all-buildings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-product-of-word-lengths "Maximum Product of Word Lengths") -## 317. Shortest Distance from All Buildings (Hard) +## [317. Shortest Distance from All Buildings (Hard)](https://leetcode.com/problems/shortest-distance-from-all-buildings "็ฆปๅปบ็ญ‘็‰ฉๆœ€่ฟ‘็š„่ท็ฆป") diff --git a/problems/shortest-distance-in-a-line/README.md b/problems/shortest-distance-in-a-line/README.md index 238426540..ce7c1d9d7 100644 --- a/problems/shortest-distance-in-a-line/README.md +++ b/problems/shortest-distance-in-a-line/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/second-degree-follower "Second Degree Follower") -## 613. Shortest Distance in a Line (Easy) +## [613. Shortest Distance in a Line (Easy)](https://leetcode.com/problems/shortest-distance-in-a-line "็›ด็บฟไธŠ็š„ๆœ€่ฟ‘่ท็ฆป") Table point holds the x coordinate of some points on x-axis in a plane, which are all integers.

     

    diff --git a/problems/shortest-distance-in-a-plane/README.md b/problems/shortest-distance-in-a-plane/README.md index f2acc5a17..46d62568c 100644 --- a/problems/shortest-distance-in-a-plane/README.md +++ b/problems/shortest-distance-in-a-plane/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-distance-in-a-line "Shortest Distance in a Line") -## 612. Shortest Distance in a Plane (Medium) +## [612. Shortest Distance in a Plane (Medium)](https://leetcode.com/problems/shortest-distance-in-a-plane "ๅนณ้ขไธŠ็š„ๆœ€่ฟ‘่ท็ฆป") Table point_2d holds the coordinates (x,y) of some unique points (more than two) in a plane.

     

    diff --git a/problems/shortest-distance-to-a-character/README.md b/problems/shortest-distance-to-a-character/README.md index fbb41c88f..1c714fc50 100644 --- a/problems/shortest-distance-to-a-character/README.md +++ b/problems/shortest-distance-to-a-character/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/card-flipping-game "Card Flipping Game") -## 821. Shortest Distance to a Character (Easy) +## [821. Shortest Distance to a Character (Easy)](https://leetcode.com/problems/shortest-distance-to-a-character "ๅญ—็ฌฆ็š„ๆœ€็Ÿญ่ท็ฆป")

    Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string.

    diff --git a/problems/shortest-distance-to-target-color/README.md b/problems/shortest-distance-to-target-color/README.md index f939d3607..c1d31650e 100644 --- a/problems/shortest-distance-to-target-color/README.md +++ b/problems/shortest-distance-to-target-color/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-number-of-ones "Maximum Number of Ones") -## 1182. Shortest Distance to Target Color (Medium) +## [1182. Shortest Distance to Target Color (Medium)](https://leetcode.com/problems/shortest-distance-to-target-color "ไธŽ็›ฎๆ ‡้ขœ่‰ฒ้—ด็š„ๆœ€็Ÿญ่ท็ฆป") diff --git a/problems/shortest-palindrome/README.md b/problems/shortest-palindrome/README.md index dc9c14b98..4c169b39f 100644 --- a/problems/shortest-palindrome/README.md +++ b/problems/shortest-palindrome/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/kth-largest-element-in-an-array "Kth Largest Element in an Array") -## 214. Shortest Palindrome (Hard) +## [214. Shortest Palindrome (Hard)](https://leetcode.com/problems/shortest-palindrome "ๆœ€็Ÿญๅ›žๆ–‡ไธฒ")

    Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by performing this transformation.

    diff --git a/problems/shortest-path-in-binary-matrix/README.md b/problems/shortest-path-in-binary-matrix/README.md index f527c5ad9..f088a2f79 100644 --- a/problems/shortest-path-in-binary-matrix/README.md +++ b/problems/shortest-path-in-binary-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-common-supersequence "Shortest Common Supersequence ") -## 1091. Shortest Path in Binary Matrix (Medium) +## [1091. Shortest Path in Binary Matrix (Medium)](https://leetcode.com/problems/shortest-path-in-binary-matrix "ไบŒ่ฟ›ๅˆถ็Ÿฉ้˜ตไธญ็š„ๆœ€็Ÿญ่ทฏๅพ„")

    In an N by N square grid, each cell is either empty (0) or blocked (1).

    diff --git a/problems/shortest-path-to-get-all-keys/README.md b/problems/shortest-path-to-get-all-keys/README.md index b6db88f4f..5c3934946 100644 --- a/problems/shortest-path-to-get-all-keys/README.md +++ b/problems/shortest-path-to-get-all-keys/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-subtree-with-all-the-deepest-nodes "Smallest Subtree with all the Deepest Nodes") -## 864. Shortest Path to Get All Keys (Hard) +## [864. Shortest Path to Get All Keys (Hard)](https://leetcode.com/problems/shortest-path-to-get-all-keys "่Žทๅ–ๆ‰€ๆœ‰้’ฅๅŒ™็š„ๆœ€็Ÿญ่ทฏๅพ„")

    We are given a 2-dimensional grid"." is an empty cell, "#" is a wall, "@" is the starting point, ("a", "b", ...) are keys, and ("A""B", ...) are locks.

    diff --git a/problems/shortest-path-visiting-all-nodes/README.md b/problems/shortest-path-visiting-all-nodes/README.md index e8d9e8345..6bc36d4f8 100644 --- a/problems/shortest-path-visiting-all-nodes/README.md +++ b/problems/shortest-path-visiting-all-nodes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shifting-letters "Shifting Letters") -## 847. Shortest Path Visiting All Nodes (Hard) +## [847. Shortest Path Visiting All Nodes (Hard)](https://leetcode.com/problems/shortest-path-visiting-all-nodes "่ฎฟ้—ฎๆ‰€ๆœ‰่Š‚็‚น็š„ๆœ€็Ÿญ่ทฏๅพ„")

    An undirected, connected graph of N nodes (labeled 0, 1, 2, ..., N-1) is given as graph.

    diff --git a/problems/shortest-path-with-alternating-colors/README.md b/problems/shortest-path-with-alternating-colors/README.md index c3b509031..208b7d679 100644 --- a/problems/shortest-path-with-alternating-colors/README.md +++ b/problems/shortest-path-with-alternating-colors/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-cost-tree-from-leaf-values "Minimum Cost Tree From Leaf Values") -## 1129. Shortest Path with Alternating Colors (Medium) +## [1129. Shortest Path with Alternating Colors (Medium)](https://leetcode.com/problems/shortest-path-with-alternating-colors "้ขœ่‰ฒไบคๆ›ฟ็š„ๆœ€็Ÿญ่ทฏๅพ„")

    Consider a directed graph, with nodes labelled 0, 1, ..., n-1.  In this graph, each edge is either red or blue, and there could be self-edges or parallel edges.

    diff --git a/problems/shortest-subarray-with-sum-at-least-k/README.md b/problems/shortest-subarray-with-sum-at-least-k/README.md index f5793b373..0f38bdfa5 100644 --- a/problems/shortest-subarray-with-sum-at-least-k/README.md +++ b/problems/shortest-subarray-with-sum-at-least-k/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/all-nodes-distance-k-in-binary-tree "All Nodes Distance K in Binary Tree") -## 862. Shortest Subarray with Sum at Least K (Hard) +## [862. Shortest Subarray with Sum at Least K (Hard)](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k "ๅ’Œ่‡ณๅฐ‘ไธบ K ็š„ๆœ€็Ÿญๅญๆ•ฐ็ป„")

    Return the length of the shortest, non-empty, contiguous subarray of A with sum at least K.

    diff --git a/problems/shortest-unsorted-continuous-subarray/README.md b/problems/shortest-unsorted-continuous-subarray/README.md index 88392dedf..a29f202eb 100644 --- a/problems/shortest-unsorted-continuous-subarray/README.md +++ b/problems/shortest-unsorted-continuous-subarray/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/kill-process "Kill Process") -## 581. Shortest Unsorted Continuous Subarray (Easy) +## [581. Shortest Unsorted Continuous Subarray (Easy)](https://leetcode.com/problems/shortest-unsorted-continuous-subarray "ๆœ€็Ÿญๆ— ๅบ่ฟž็ปญๅญๆ•ฐ็ป„")

    Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order, too.

    diff --git a/problems/shortest-way-to-form-string/README.md b/problems/shortest-way-to-form-string/README.md index c125a97ca..def04c26d 100644 --- a/problems/shortest-way-to-form-string/README.md +++ b/problems/shortest-way-to-form-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/confusing-number "Confusing Number") -## 1055. Shortest Way to Form String (Medium) +## [1055. Shortest Way to Form String (Medium)](https://leetcode.com/problems/shortest-way-to-form-string "ๅฝขๆˆๅญ—็ฌฆไธฒ็š„ๆœ€็Ÿญ่ทฏๅพ„")

    From any string, we can form a subsequence of that string by deleting some number of characters (possibly no deletions).

    diff --git a/problems/shortest-word-distance-ii/README.md b/problems/shortest-word-distance-ii/README.md index 4ae33f15e..5394c03f5 100644 --- a/problems/shortest-word-distance-ii/README.md +++ b/problems/shortest-word-distance-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-word-distance-iii "Shortest Word Distance III") -## 244. Shortest Word Distance II (Medium) +## [244. Shortest Word Distance II (Medium)](https://leetcode.com/problems/shortest-word-distance-ii "ๆœ€็Ÿญๅ•่ฏ่ท็ฆป II")

    Design a class which receives a list of words in the constructor, and implements a method that takes two words word1 and word2 and return the shortest distance between these two words in the list. Your method will be called repeatedly many times with different parameters. 

    diff --git a/problems/shortest-word-distance-iii/README.md b/problems/shortest-word-distance-iii/README.md index 26234c702..72cc49a5c 100644 --- a/problems/shortest-word-distance-iii/README.md +++ b/problems/shortest-word-distance-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/strobogrammatic-number "Strobogrammatic Number") -## 245. Shortest Word Distance III (Medium) +## [245. Shortest Word Distance III (Medium)](https://leetcode.com/problems/shortest-word-distance-iii "ๆœ€็Ÿญๅ•่ฏ่ท็ฆป III") diff --git a/problems/shortest-word-distance/README.md b/problems/shortest-word-distance/README.md index ce59824e2..f41e86b44 100644 --- a/problems/shortest-word-distance/README.md +++ b/problems/shortest-word-distance/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-word-distance-ii "Shortest Word Distance II") -## 243. Shortest Word Distance (Easy) +## [243. Shortest Word Distance (Easy)](https://leetcode.com/problems/shortest-word-distance "ๆœ€็Ÿญๅ•่ฏ่ท็ฆป") diff --git a/problems/shuffle-an-array/README.md b/problems/shuffle-an-array/README.md index 4dc25e116..4967f053e 100644 --- a/problems/shuffle-an-array/README.md +++ b/problems/shuffle-an-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/mini-parser "Mini Parser") -## 384. Shuffle an Array (Medium) +## [384. Shuffle an Array (Medium)](https://leetcode.com/problems/shuffle-an-array "ๆ‰“ไนฑๆ•ฐ็ป„")

    Shuffle a set of numbers without duplicates.

    diff --git a/problems/similar-rgb-color/README.md b/problems/similar-rgb-color/README.md index a3c680331..a858c7cac 100644 --- a/problems/similar-rgb-color/README.md +++ b/problems/similar-rgb-color/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-swaps-to-make-sequences-increasing "Minimum Swaps To Make Sequences Increasing") -## 800. Similar RGB Color (Easy) +## [800. Similar RGB Color (Easy)](https://leetcode.com/problems/similar-rgb-color "็›ธไผผ RGB ้ขœ่‰ฒ") diff --git a/problems/similar-string-groups/README.md b/problems/similar-string-groups/README.md index dff83aae5..26d131081 100644 --- a/problems/similar-string-groups/README.md +++ b/problems/similar-string-groups/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/magic-squares-in-grid "Magic Squares In Grid") -## 839. Similar String Groups (Hard) +## [839. Similar String Groups (Hard)](https://leetcode.com/problems/similar-string-groups "็›ธไผผๅญ—็ฌฆไธฒ็ป„")

    Two strings X and Y are similar if we can swap two letters (in different positions) of X, so that it equals Y.

    diff --git a/problems/simplify-path/README.md b/problems/simplify-path/README.md index f30e46b68..d2f043c69 100644 --- a/problems/simplify-path/README.md +++ b/problems/simplify-path/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/edit-distance "Edit Distance") -## 71. Simplify Path (Medium) +## [71. Simplify Path (Medium)](https://leetcode.com/problems/simplify-path "็ฎ€ๅŒ–่ทฏๅพ„")

    Given an absolute path for a file (Unix-style), simplify it. Or in other words, convert it to the canonical path.

    diff --git a/problems/single-element-in-a-sorted-array/README.md b/problems/single-element-in-a-sorted-array/README.md index 038a7ecaf..87855cd0e 100644 --- a/problems/single-element-in-a-sorted-array/README.md +++ b/problems/single-element-in-a-sorted-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-string-ii "Reverse String II") -## 540. Single Element in a Sorted Array (Medium) +## [540. Single Element in a Sorted Array (Medium)](https://leetcode.com/problems/single-element-in-a-sorted-array "ๆœ‰ๅบๆ•ฐ็ป„ไธญ็š„ๅ•ไธ€ๅ…ƒ็ด ")

    Given a sorted array consisting of only integers where every element appears exactly twice except for one element which appears exactly once. Find this single element that appears only once.

    diff --git a/problems/single-number-ii/README.md b/problems/single-number-ii/README.md index 2d267629d..02aad374a 100644 --- a/problems/single-number-ii/README.md +++ b/problems/single-number-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/copy-list-with-random-pointer "Copy List with Random Pointer") -## 137. Single Number II (Medium) +## [137. Single Number II (Medium)](https://leetcode.com/problems/single-number-ii "ๅชๅ‡บ็Žฐไธ€ๆฌก็š„ๆ•ฐๅญ— II")

    Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one.

    diff --git a/problems/single-number-iii/README.md b/problems/single-number-iii/README.md index dc2d6b68d..e2e795866 100644 --- a/problems/single-number-iii/README.md +++ b/problems/single-number-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/graph-valid-tree "Graph Valid Tree") -## 260. Single Number III (Medium) +## [260. Single Number III (Medium)](https://leetcode.com/problems/single-number-iii "ๅชๅ‡บ็Žฐไธ€ๆฌก็š„ๆ•ฐๅญ— III")

    Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.

    diff --git a/problems/single-number/README.md b/problems/single-number/README.md index 78eef8c34..d9eaa60a0 100644 --- a/problems/single-number/README.md +++ b/problems/single-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/single-number-ii "Single Number II") -## 136. Single Number (Easy) +## [136. Single Number (Easy)](https://leetcode.com/problems/single-number "ๅชๅ‡บ็Žฐไธ€ๆฌก็š„ๆ•ฐๅญ—")

    Given a non-empty array of integers, every element appears twice except for one. Find that single one.

    diff --git a/problems/single-row-keyboard/README.md b/problems/single-row-keyboard/README.md index 876c7fb02..8134bd51f 100644 --- a/problems/single-row-keyboard/README.md +++ b/problems/single-row-keyboard/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-file-system "Design File System") -## 1165. Single-Row Keyboard (Easy) +## [1165. Single-Row Keyboard (Easy)](https://leetcode.com/problems/single-row-keyboard "ๅ•่กŒ้”ฎ็›˜") diff --git a/problems/sliding-puzzle/README.md b/problems/sliding-puzzle/README.md index 425ce7a6e..b90bf71d6 100644 --- a/problems/sliding-puzzle/README.md +++ b/problems/sliding-puzzle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimize-max-distance-to-gas-station "Minimize Max Distance to Gas Station") -## 773. Sliding Puzzle (Hard) +## [773. Sliding Puzzle (Hard)](https://leetcode.com/problems/sliding-puzzle "ๆป‘ๅŠจ่ฐœ้ข˜")

    On a 2x3 board, there are 5 tiles represented by the integers 1 through 5, and an empty square represented by 0.

    diff --git a/problems/sliding-window-maximum/README.md b/problems/sliding-window-maximum/README.md index 30b1b5a67..7eadabe28 100644 --- a/problems/sliding-window-maximum/README.md +++ b/problems/sliding-window-maximum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/search-a-2d-matrix-ii "Search a 2D Matrix II") -## 239. Sliding Window Maximum (Hard) +## [239. Sliding Window Maximum (Hard)](https://leetcode.com/problems/sliding-window-maximum "ๆป‘ๅŠจ็ช—ๅฃๆœ€ๅคงๅ€ผ")

    Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. Return the max sliding window.

    diff --git a/problems/sliding-window-median/README.md b/problems/sliding-window-median/README.md index 9cf715ae2..45164b7fc 100644 --- a/problems/sliding-window-median/README.md +++ b/problems/sliding-window-median/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/magical-string "Magical String") -## 480. Sliding Window Median (Hard) +## [480. Sliding Window Median (Hard)](https://leetcode.com/problems/sliding-window-median "ๆป‘ๅŠจ็ช—ๅฃไธญไฝๆ•ฐ")

    Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value.

    Examples:
    diff --git a/problems/smallest-good-base/README.md b/problems/smallest-good-base/README.md index 3f3d2da94..8cb829d8d 100644 --- a/problems/smallest-good-base/README.md +++ b/problems/smallest-good-base/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-permutation "Find Permutation") -## 483. Smallest Good Base (Hard) +## [483. Smallest Good Base (Hard)](https://leetcode.com/problems/smallest-good-base "ๆœ€ๅฐๅฅฝ่ฟ›ๅˆถ")

    For an integer n, we call k>=2 a good base of n, if all digits of n base k are 1.

    diff --git a/problems/smallest-integer-divisible-by-k/README.md b/problems/smallest-integer-divisible-by-k/README.md index 4c1cdbfd2..4b56149a4 100644 --- a/problems/smallest-integer-divisible-by-k/README.md +++ b/problems/smallest-integer-divisible-by-k/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-string-with-substrings-representing-1-to-n "Binary String With Substrings Representing 1 To N") -## 1015. Smallest Integer Divisible by K (Medium) +## [1015. Smallest Integer Divisible by K (Medium)](https://leetcode.com/problems/smallest-integer-divisible-by-k "ๅฏ่ขซ K ๆ•ด้™ค็š„ๆœ€ๅฐๆ•ดๆ•ฐ")

    Given a positive integer K, you need find the smallest positive integer N such that N is divisible by K, and N only contains the digit 1.

    diff --git a/problems/smallest-range-covering-elements-from-k-lists/README.md b/problems/smallest-range-covering-elements-from-k-lists/README.md index d143bffe7..1f4f9bbf5 100644 --- a/problems/smallest-range-covering-elements-from-k-lists/README.md +++ b/problems/smallest-range-covering-elements-from-k-lists/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-of-square-numbers "Sum of Square Numbers") -## 632. Smallest Range Covering Elements from K Lists (Hard) +## [632. Smallest Range Covering Elements from K Lists (Hard)](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists "")

    You have k lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k lists.

    diff --git a/problems/smallest-range-i/README.md b/problems/smallest-range-i/README.md index bd1dc1df3..e9786f635 100644 --- a/problems/smallest-range-i/README.md +++ b/problems/smallest-range-i/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/snakes-and-ladders "Snakes and Ladders") -## 908. Smallest Range I (Easy) +## [908. Smallest Range I (Easy)](https://leetcode.com/problems/smallest-range-i "ๆœ€ๅฐๅทฎๅ€ผ I")

    Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i].

    diff --git a/problems/smallest-range-ii/README.md b/problems/smallest-range-ii/README.md index 31782ceed..feca0a126 100644 --- a/problems/smallest-range-ii/README.md +++ b/problems/smallest-range-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/online-election "Online Election") -## 910. Smallest Range II (Medium) +## [910. Smallest Range II (Medium)](https://leetcode.com/problems/smallest-range-ii "ๆœ€ๅฐๅทฎๅ€ผ II")

    Given an array A of integers, for each integer A[i] we need to choose either x = -K or x = K, and add x to A[i] (only once).

    diff --git a/problems/smallest-rectangle-enclosing-black-pixels/README.md b/problems/smallest-rectangle-enclosing-black-pixels/README.md index 4377e4e86..8cf90733d 100644 --- a/problems/smallest-rectangle-enclosing-black-pixels/README.md +++ b/problems/smallest-rectangle-enclosing-black-pixels/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/range-sum-query-immutable "Range Sum Query - Immutable") -## 302. Smallest Rectangle Enclosing Black Pixels (Hard) +## [302. Smallest Rectangle Enclosing Black Pixels (Hard)](https://leetcode.com/problems/smallest-rectangle-enclosing-black-pixels "ๅŒ…ๅซๅ…จ้ƒจ้ป‘่‰ฒๅƒ็ด ็š„ๆœ€ๅฐ็Ÿฉๅฝข") diff --git a/problems/smallest-rotation-with-highest-score/README.md b/problems/smallest-rotation-with-highest-score/README.md index e315f6dd3..b60d07f95 100644 --- a/problems/smallest-rotation-with-highest-score/README.md +++ b/problems/smallest-rotation-with-highest-score/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/champagne-tower "Champagne Tower") -## 798. Smallest Rotation with Highest Score (Hard) +## [798. Smallest Rotation with Highest Score (Hard)](https://leetcode.com/problems/smallest-rotation-with-highest-score "ๅพ—ๅˆ†ๆœ€้ซ˜็š„ๆœ€ๅฐ่ฝฎ่ฐƒ")

     Given an array A, we may rotate it by a non-negative integer K so that the array becomes A[K], A[K+1], A{K+2], ... A[A.length - 1], A[0], A[1], ..., A[K-1].  Afterward, any entries that are less than or equal to their index are worth 1 point. 

    diff --git a/problems/smallest-string-starting-from-leaf/README.md b/problems/smallest-string-starting-from-leaf/README.md index f5d351379..6298f709c 100644 --- a/problems/smallest-string-starting-from-leaf/README.md +++ b/problems/smallest-string-starting-from-leaf/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/add-to-array-form-of-integer "Add to Array-Form of Integer") -## 988. Smallest String Starting From Leaf (Medium) +## [988. Smallest String Starting From Leaf (Medium)](https://leetcode.com/problems/smallest-string-starting-from-leaf "ไปŽๅถ็ป“็‚นๅผ€ๅง‹็š„ๆœ€ๅฐๅญ—็ฌฆไธฒ")

    Given the root of a binary tree, each node has a value from 0 to 25 representing the letters 'a' to 'z': a value of 0 represents 'a', a value of 1 represents 'b', and so on.

    diff --git a/problems/smallest-subsequence-of-distinct-characters/README.md b/problems/smallest-subsequence-of-distinct-characters/README.md index 0db6cf793..fa07b481b 100644 --- a/problems/smallest-subsequence-of-distinct-characters/README.md +++ b/problems/smallest-subsequence-of-distinct-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sales-analysis-i "Sales Analysis I") -## 1081. Smallest Subsequence of Distinct Characters (Medium) +## [1081. Smallest Subsequence of Distinct Characters (Medium)](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters "ไธๅŒๅญ—็ฌฆ็š„ๆœ€ๅฐๅญๅบๅˆ—")

    Return the lexicographically smallest subsequence of text that contains all the distinct characters of text exactly once.

    diff --git a/problems/smallest-subtree-with-all-the-deepest-nodes/README.md b/problems/smallest-subtree-with-all-the-deepest-nodes/README.md index 5de676bae..f209498eb 100644 --- a/problems/smallest-subtree-with-all-the-deepest-nodes/README.md +++ b/problems/smallest-subtree-with-all-the-deepest-nodes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/prime-palindrome "Prime Palindrome") -## 865. Smallest Subtree with all the Deepest Nodes (Medium) +## [865. Smallest Subtree with all the Deepest Nodes (Medium)](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes "ๅ…ทๆœ‰ๆ‰€ๆœ‰ๆœ€ๆทฑ็ป“็‚น็š„ๆœ€ๅฐๅญๆ ‘")

    Given a binary tree rooted at root, the depth of each node is the shortest distance to the root.

    diff --git a/problems/smallest-sufficient-team/README.md b/problems/smallest-sufficient-team/README.md index 07f60a20f..46140f9b5 100644 --- a/problems/smallest-sufficient-team/README.md +++ b/problems/smallest-sufficient-team/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/active-businesses "Active Businesses") -## 1125. Smallest Sufficient Team (Hard) +## [1125. Smallest Sufficient Team (Hard)](https://leetcode.com/problems/smallest-sufficient-team "ๆœ€ๅฐ็š„ๅฟ…่ฆๅ›ข้˜Ÿ")

    In a project, you have a list of required skills req_skills, and a list of people.  The i-th person people[i] contains a list of skills that person has.

    diff --git a/problems/snakes-and-ladders/README.md b/problems/snakes-and-ladders/README.md index 934345ff6..5d1a70d9b 100644 --- a/problems/snakes-and-ladders/README.md +++ b/problems/snakes-and-ladders/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-range-ii "Smallest Range II") -## 909. Snakes and Ladders (Medium) +## [909. Snakes and Ladders (Medium)](https://leetcode.com/problems/snakes-and-ladders "่›‡ๆขฏๆฃ‹")

    On an N x N board, the numbers from 1 to N*N are written boustrophedonically starting from the bottom left of the board, and alternating direction each row.  For example, for a 6 x 6 board, the numbers are written as follows:

    diff --git a/problems/snapshot-array/README.md b/problems/snapshot-array/README.md index 65b1f99d5..bde5c8649 100644 --- a/problems/snapshot-array/README.md +++ b/problems/snapshot-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-chunked-palindrome-decomposition "Longest Chunked Palindrome Decomposition") -## 1146. Snapshot Array (Medium) +## [1146. Snapshot Array (Medium)](https://leetcode.com/problems/snapshot-array "ๅฟซ็…งๆ•ฐ็ป„")

    Implement a SnapshotArray that supports the following interface:

    @@ -47,3 +47,9 @@ snapshotArr.get(0,0); // Get the value of array[0] with snap_id = 0, return 5 +Hint 1 +Use a list of lists, adding both the element and the snap_id to each index. +
    diff --git a/problems/solve-the-equation/README.md b/problems/solve-the-equation/README.md index ff90b6a9a..f4a02f8a6 100644 --- a/problems/solve-the-equation/README.md +++ b/problems/solve-the-equation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-circular-deque "Design Circular Deque") -## 640. Solve the Equation (Medium) +## [640. Solve the Equation (Medium)](https://leetcode.com/problems/solve-the-equation "ๆฑ‚่งฃๆ–น็จ‹")

    Solve a given equation and return the value of x in the form of string "x=#value". The equation contains only '+', '-' operation, the variable x and its coefficient. diff --git a/problems/sort-an-array/README.md b/problems/sort-an-array/README.md index 8a2fd5a5e..86a14b810 100644 --- a/problems/sort-an-array/README.md +++ b/problems/sort-an-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/cat-and-mouse "Cat and Mouse") -## 912. Sort an Array (Medium) +## [912. Sort an Array (Medium)](https://leetcode.com/problems/sort-an-array "ๆŽ’ๅบๆ•ฐ็ป„")

    Given an array of integers nums, sort the array in ascending order.

    diff --git a/problems/sort-array-by-parity-ii/README.md b/problems/sort-array-by-parity-ii/README.md index 1eddf6045..199ffd2e9 100644 --- a/problems/sort-array-by-parity-ii/README.md +++ b/problems/sort-array-by-parity-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/3sum-with-multiplicity "3Sum With Multiplicity") -## 922. Sort Array By Parity II (Easy) +## [922. Sort Array By Parity II (Easy)](https://leetcode.com/problems/sort-array-by-parity-ii "ๆŒ‰ๅฅ‡ๅถๆŽ’ๅบๆ•ฐ็ป„ II")

    Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even.

    diff --git a/problems/sort-array-by-parity/README.md b/problems/sort-array-by-parity/README.md index 527fade29..9956ea559 100644 --- a/problems/sort-array-by-parity/README.md +++ b/problems/sort-array-by-parity/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/super-palindromes "Super Palindromes") -## 905. Sort Array By Parity (Easy) +## [905. Sort Array By Parity (Easy)](https://leetcode.com/problems/sort-array-by-parity "ๆŒ‰ๅฅ‡ๅถๆŽ’ๅบๆ•ฐ็ป„")

    Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.

    diff --git a/problems/sort-characters-by-frequency/README.md b/problems/sort-characters-by-frequency/README.md index 1abb2a38c..15636da50 100644 --- a/problems/sort-characters-by-frequency/README.md +++ b/problems/sort-characters-by-frequency/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-number-of-arrows-to-burst-balloons "Minimum Number of Arrows to Burst Balloons") -## 451. Sort Characters By Frequency (Medium) +## [451. Sort Characters By Frequency (Medium)](https://leetcode.com/problems/sort-characters-by-frequency "ๆ นๆฎๅญ—็ฌฆๅ‡บ็Žฐ้ข‘็އๆŽ’ๅบ")

    Given a string, sort it in decreasing order based on the frequency of characters.

    diff --git a/problems/sort-colors/README.md b/problems/sort-colors/README.md index 1dea170db..19bdefc03 100644 --- a/problems/sort-colors/README.md +++ b/problems/sort-colors/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-window-substring "Minimum Window Substring") -## 75. Sort Colors (Medium) +## [75. Sort Colors (Medium)](https://leetcode.com/problems/sort-colors "้ขœ่‰ฒๅˆ†็ฑป")

    Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue.

    diff --git a/problems/sort-list/README.md b/problems/sort-list/README.md index 6c9317167..1d555210d 100644 --- a/problems/sort-list/README.md +++ b/problems/sort-list/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/max-points-on-a-line "Max Points on a Line") -## 148. Sort List (Medium) +## [148. Sort List (Medium)](https://leetcode.com/problems/sort-list "ๆŽ’ๅบ้“พ่กจ")

    Sort a linked list in O(n log n) time using constant space complexity.

    diff --git a/problems/sort-transformed-array/README.md b/problems/sort-transformed-array/README.md index 1ca066033..87c29e422 100644 --- a/problems/sort-transformed-array/README.md +++ b/problems/sort-transformed-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/bomb-enemy "Bomb Enemy") -## 360. Sort Transformed Array (Medium) +## [360. Sort Transformed Array (Medium)](https://leetcode.com/problems/sort-transformed-array "ๆœ‰ๅบ่ฝฌๅŒ–ๆ•ฐ็ป„") diff --git a/problems/soup-servings/README.md b/problems/soup-servings/README.md index 5366aa3f9..9dfdf605e 100644 --- a/problems/soup-servings/README.md +++ b/problems/soup-servings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/expressive-words "Expressive Words") -## 808. Soup Servings (Medium) +## [808. Soup Servings (Medium)](https://leetcode.com/problems/soup-servings "ๅˆ†ๆฑค")

    There are two types of soup: type A and type B. Initially we have N ml of each type of soup. There are four kinds of operations:

    diff --git a/problems/sparse-matrix-multiplication/README.md b/problems/sparse-matrix-multiplication/README.md index c64e4cc49..d348bd0d4 100644 --- a/problems/sparse-matrix-multiplication/README.md +++ b/problems/sparse-matrix-multiplication/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/burst-balloons "Burst Balloons") -## 311. Sparse Matrix Multiplication (Medium) +## [311. Sparse Matrix Multiplication (Medium)](https://leetcode.com/problems/sparse-matrix-multiplication "็จ€็–็Ÿฉ้˜ต็š„ไน˜ๆณ•") diff --git a/problems/special-binary-string/README.md b/problems/special-binary-string/README.md index aa51f8f7f..5ab8b46ea 100644 --- a/problems/special-binary-string/README.md +++ b/problems/special-binary-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/prime-number-of-set-bits-in-binary-representation "Prime Number of Set Bits in Binary Representation") -## 761. Special Binary String (Hard) +## [761. Special Binary String (Hard)](https://leetcode.com/problems/special-binary-string "็‰นๆฎŠ็š„ไบŒ่ฟ›ๅˆถๅบๅˆ—")

    Special binary strings are binary strings with the following two properties: diff --git a/problems/spiral-matrix-ii/README.md b/problems/spiral-matrix-ii/README.md index 468b13e29..29527da56 100644 --- a/problems/spiral-matrix-ii/README.md +++ b/problems/spiral-matrix-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/permutation-sequence "Permutation Sequence") -## 59. Spiral Matrix II (Medium) +## [59. Spiral Matrix II (Medium)](https://leetcode.com/problems/spiral-matrix-ii "่žบๆ—‹็Ÿฉ้˜ต II")

    Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.

    diff --git a/problems/spiral-matrix-iii/README.md b/problems/spiral-matrix-iii/README.md index 5da874885..d3abbd192 100644 --- a/problems/spiral-matrix-iii/README.md +++ b/problems/spiral-matrix-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/possible-bipartition "Possible Bipartition") -## 885. Spiral Matrix III (Medium) +## [885. Spiral Matrix III (Medium)](https://leetcode.com/problems/spiral-matrix-iii "่žบๆ—‹็Ÿฉ้˜ต III")

    On a 2 dimensional grid with R rows and C columns, we start at (r0, c0) facing east.

    diff --git a/problems/spiral-matrix/README.md b/problems/spiral-matrix/README.md index 6addcdcb7..656c51760 100644 --- a/problems/spiral-matrix/README.md +++ b/problems/spiral-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/jump-game "Jump Game") -## 54. Spiral Matrix (Medium) +## [54. Spiral Matrix (Medium)](https://leetcode.com/problems/spiral-matrix "่žบๆ—‹็Ÿฉ้˜ต")

    Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.

    diff --git a/problems/split-array-into-consecutive-subsequences/README.md b/problems/split-array-into-consecutive-subsequences/README.md index 858c92ecc..287faba86 100644 --- a/problems/split-array-into-consecutive-subsequences/README.md +++ b/problems/split-array-into-consecutive-subsequences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-9 "Remove 9") -## 659. Split Array into Consecutive Subsequences (Medium) +## [659. Split Array into Consecutive Subsequences (Medium)](https://leetcode.com/problems/split-array-into-consecutive-subsequences "ๅˆ†ๅ‰ฒๆ•ฐ็ป„ไธบ่ฟž็ปญๅญๅบๅˆ—")

    You are given an integer array sorted in ascending order (may contain duplicates), you need to split them into several subsequences, where each subsequences consist of at least 3 consecutive integers. Return whether you can make such a split.

    diff --git a/problems/split-array-into-fibonacci-sequence/README.md b/problems/split-array-into-fibonacci-sequence/README.md index bfb07e6e9..f8894b2a4 100644 --- a/problems/split-array-into-fibonacci-sequence/README.md +++ b/problems/split-array-into-fibonacci-sequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/guess-the-word "Guess the Word") -## 842. Split Array into Fibonacci Sequence (Medium) +## [842. Split Array into Fibonacci Sequence (Medium)](https://leetcode.com/problems/split-array-into-fibonacci-sequence "ๅฐ†ๆ•ฐ็ป„ๆ‹†ๅˆ†ๆˆๆ–ๆณข้‚ฃๅฅ‘ๅบๅˆ—")

    Given a string S of digits, such as S = "123456579", we can split it into a Fibonacci-like sequence [123, 456, 579].

    diff --git a/problems/split-array-largest-sum/README.md b/problems/split-array-largest-sum/README.md index 6eb71d376..2eca5d0e9 100644 --- a/problems/split-array-largest-sum/README.md +++ b/problems/split-array-largest-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-unique-word-abbreviation "Minimum Unique Word Abbreviation") -## 410. Split Array Largest Sum (Hard) +## [410. Split Array Largest Sum (Hard)](https://leetcode.com/problems/split-array-largest-sum "ๅˆ†ๅ‰ฒๆ•ฐ็ป„็š„ๆœ€ๅคงๅ€ผ")

    Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m subarrays.

    diff --git a/problems/split-array-with-equal-sum/README.md b/problems/split-array-with-equal-sum/README.md index 7cacc4eb7..ab71d2a75 100644 --- a/problems/split-array-with-equal-sum/README.md +++ b/problems/split-array-with-equal-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-longest-consecutive-sequence-ii "Binary Tree Longest Consecutive Sequence II") -## 548. Split Array with Equal Sum (Medium) +## [548. Split Array with Equal Sum (Medium)](https://leetcode.com/problems/split-array-with-equal-sum "ๅฐ†ๆ•ฐ็ป„ๅˆ†ๅ‰ฒๆˆๅ’Œ็›ธ็ญ‰็š„ๅญๆ•ฐ็ป„") diff --git a/problems/split-array-with-same-average/README.md b/problems/split-array-with-same-average/README.md index 92ee42f3f..14aa922d2 100644 --- a/problems/split-array-with-same-average/README.md +++ b/problems/split-array-with-same-average/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-lines-to-write-string "Number of Lines To Write String") -## 805. Split Array With Same Average (Hard) +## [805. Split Array With Same Average (Hard)](https://leetcode.com/problems/split-array-with-same-average "ๆ•ฐ็ป„็š„ๅ‡ๅ€ผๅˆ†ๅ‰ฒ")

    In a given integer array A, we must move every element of A to either list B or list C. (B and C initially start empty.)

    diff --git a/problems/split-bst/README.md b/problems/split-bst/README.md index 903c37c95..ce2787206 100644 --- a/problems/split-bst/README.md +++ b/problems/split-bst/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/swap-adjacent-in-lr-string "Swap Adjacent in LR String") -## 776. Split BST (Medium) +## [776. Split BST (Medium)](https://leetcode.com/problems/split-bst "ๆ‹†ๅˆ†ไบŒๅ‰ๆœ็ดขๆ ‘") diff --git a/problems/split-concatenated-strings/README.md b/problems/split-concatenated-strings/README.md index c4ce46658..3f74d82cd 100644 --- a/problems/split-concatenated-strings/README.md +++ b/problems/split-concatenated-strings/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/next-greater-element-iii "Next Greater Element III") -## 555. Split Concatenated Strings (Medium) +## [555. Split Concatenated Strings (Medium)](https://leetcode.com/problems/split-concatenated-strings "ๅˆ†ๅ‰ฒ่ฟžๆŽฅๅญ—็ฌฆไธฒ") diff --git a/problems/split-linked-list-in-parts/README.md b/problems/split-linked-list-in-parts/README.md index 4ca05923e..f068af239 100644 --- a/problems/split-linked-list-in-parts/README.md +++ b/problems/split-linked-list-in-parts/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-atoms "Number of Atoms") -## 725. Split Linked List in Parts (Medium) +## [725. Split Linked List in Parts (Medium)](https://leetcode.com/problems/split-linked-list-in-parts "ๅˆ†้š”้“พ่กจ")

    Given a (singly) linked list with head node root, write a function to split the linked list into k consecutive linked list "parts".

    diff --git a/problems/sqrtx/README.md b/problems/sqrtx/README.md index 2c330164c..678ff80fb 100644 --- a/problems/sqrtx/README.md +++ b/problems/sqrtx/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/climbing-stairs "Climbing Stairs") -## 69. Sqrt(x) (Easy) +## [69. Sqrt(x) (Easy)](https://leetcode.com/problems/sqrtx "x ็š„ๅนณๆ–นๆ น")

    Implement int sqrt(int x).

    diff --git a/problems/squares-of-a-sorted-array/README.md b/problems/squares-of-a-sorted-array/README.md index 3006503e3..2e3829a19 100644 --- a/problems/squares-of-a-sorted-array/README.md +++ b/problems/squares-of-a-sorted-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-turbulent-subarray "Longest Turbulent Subarray") -## 977. Squares of a Sorted Array (Easy) +## [977. Squares of a Sorted Array (Easy)](https://leetcode.com/problems/squares-of-a-sorted-array "ๆœ‰ๅบๆ•ฐ็ป„็š„ๅนณๆ–น")

    Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order.

    diff --git a/problems/squirrel-simulation/README.md b/problems/squirrel-simulation/README.md index ff3ceb09c..a42755dc8 100644 --- a/problems/squirrel-simulation/README.md +++ b/problems/squirrel-simulation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/winning-candidate "Winning Candidate") -## 573. Squirrel Simulation (Medium) +## [573. Squirrel Simulation (Medium)](https://leetcode.com/problems/squirrel-simulation "ๆพ้ผ ๆจกๆ‹Ÿ") There's a tree, a squirrel, and several nuts. Positions are represented by the cells in a 2D grid. Your goal is to find the minimal distance for the squirrel to collect all the nuts and put them under the tree one by one. The squirrel can only take at most one nut at one time and can move in four directions - up, down, left and right, to the adjacent cell. The distance is represented by the number of moves.

    Example 1:

    diff --git a/problems/stamping-the-sequence/README.md b/problems/stamping-the-sequence/README.md index 24b2ead28..028e2a4ba 100644 --- a/problems/stamping-the-sequence/README.md +++ b/problems/stamping-the-sequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reorder-data-in-log-files "Reorder Data in Log Files") -## 936. Stamping The Sequence (Hard) +## [936. Stamping The Sequence (Hard)](https://leetcode.com/problems/stamping-the-sequence "ๆˆณๅฐๅบๅˆ—")

    You want to form a target string of lowercase letters.

    diff --git a/problems/statistics-from-a-large-sample/README.md b/problems/statistics-from-a-large-sample/README.md index 4db5f436f..0b66d0a37 100644 --- a/problems/statistics-from-a-large-sample/README.md +++ b/problems/statistics-from-a-large-sample/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/car-pooling "Car Pooling") -## 1093. Statistics from a Large Sample (Medium) +## [1093. Statistics from a Large Sample (Medium)](https://leetcode.com/problems/statistics-from-a-large-sample "ๅคงๆ ทๆœฌ็ปŸ่ฎก")

    We sampled integers between 0 and 255, and stored the results in an array countcount[k] is the number of integers we sampled equal to k.

    diff --git a/problems/stickers-to-spell-word/README.md b/problems/stickers-to-spell-word/README.md index 15f274be0..fd0239b72 100644 --- a/problems/stickers-to-spell-word/README.md +++ b/problems/stickers-to-spell-word/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/top-k-frequent-words "Top K Frequent Words") -## 691. Stickers to Spell Word (Hard) +## [691. Stickers to Spell Word (Hard)](https://leetcode.com/problems/stickers-to-spell-word "่ดด็บธๆ‹ผ่ฏ")

    We are given N different types of stickers. Each sticker has a lowercase English word on it. diff --git a/problems/stone-game-ii/README.md b/problems/stone-game-ii/README.md index 6e1738db5..e4852a44c 100644 --- a/problems/stone-game-ii/README.md +++ b/problems/stone-game-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/user-activity-for-the-past-30-days-i "User Activity for the Past 30 Days I") -## 1140. Stone Game II (Medium) +## [1140. Stone Game II (Medium)](https://leetcode.com/problems/stone-game-ii "็Ÿณๅญๆธธๆˆ II")

    Alex and Lee continue their games with piles of stones.  There are a number of piles arranged in a row, and each pile has a positive integer number of stones piles[i].  The objective of the game is to end with the most stones. 

    diff --git a/problems/stone-game/README.md b/problems/stone-game/README.md index 36e6a3a9b..352076f20 100644 --- a/problems/stone-game/README.md +++ b/problems/stone-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/nth-magical-number "Nth Magical Number") -## 877. Stone Game (Medium) +## [877. Stone Game (Medium)](https://leetcode.com/problems/stone-game "็Ÿณๅญๆธธๆˆ")

    Alex and Lee play a game with piles of stones.  There are an even number of piles arranged in a row, and each pile has a positive integer number of stones piles[i].

    diff --git a/problems/strange-printer/README.md b/problems/strange-printer/README.md index 8b56fb36d..e9a0aba61 100644 --- a/problems/strange-printer/README.md +++ b/problems/strange-printer/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/non-decreasing-array "Non-decreasing Array") -## 664. Strange Printer (Hard) +## [664. Strange Printer (Hard)](https://leetcode.com/problems/strange-printer "ๅฅ‡ๆ€ช็š„ๆ‰“ๅฐๆœบ")

    There is a strange printer with the following two special requirements: diff --git a/problems/stream-of-characters/README.md b/problems/stream-of-characters/README.md index 4ffbe24e4..6660187fc 100644 --- a/problems/stream-of-characters/README.md +++ b/problems/stream-of-characters/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/moving-stones-until-consecutive "Moving Stones Until Consecutive") -## 1032. Stream of Characters (Hard) +## [1032. Stream of Characters (Hard)](https://leetcode.com/problems/stream-of-characters "ๅญ—็ฌฆๆต")

    Implement the StreamChecker class as follows:

    diff --git a/problems/string-compression/README.md b/problems/string-compression/README.md index eaedab90b..3d56b5420 100644 --- a/problems/string-compression/README.md +++ b/problems/string-compression/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sequence-reconstruction "Sequence Reconstruction") -## 443. String Compression (Easy) +## [443. String Compression (Easy)](https://leetcode.com/problems/string-compression "ๅŽ‹็ผฉๅญ—็ฌฆไธฒ")

    Given an array of characters, compress it in-place.

    diff --git a/problems/string-to-integer-atoi/README.md b/problems/string-to-integer-atoi/README.md index 3f652290d..1da386664 100644 --- a/problems/string-to-integer-atoi/README.md +++ b/problems/string-to-integer-atoi/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/palindrome-number "Palindrome Number") -## 8. String to Integer (atoi) (Medium) +## [8. String to Integer (atoi) (Medium)](https://leetcode.com/problems/string-to-integer-atoi "ๅญ—็ฌฆไธฒ่ฝฌๆขๆ•ดๆ•ฐ (atoi)")

    Implement atoi which converts a string to an integer.

    diff --git a/problems/string-transforms-into-another-string/README.md b/problems/string-transforms-into-another-string/README.md index a48f34fdd..67cf68362 100644 --- a/problems/string-transforms-into-another-string/README.md +++ b/problems/string-transforms-into-another-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/day-of-the-year "Day of the Year") -## 1153. String Transforms Into Another String (Hard) +## [1153. String Transforms Into Another String (Hard)](https://leetcode.com/problems/string-transforms-into-another-string "ๅญ—็ฌฆไธฒ่ฝฌๅŒ–") diff --git a/problems/string-without-aaa-or-bbb/README.md b/problems/string-without-aaa-or-bbb/README.md index 114422377..dd3f88892 100644 --- a/problems/string-without-aaa-or-bbb/README.md +++ b/problems/string-without-aaa-or-bbb/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-of-even-numbers-after-queries "Sum of Even Numbers After Queries") -## 984. String Without AAA or BBB (Medium) +## [984. String Without AAA or BBB (Medium)](https://leetcode.com/problems/string-without-aaa-or-bbb "ไธๅซ AAA ๆˆ– BBB ็š„ๅญ—็ฌฆไธฒ")

    Given two integers A and B, return any string S such that:

    diff --git a/problems/strobogrammatic-number-ii/README.md b/problems/strobogrammatic-number-ii/README.md index 6c3b1672c..efc103145 100644 --- a/problems/strobogrammatic-number-ii/README.md +++ b/problems/strobogrammatic-number-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/strobogrammatic-number-iii "Strobogrammatic Number III") -## 247. Strobogrammatic Number II (Medium) +## [247. Strobogrammatic Number II (Medium)](https://leetcode.com/problems/strobogrammatic-number-ii "ไธญๅฟƒๅฏน็งฐๆ•ฐ II") diff --git a/problems/strobogrammatic-number-iii/README.md b/problems/strobogrammatic-number-iii/README.md index 8c89e9582..915bff77e 100644 --- a/problems/strobogrammatic-number-iii/README.md +++ b/problems/strobogrammatic-number-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/group-shifted-strings "Group Shifted Strings") -## 248. Strobogrammatic Number III (Hard) +## [248. Strobogrammatic Number III (Hard)](https://leetcode.com/problems/strobogrammatic-number-iii "ไธญๅฟƒๅฏน็งฐๆ•ฐ III") diff --git a/problems/strobogrammatic-number/README.md b/problems/strobogrammatic-number/README.md index 41390e542..bbbece6a3 100644 --- a/problems/strobogrammatic-number/README.md +++ b/problems/strobogrammatic-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/strobogrammatic-number-ii "Strobogrammatic Number II") -## 246. Strobogrammatic Number (Easy) +## [246. Strobogrammatic Number (Easy)](https://leetcode.com/problems/strobogrammatic-number "ไธญๅฟƒๅฏน็งฐๆ•ฐ") diff --git a/problems/strong-password-checker/README.md b/problems/strong-password-checker/README.md index ba073c542..39223af92 100644 --- a/problems/strong-password-checker/README.md +++ b/problems/strong-password-checker/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-xor-of-two-numbers-in-an-array "Maximum XOR of Two Numbers in an Array") -## 420. Strong Password Checker (Hard) +## [420. Strong Password Checker (Hard)](https://leetcode.com/problems/strong-password-checker "ๅผบๅฏ†็ ๆฃ€้ชŒๅ™จ")

    A password is considered strong if below conditions are all met:

    diff --git a/problems/student-attendance-record-i/README.md b/problems/student-attendance-record-i/README.md index 1dcf96082..2f73371f1 100644 --- a/problems/student-attendance-record-i/README.md +++ b/problems/student-attendance-record-i/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/student-attendance-record-ii "Student Attendance Record II") -## 551. Student Attendance Record I (Easy) +## [551. Student Attendance Record I (Easy)](https://leetcode.com/problems/student-attendance-record-i "ๅญฆ็”Ÿๅ‡บๅ‹ค่ฎฐๅฝ• I") You are given a string representing an attendance record for a student. The record only contains the following three characters: diff --git a/problems/student-attendance-record-ii/README.md b/problems/student-attendance-record-ii/README.md index c7aa58c6b..648fcf229 100644 --- a/problems/student-attendance-record-ii/README.md +++ b/problems/student-attendance-record-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/optimal-division "Optimal Division") -## 552. Student Attendance Record II (Hard) +## [552. Student Attendance Record II (Hard)](https://leetcode.com/problems/student-attendance-record-ii "ๅญฆ็”Ÿๅ‡บๅ‹ค่ฎฐๅฝ• II")

    Given a positive integer n, return the number of all possible attendance records with length n, which will be regarded as rewardable. The answer may be very large, return it after mod 109 + 7.

    diff --git a/problems/students-report-by-geography/README.md b/problems/students-report-by-geography/README.md index df672555b..43ca274d5 100644 --- a/problems/students-report-by-geography/README.md +++ b/problems/students-report-by-geography/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/biggest-single-number "Biggest Single Number") -## 618. Students Report By Geography (Hard) +## [618. Students Report By Geography (Hard)](https://leetcode.com/problems/students-report-by-geography "ๅญฆ็”Ÿๅœฐ็†ไฟกๆฏๆŠฅๅ‘Š") A U.S graduate school has students from Asia, Europe and America. The students' location information are stored in table student as below.

     

    diff --git a/problems/subarray-product-less-than-k/README.md b/problems/subarray-product-less-than-k/README.md index d775ed25d..08f96ac07 100644 --- a/problems/subarray-product-less-than-k/README.md +++ b/problems/subarray-product-less-than-k/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/best-time-to-buy-and-sell-stock-with-transaction-fee "Best Time to Buy and Sell Stock with Transaction Fee") -## 713. Subarray Product Less Than K (Medium) +## [713. Subarray Product Less Than K (Medium)](https://leetcode.com/problems/subarray-product-less-than-k "ไน˜็งฏๅฐไบŽK็š„ๅญๆ•ฐ็ป„")

    Your are given an array of positive integers nums.

    Count and print the number of (contiguous) subarrays where the product of all the elements in the subarray is less than k.

    diff --git a/problems/subarray-sum-equals-k/README.md b/problems/subarray-sum-equals-k/README.md index 095ce9f2b..230ad8813 100644 --- a/problems/subarray-sum-equals-k/README.md +++ b/problems/subarray-sum-equals-k/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/array-partition-i "Array Partition I") -## 560. Subarray Sum Equals K (Medium) +## [560. Subarray Sum Equals K (Medium)](https://leetcode.com/problems/subarray-sum-equals-k "ๅ’ŒไธบK็š„ๅญๆ•ฐ็ป„")

    Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k.

    diff --git a/problems/subarray-sums-divisible-by-k/README.md b/problems/subarray-sums-divisible-by-k/README.md index bad025638..52b1a9ca5 100644 --- a/problems/subarray-sums-divisible-by-k/README.md +++ b/problems/subarray-sums-divisible-by-k/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/odd-even-jump "Odd Even Jump") -## 974. Subarray Sums Divisible by K (Medium) +## [974. Subarray Sums Divisible by K (Medium)](https://leetcode.com/problems/subarray-sums-divisible-by-k "ๅ’Œๅฏ่ขซ K ๆ•ด้™ค็š„ๅญๆ•ฐ็ป„")

    Given an array A of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by K.

    diff --git a/problems/subarrays-with-k-different-integers/README.md b/problems/subarrays-with-k-different-integers/README.md index 9b74e4912..94262db20 100644 --- a/problems/subarrays-with-k-different-integers/README.md +++ b/problems/subarrays-with-k-different-integers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/cousins-in-binary-tree "Cousins in Binary Tree") -## 992. Subarrays with K Different Integers (Hard) +## [992. Subarrays with K Different Integers (Hard)](https://leetcode.com/problems/subarrays-with-k-different-integers "K ไธชไธๅŒๆ•ดๆ•ฐ็š„ๅญๆ•ฐ็ป„")

    Given an array A of positive integers, call a (contiguous, not necessarily distinct) subarray of A good if the number of different integers in that subarray is exactly K.

    diff --git a/problems/subdomain-visit-count/README.md b/problems/subdomain-visit-count/README.md index 6f9301c10..57737d611 100644 --- a/problems/subdomain-visit-count/README.md +++ b/problems/subdomain-visit-count/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-triangle-area "Largest Triangle Area") -## 811. Subdomain Visit Count (Easy) +## [811. Subdomain Visit Count (Easy)](https://leetcode.com/problems/subdomain-visit-count "ๅญๅŸŸๅ่ฎฟ้—ฎ่ฎกๆ•ฐ")

    A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com", and at the lowest level, "discuss.leetcode.com". When we visit a domain like "discuss.leetcode.com", we will also visit the parent domains "leetcode.com" and "com" implicitly.

    diff --git a/problems/subsets-ii/README.md b/problems/subsets-ii/README.md index 6538307b4..c3618f956 100644 --- a/problems/subsets-ii/README.md +++ b/problems/subsets-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/decode-ways "Decode Ways") -## 90. Subsets II (Medium) +## [90. Subsets II (Medium)](https://leetcode.com/problems/subsets-ii "ๅญ้›† II")

    Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).

    diff --git a/problems/subsets/README.md b/problems/subsets/README.md index 64f15f1b2..ca45e5c79 100644 --- a/problems/subsets/README.md +++ b/problems/subsets/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-search "Word Search") -## 78. Subsets (Medium) +## [78. Subsets (Medium)](https://leetcode.com/problems/subsets "ๅญ้›†")

    Given a set of distinct integers, nums, return all possible subsets (the power set).

    diff --git a/problems/substring-with-concatenation-of-all-words/README.md b/problems/substring-with-concatenation-of-all-words/README.md index af68d0dbc..ecbe77f62 100644 --- a/problems/substring-with-concatenation-of-all-words/README.md +++ b/problems/substring-with-concatenation-of-all-words/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/next-permutation "Next Permutation") -## 30. Substring with Concatenation of All Words (Hard) +## [30. Substring with Concatenation of All Words (Hard)](https://leetcode.com/problems/substring-with-concatenation-of-all-words "ไธฒ่”ๆ‰€ๆœ‰ๅ•่ฏ็š„ๅญไธฒ")

    You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and without any intervening characters.

    diff --git a/problems/subtree-of-another-tree/README.md b/problems/subtree-of-another-tree/README.md index 12854894e..7132dfd0e 100644 --- a/problems/subtree-of-another-tree/README.md +++ b/problems/subtree-of-another-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/squirrel-simulation "Squirrel Simulation") -## 572. Subtree of Another Tree (Easy) +## [572. Subtree of Another Tree (Easy)](https://leetcode.com/problems/subtree-of-another-tree "ๅฆไธ€ไธชๆ ‘็š„ๅญๆ ‘")

    Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a tree consists of a node in s and all of this node's descendants. The tree s could also be considered as a subtree of itself. diff --git a/problems/sudoku-solver/README.md b/problems/sudoku-solver/README.md index 9e80cf790..1f9f36c27 100644 --- a/problems/sudoku-solver/README.md +++ b/problems/sudoku-solver/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/count-and-say "Count and Say") -## 37. Sudoku Solver (Hard) +## [37. Sudoku Solver (Hard)](https://leetcode.com/problems/sudoku-solver "่งฃๆ•ฐ็‹ฌ")

    Write a program to solve a Sudoku puzzle by filling the empty cells.

    diff --git a/problems/sum-of-digits-in-the-minimum-number/README.md b/problems/sum-of-digits-in-the-minimum-number/README.md index 3830cf999..ea5acf8e3 100644 --- a/problems/sum-of-digits-in-the-minimum-number/README.md +++ b/problems/sum-of-digits-in-the-minimum-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/high-five "High Five") -## 1085. Sum of Digits in the Minimum Number (Easy) +## [1085. Sum of Digits in the Minimum Number (Easy)](https://leetcode.com/problems/sum-of-digits-in-the-minimum-number "ๆœ€ๅฐๅ…ƒ็ด ๅ„ๆ•ฐไฝไน‹ๅ’Œ")

    Given an array A of positive integers, let S be the sum of the digits of the minimal element of A.

    diff --git a/problems/sum-of-distances-in-tree/README.md b/problems/sum-of-distances-in-tree/README.md index 5ff7317d9..24003e64d 100644 --- a/problems/sum-of-distances-in-tree/README.md +++ b/problems/sum-of-distances-in-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/image-overlap "Image Overlap") -## 834. Sum of Distances in Tree (Hard) +## [834. Sum of Distances in Tree (Hard)](https://leetcode.com/problems/sum-of-distances-in-tree "ๆ ‘ไธญ่ท็ฆปไน‹ๅ’Œ")

    An undirected, connected tree with N nodes labelled 0...N-1 and N-1 edges are given.

    diff --git a/problems/sum-of-even-numbers-after-queries/README.md b/problems/sum-of-even-numbers-after-queries/README.md index 4577af20d..7928f30ff 100644 --- a/problems/sum-of-even-numbers-after-queries/README.md +++ b/problems/sum-of-even-numbers-after-queries/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/interval-list-intersections "Interval List Intersections") -## 985. Sum of Even Numbers After Queries (Easy) +## [985. Sum of Even Numbers After Queries (Easy)](https://leetcode.com/problems/sum-of-even-numbers-after-queries "ๆŸฅ่ฏขๅŽ็š„ๅถๆ•ฐๅ’Œ")

    We have an array A of integers, and an array queries of queries.

    diff --git a/problems/sum-of-left-leaves/README.md b/problems/sum-of-left-leaves/README.md index 283c73428..b9e08cc10 100644 --- a/problems/sum-of-left-leaves/README.md +++ b/problems/sum-of-left-leaves/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/convert-a-number-to-hexadecimal "Convert a Number to Hexadecimal") -## 404. Sum of Left Leaves (Easy) +## [404. Sum of Left Leaves (Easy)](https://leetcode.com/problems/sum-of-left-leaves "ๅทฆๅถๅญไน‹ๅ’Œ")

    Find the sum of all left leaves in a given binary tree.

    diff --git a/problems/sum-of-root-to-leaf-binary-numbers/README.md b/problems/sum-of-root-to-leaf-binary-numbers/README.md index a0739e511..5973095af 100644 --- a/problems/sum-of-root-to-leaf-binary-numbers/README.md +++ b/problems/sum-of-root-to-leaf-binary-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/camelcase-matching "Camelcase Matching") -## 1022. Sum of Root To Leaf Binary Numbers (Easy) +## [1022. Sum of Root To Leaf Binary Numbers (Easy)](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers "ไปŽๆ นๅˆฐๅถ็š„ไบŒ่ฟ›ๅˆถๆ•ฐไน‹ๅ’Œ")

    Given a binary tree, each node has value 0 or 1.  Each root-to-leaf path represents a binary number starting with the most significant bit.  For example, if the path is 0 -> 1 -> 1 -> 0 -> 1, then this could represent 01101 in binary, which is 13.

    diff --git a/problems/sum-of-square-numbers/README.md b/problems/sum-of-square-numbers/README.md index 59519d8f3..b15e6487f 100644 --- a/problems/sum-of-square-numbers/README.md +++ b/problems/sum-of-square-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-the-derangement-of-an-array "Find the Derangement of An Array") -## 633. Sum of Square Numbers (Easy) +## [633. Sum of Square Numbers (Easy)](https://leetcode.com/problems/sum-of-square-numbers "ๅนณๆ–นๆ•ฐไน‹ๅ’Œ")

    Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c.

    diff --git a/problems/sum-of-subarray-minimums/README.md b/problems/sum-of-subarray-minimums/README.md index fb73cfca3..bd334bc5b 100644 --- a/problems/sum-of-subarray-minimums/README.md +++ b/problems/sum-of-subarray-minimums/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-range-i "Smallest Range I") -## 907. Sum of Subarray Minimums (Medium) +## [907. Sum of Subarray Minimums (Medium)](https://leetcode.com/problems/sum-of-subarray-minimums "ๅญๆ•ฐ็ป„็š„ๆœ€ๅฐๅ€ผไน‹ๅ’Œ")

    Given an array of integers A, find the sum of min(B), where B ranges over every (contiguous) subarray of A.

    diff --git a/problems/sum-of-subsequence-widths/README.md b/problems/sum-of-subsequence-widths/README.md index d9c8ce335..c09756beb 100644 --- a/problems/sum-of-subsequence-widths/README.md +++ b/problems/sum-of-subsequence-widths/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/surface-area-of-3d-shapes "Surface Area of 3D Shapes") -## 891. Sum of Subsequence Widths (Hard) +## [891. Sum of Subsequence Widths (Hard)](https://leetcode.com/problems/sum-of-subsequence-widths "ๅญๅบๅˆ—ๅฎฝๅบฆไน‹ๅ’Œ")

    Given an array of integers A, consider all non-empty subsequences of A.

    diff --git a/problems/sum-of-two-integers/README.md b/problems/sum-of-two-integers/README.md index fc430f8d1..fb6f1af46 100644 --- a/problems/sum-of-two-integers/README.md +++ b/problems/sum-of-two-integers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/super-pow "Super Pow") -## 371. Sum of Two Integers (Easy) +## [371. Sum of Two Integers (Easy)](https://leetcode.com/problems/sum-of-two-integers "ไธคๆ•ดๆ•ฐไน‹ๅ’Œ")

    Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.

    diff --git a/problems/sum-root-to-leaf-numbers/README.md b/problems/sum-root-to-leaf-numbers/README.md index 11155d0e0..df87bd7a2 100644 --- a/problems/sum-root-to-leaf-numbers/README.md +++ b/problems/sum-root-to-leaf-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/surrounded-regions "Surrounded Regions") -## 129. Sum Root to Leaf Numbers (Medium) +## [129. Sum Root to Leaf Numbers (Medium)](https://leetcode.com/problems/sum-root-to-leaf-numbers "ๆฑ‚ๆ นๅˆฐๅถๅญ่Š‚็‚นๆ•ฐๅญ—ไน‹ๅ’Œ")

    Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.

    diff --git a/problems/summary-ranges/README.md b/problems/summary-ranges/README.md index e6dc5232c..df0940a9d 100644 --- a/problems/summary-ranges/README.md +++ b/problems/summary-ranges/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/majority-element-ii "Majority Element II") -## 228. Summary Ranges (Medium) +## [228. Summary Ranges (Medium)](https://leetcode.com/problems/summary-ranges "ๆฑ‡ๆ€ปๅŒบ้—ด")

    Given a sorted integer array without duplicates, return the summary of its ranges.

    diff --git a/problems/super-egg-drop/README.md b/problems/super-egg-drop/README.md index 2a71ee009..ba940f3ab 100644 --- a/problems/super-egg-drop/README.md +++ b/problems/super-egg-drop/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/fair-candy-swap "Fair Candy Swap") -## 887. Super Egg Drop (Hard) +## [887. Super Egg Drop (Hard)](https://leetcode.com/problems/super-egg-drop "้ธก่›‹ๆމ่ฝ")

    You are given K eggs, and you have access to a building with N floors from 1 to N

    diff --git a/problems/super-palindromes/README.md b/problems/super-palindromes/README.md index 47268cc3a..7c1955310 100644 --- a/problems/super-palindromes/README.md +++ b/problems/super-palindromes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sum-of-subarray-minimums "Sum of Subarray Minimums") -## 906. Super Palindromes (Hard) +## [906. Super Palindromes (Hard)](https://leetcode.com/problems/super-palindromes "่ถ…็บงๅ›žๆ–‡ๆ•ฐ")

    Let's say a positive integer is a superpalindrome if it is a palindrome, and it is also the square of a palindrome.

    diff --git a/problems/super-pow/README.md b/problems/super-pow/README.md index 837df2a3d..dc1f69a72 100644 --- a/problems/super-pow/README.md +++ b/problems/super-pow/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-k-pairs-with-smallest-sums "Find K Pairs with Smallest Sums") -## 372. Super Pow (Medium) +## [372. Super Pow (Medium)](https://leetcode.com/problems/super-pow "่ถ…็บงๆฌกๆ–น")

    Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array.

    diff --git a/problems/super-ugly-number/README.md b/problems/super-ugly-number/README.md index ca5fa8577..2c926a6ea 100644 --- a/problems/super-ugly-number/README.md +++ b/problems/super-ugly-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-vertical-order-traversal "Binary Tree Vertical Order Traversal") -## 313. Super Ugly Number (Medium) +## [313. Super Ugly Number (Medium)](https://leetcode.com/problems/super-ugly-number "่ถ…็บงไธ‘ๆ•ฐ")

    Write a program to find the nth super ugly number.

    diff --git a/problems/super-washing-machines/README.md b/problems/super-washing-machines/README.md index eda1b7cce..92179b0b7 100644 --- a/problems/super-washing-machines/README.md +++ b/problems/super-washing-machines/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/coin-change-2 "Coin Change 2") -## 517. Super Washing Machines (Hard) +## [517. Super Washing Machines (Hard)](https://leetcode.com/problems/super-washing-machines "่ถ…็บงๆด—่กฃๆœบ")

    You have n super washing machines on a line. Initially, each washing machine has some dresses or is empty.

    diff --git a/problems/surface-area-of-3d-shapes/README.md b/problems/surface-area-of-3d-shapes/README.md index 634d7fa33..333b38b12 100644 --- a/problems/surface-area-of-3d-shapes/README.md +++ b/problems/surface-area-of-3d-shapes/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/groups-of-special-equivalent-strings "Groups of Special-Equivalent Strings") -## 892. Surface Area of 3D Shapes (Easy) +## [892. Surface Area of 3D Shapes (Easy)](https://leetcode.com/problems/surface-area-of-3d-shapes "ไธ‰็ปดๅฝขไฝ“็š„่กจ้ข็งฏ")

    On a N * N grid, we place some 1 * 1 * 1 cubes.

    diff --git a/problems/surrounded-regions/README.md b/problems/surrounded-regions/README.md index cdd4c96bb..34c2a83d0 100644 --- a/problems/surrounded-regions/README.md +++ b/problems/surrounded-regions/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/palindrome-partitioning "Palindrome Partitioning") -## 130. Surrounded Regions (Medium) +## [130. Surrounded Regions (Medium)](https://leetcode.com/problems/surrounded-regions "่ขซๅ›ด็ป•็š„ๅŒบๅŸŸ")

    Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'.

    diff --git a/problems/swap-adjacent-in-lr-string/README.md b/problems/swap-adjacent-in-lr-string/README.md index ae43aea31..1768b653c 100644 --- a/problems/swap-adjacent-in-lr-string/README.md +++ b/problems/swap-adjacent-in-lr-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/swim-in-rising-water "Swim in Rising Water") -## 777. Swap Adjacent in LR String (Medium) +## [777. Swap Adjacent in LR String (Medium)](https://leetcode.com/problems/swap-adjacent-in-lr-string "ๅœจLRๅญ—็ฌฆไธฒไธญไบคๆข็›ธ้‚ปๅญ—็ฌฆ")

    In a string composed of 'L', 'R', and 'X' characters, like "RXXLRXRXL", a move consists of either replacing one occurrence of "XL" with "LX", or replacing one occurrence of "RX" with "XR". Given the starting string start and the ending string end, return True if and only if there exists a sequence of moves to transform one string to the other.

    diff --git a/problems/swap-for-longest-repeated-character-substring/README.md b/problems/swap-for-longest-repeated-character-substring/README.md index 8659a38f9..5cb9095db 100644 --- a/problems/swap-for-longest-repeated-character-substring/README.md +++ b/problems/swap-for-longest-repeated-character-substring/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/online-majority-element-in-subarray "Online Majority Element In Subarray") -## 1156. Swap For Longest Repeated Character Substring (Medium) +## [1156. Swap For Longest Repeated Character Substring (Medium)](https://leetcode.com/problems/swap-for-longest-repeated-character-substring "")

    Given a string text, we are allowed to swap two of the characters in the string. Find the length of the longest substring with repeated characters.

    diff --git a/problems/swap-nodes-in-pairs/README.md b/problems/swap-nodes-in-pairs/README.md index 359218f6b..b578a5885 100644 --- a/problems/swap-nodes-in-pairs/README.md +++ b/problems/swap-nodes-in-pairs/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-nodes-in-k-group "Reverse Nodes in k-Group") -## 24. Swap Nodes in Pairs (Medium) +## [24. Swap Nodes in Pairs (Medium)](https://leetcode.com/problems/swap-nodes-in-pairs "ไธคไธคไบคๆข้“พ่กจไธญ็š„่Š‚็‚น")

    Given a linked list, swap every two adjacent nodes and return its head.

    diff --git a/problems/swap-salary/README.md b/problems/swap-salary/README.md index a841ac4c4..9d3220c92 100644 --- a/problems/swap-salary/README.md +++ b/problems/swap-salary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-product-of-three-numbers "Maximum Product of Three Numbers") -## 627. Swap Salary (Easy) +## [627. Swap Salary (Easy)](https://leetcode.com/problems/swap-salary "ไบคๆขๅทฅ่ต„")

    Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change all f values to m and vice versa) with a single update statement and no intermediate temp table.

    diff --git a/problems/swim-in-rising-water/README.md b/problems/swim-in-rising-water/README.md index 0f2bcbd6d..583325f02 100644 --- a/problems/swim-in-rising-water/README.md +++ b/problems/swim-in-rising-water/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/k-th-symbol-in-grammar "K-th Symbol in Grammar") -## 778. Swim in Rising Water (Hard) +## [778. Swim in Rising Water (Hard)](https://leetcode.com/problems/swim-in-rising-water "ๆฐดไฝไธŠๅ‡็š„ๆณณๆฑ ไธญๆธธๆณณ")

    On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j).

    diff --git a/problems/symmetric-tree/README.md b/problems/symmetric-tree/README.md index 8d326fb8c..98c856b9d 100644 --- a/problems/symmetric-tree/README.md +++ b/problems/symmetric-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-tree-level-order-traversal "Binary Tree Level Order Traversal") -## 101. Symmetric Tree (Easy) +## [101. Symmetric Tree (Easy)](https://leetcode.com/problems/symmetric-tree "ๅฏน็งฐไบŒๅ‰ๆ ‘")

    Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).

    diff --git a/problems/tag-validator/README.md b/problems/tag-validator/README.md index 2a3637006..da97f1dd4 100644 --- a/problems/tag-validator/README.md +++ b/problems/tag-validator/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/fraction-addition-and-subtraction "Fraction Addition and Subtraction") -## 591. Tag Validator (Hard) +## [591. Tag Validator (Hard)](https://leetcode.com/problems/tag-validator "ๆ ‡็ญพ้ชŒ่ฏๅ™จ")

    Given a string representing a code snippet, you need to implement a tag validator to parse the code and return whether it is valid. A code snippet is valid if all the following rules hold:

      diff --git a/problems/tallest-billboard/README.md b/problems/tallest-billboard/README.md index 479edc3f1..e2fe5b01b 100644 --- a/problems/tallest-billboard/README.md +++ b/problems/tallest-billboard/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/prison-cells-after-n-days "Prison Cells After N Days") -## 956. Tallest Billboard (Hard) +## [956. Tallest Billboard (Hard)](https://leetcode.com/problems/tallest-billboard "ๆœ€้ซ˜็š„ๅนฟๅ‘Š็‰Œ")

      You are installing a billboard and want it to have the largest height.  The billboard will have two steel supports, one on each side.  Each steel support must be an equal height.

      diff --git a/problems/target-sum/README.md b/problems/target-sum/README.md index 5247473f3..79e033662 100644 --- a/problems/target-sum/README.md +++ b/problems/target-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/teemo-attacking "Teemo Attacking") -## 494. Target Sum (Medium) +## [494. Target Sum (Medium)](https://leetcode.com/problems/target-sum "็›ฎๆ ‡ๅ’Œ")

      You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose one from + and - as its new symbol. diff --git a/problems/task-scheduler/README.md b/problems/task-scheduler/README.md index cb5181726..52f985e36 100644 --- a/problems/task-scheduler/README.md +++ b/problems/task-scheduler/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-circular-queue "Design Circular Queue") -## 621. Task Scheduler (Medium) +## [621. Task Scheduler (Medium)](https://leetcode.com/problems/task-scheduler "ไปปๅŠก่ฐƒๅบฆๅ™จ")

      Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks. Tasks could be done without original order. Each task could be done in one interval. For each interval, CPU could finish one task or just be idle.

      diff --git a/problems/teemo-attacking/README.md b/problems/teemo-attacking/README.md index 6ac5d385a..2d69fc305 100644 --- a/problems/teemo-attacking/README.md +++ b/problems/teemo-attacking/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/next-greater-element-i "Next Greater Element I") -## 495. Teemo Attacking (Medium) +## [495. Teemo Attacking (Medium)](https://leetcode.com/problems/teemo-attacking "ๆ่Žซๆ”ปๅ‡ป")

      In LOL world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo's attacking ascending time series towards Ashe and the poisoning time duration per Teemo's attacking, you need to output the total time that Ashe is in poisoned condition.

      diff --git a/problems/tenth-line/README.md b/problems/tenth-line/README.md index 8cec5d328..8ead6d1f4 100644 --- a/problems/tenth-line/README.md +++ b/problems/tenth-line/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/delete-duplicate-emails "Delete Duplicate Emails") -## 195. Tenth Line (Easy) +## [195. Tenth Line (Easy)](https://leetcode.com/problems/tenth-line "็ฌฌๅ่กŒ")

      Given a text file file.txt, print just the 10th line of the file.

      diff --git a/problems/ternary-expression-parser/README.md b/problems/ternary-expression-parser/README.md index 7e48c7189..e86a03dc8 100644 --- a/problems/ternary-expression-parser/README.md +++ b/problems/ternary-expression-parser/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/k-th-smallest-in-lexicographical-order "K-th Smallest in Lexicographical Order") -## 439. Ternary Expression Parser (Medium) +## [439. Ternary Expression Parser (Medium)](https://leetcode.com/problems/ternary-expression-parser "ไธ‰ๅ…ƒ่กจ่พพๅผ่งฃๆžๅ™จ") diff --git a/problems/text-justification/README.md b/problems/text-justification/README.md index 73f021db3..d767346df 100644 --- a/problems/text-justification/README.md +++ b/problems/text-justification/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sqrtx "Sqrt(x)") -## 68. Text Justification (Hard) +## [68. Text Justification (Hard)](https://leetcode.com/problems/text-justification "ๆ–‡ๆœฌๅทฆๅณๅฏน้ฝ")

      Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justified.

      diff --git a/problems/the-earliest-moment-when-everyone-become-friends/README.md b/problems/the-earliest-moment-when-everyone-become-friends/README.md index 145096583..ad6fc9f2f 100644 --- a/problems/the-earliest-moment-when-everyone-become-friends/README.md +++ b/problems/the-earliest-moment-when-everyone-become-friends/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/path-with-maximum-minimum-value "Path With Maximum Minimum Value") -## 1101. The Earliest Moment When Everyone Become Friends (Medium) +## [1101. The Earliest Moment When Everyone Become Friends (Medium)](https://leetcode.com/problems/the-earliest-moment-when-everyone-become-friends "ๅฝผๆญค็†Ÿ่ฏ†็š„ๆœ€ๆ—ฉๆ—ถ้—ด")

      In a social group, there are N people, with unique integer ids from 0 to N-1.

      diff --git a/problems/the-maze-ii/README.md b/problems/the-maze-ii/README.md index 1de108e53..51e8d2bd0 100644 --- a/problems/the-maze-ii/README.md +++ b/problems/the-maze-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/relative-ranks "Relative Ranks") -## 505. The Maze II (Medium) +## [505. The Maze II (Medium)](https://leetcode.com/problems/the-maze-ii "่ฟทๅฎซ II")

      There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up, down, left or right, but it won't stop rolling until hitting a wall. When the ball stops, it could choose the next direction.

      diff --git a/problems/the-maze-iii/README.md b/problems/the-maze-iii/README.md index 3f1db2a6c..a338eb2ae 100644 --- a/problems/the-maze-iii/README.md +++ b/problems/the-maze-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/keyboard-row "Keyboard Row") -## 499. The Maze III (Hard) +## [499. The Maze III (Hard)](https://leetcode.com/problems/the-maze-iii "่ฟทๅฎซ III") diff --git a/problems/the-maze/README.md b/problems/the-maze/README.md index a310aabdb..354fea1be 100644 --- a/problems/the-maze/README.md +++ b/problems/the-maze/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/increasing-subsequences "Increasing Subsequences") -## 490. The Maze (Medium) +## [490. The Maze (Medium)](https://leetcode.com/problems/the-maze "่ฟทๅฎซ")

      There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up, down, left or right, but it won't stop rolling until hitting a wall. When the ball stops, it could choose the next direction.

      diff --git a/problems/the-skyline-problem/README.md b/problems/the-skyline-problem/README.md index 4a1cc329d..04395608d 100644 --- a/problems/the-skyline-problem/README.md +++ b/problems/the-skyline-problem/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/contains-duplicate-ii "Contains Duplicate II") -## 218. The Skyline Problem (Hard) +## [218. The Skyline Problem (Hard)](https://leetcode.com/problems/the-skyline-problem "ๅคฉ้™…็บฟ้—ฎ้ข˜")

      A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you are given the locations and height of all the buildings as shown on a cityscape photo (Figure A), write a program to output the skyline formed by these buildings collectively (Figure B).

      Buildings Skyline Contour diff --git a/problems/third-maximum-number/README.md b/problems/third-maximum-number/README.md index f98eeca57..356f94be2 100644 --- a/problems/third-maximum-number/README.md +++ b/problems/third-maximum-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/add-strings "Add Strings") -## 414. Third Maximum Number (Easy) +## [414. Third Maximum Number (Easy)](https://leetcode.com/problems/third-maximum-number "็ฌฌไธ‰ๅคง็š„ๆ•ฐ")

      Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n).

      diff --git a/problems/three-equal-parts/README.md b/problems/three-equal-parts/README.md index 8bb1c2f38..318af4cb7 100644 --- a/problems/three-equal-parts/README.md +++ b/problems/three-equal-parts/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimize-malware-spread-ii "Minimize Malware Spread II") -## 927. Three Equal Parts (Hard) +## [927. Three Equal Parts (Hard)](https://leetcode.com/problems/three-equal-parts "ไธ‰็ญ‰ๅˆ†")

      Given an array A of 0s and 1s, divide the array into 3 non-empty parts such that all of these parts represent the same binary value.

      diff --git a/problems/time-based-key-value-store/README.md b/problems/time-based-key-value-store/README.md index e1fb0122e..fd44094a2 100644 --- a/problems/time-based-key-value-store/README.md +++ b/problems/time-based-key-value-store/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/triples-with-bitwise-and-equal-to-zero "Triples with Bitwise AND Equal To Zero") -## 981. Time Based Key-Value Store (Medium) +## [981. Time Based Key-Value Store (Medium)](https://leetcode.com/problems/time-based-key-value-store "ๅŸบไบŽๆ—ถ้—ด็š„้”ฎๅ€ผๅญ˜ๅ‚จ")

      Create a timebased key-value store class TimeMap, that supports two operations.

      diff --git a/problems/to-lower-case/README.md b/problems/to-lower-case/README.md index d75b53dfb..dd738713c 100644 --- a/problems/to-lower-case/README.md +++ b/problems/to-lower-case/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/random-pick-with-blacklist "Random Pick with Blacklist") -## 709. To Lower Case (Easy) +## [709. To Lower Case (Easy)](https://leetcode.com/problems/to-lower-case "่ฝฌๆขๆˆๅฐๅ†™ๅญ—ๆฏ")

      Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.

      diff --git a/problems/toeplitz-matrix/README.md b/problems/toeplitz-matrix/README.md index d229841c6..1d3efbdc2 100644 --- a/problems/toeplitz-matrix/README.md +++ b/problems/toeplitz-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reorganize-string "Reorganize String") -## 766. Toeplitz Matrix (Easy) +## [766. Toeplitz Matrix (Easy)](https://leetcode.com/problems/toeplitz-matrix "ๆ‰˜ๆ™ฎๅˆฉ่Œจ็Ÿฉ้˜ต")

      A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.

      diff --git a/problems/top-k-frequent-elements/README.md b/problems/top-k-frequent-elements/README.md index 3e09d512a..c764fd708 100644 --- a/problems/top-k-frequent-elements/README.md +++ b/problems/top-k-frequent-elements/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/design-tic-tac-toe "Design Tic-Tac-Toe") -## 347. Top K Frequent Elements (Medium) +## [347. Top K Frequent Elements (Medium)](https://leetcode.com/problems/top-k-frequent-elements "ๅ‰ K ไธช้ซ˜้ข‘ๅ…ƒ็ด ")

      Given a non-empty array of integers, return the k most frequent elements.

      diff --git a/problems/top-k-frequent-words/README.md b/problems/top-k-frequent-words/README.md index f4e1cc86d..80d9e4b73 100644 --- a/problems/top-k-frequent-words/README.md +++ b/problems/top-k-frequent-words/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-number-with-alternating-bits "Binary Number with Alternating Bits") -## 692. Top K Frequent Words (Medium) +## [692. Top K Frequent Words (Medium)](https://leetcode.com/problems/top-k-frequent-words "ๅ‰Kไธช้ซ˜้ข‘ๅ•่ฏ")

      Given a non-empty list of words, return the k most frequent elements.

      Your answer should be sorted by frequency from highest to lowest. If two words have the same frequency, then the word with the lower alphabetical order comes first.

      diff --git a/problems/total-hamming-distance/README.md b/problems/total-hamming-distance/README.md index d77846626..e7185bd0b 100644 --- a/problems/total-hamming-distance/README.md +++ b/problems/total-hamming-distance/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/generate-random-point-in-a-circle "Generate Random Point in a Circle") -## 477. Total Hamming Distance (Medium) +## [477. Total Hamming Distance (Medium)](https://leetcode.com/problems/total-hamming-distance "ๆฑ‰ๆ˜Ž่ท็ฆปๆ€ปๅ’Œ")

      The Hamming distance between two integers is the number of positions at which the corresponding bits are different.

      diff --git a/problems/tournament-winners/README.md b/problems/tournament-winners/README.md index 56a3565bc..d93068427 100644 --- a/problems/tournament-winners/README.md +++ b/problems/tournament-winners/README.md @@ -7,8 +7,8 @@ [< Previous](https://github.com/openset/leetcode/tree/master/problems/monthly-transactions-i "Monthly Transactions I") ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ -Next > +[Next >](https://github.com/openset/leetcode/tree/master/problems/fizz-buzz-multithreaded "Fizz Buzz Multithreaded") -## 1194. Tournament Winners (Hard) +## [1194. Tournament Winners (Hard)](https://leetcode.com/problems/tournament-winners "") diff --git a/problems/transform-to-chessboard/README.md b/problems/transform-to-chessboard/README.md index 31156bfde..933b175da 100644 --- a/problems/transform-to-chessboard/README.md +++ b/problems/transform-to-chessboard/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-distance-between-bst-nodes "Minimum Distance Between BST Nodes") -## 782. Transform to Chessboard (Hard) +## [782. Transform to Chessboard (Hard)](https://leetcode.com/problems/transform-to-chessboard "ๅ˜ไธบๆฃ‹็›˜")

      An N x N board contains only 0s and 1s. In each move, you can swap any 2 rows with each other, or any 2 columns with each other.

      diff --git a/problems/transpose-file/README.md b/problems/transpose-file/README.md index 21bc5346c..16a82b77f 100644 --- a/problems/transpose-file/README.md +++ b/problems/transpose-file/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/tenth-line "Tenth Line") -## 194. Transpose File (Medium) +## [194. Transpose File (Medium)](https://leetcode.com/problems/transpose-file "่ฝฌ็ฝฎๆ–‡ไปถ")

      Given a text file file.txt, transpose its content.

      diff --git a/problems/transpose-matrix/README.md b/problems/transpose-matrix/README.md index 7ae43809d..01c038193 100644 --- a/problems/transpose-matrix/README.md +++ b/problems/transpose-matrix/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-gap "Binary Gap") -## 867. Transpose Matrix (Easy) +## [867. Transpose Matrix (Easy)](https://leetcode.com/problems/transpose-matrix "่ฝฌ็ฝฎ็Ÿฉ้˜ต")

      Given a matrix A, return the transpose of A.

      diff --git a/problems/trapping-rain-water-ii/README.md b/problems/trapping-rain-water-ii/README.md index bb4fe403a..e5c39c6c9 100644 --- a/problems/trapping-rain-water-ii/README.md +++ b/problems/trapping-rain-water-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-word-abbreviation "Valid Word Abbreviation") -## 407. Trapping Rain Water II (Hard) +## [407. Trapping Rain Water II (Hard)](https://leetcode.com/problems/trapping-rain-water-ii "ๆŽฅ้›จๆฐด II")

      Given an m x n matrix of positive integers representing the height of each unit cell in a 2D elevation map, compute the volume of water it is able to trap after raining.

      diff --git a/problems/trapping-rain-water/README.md b/problems/trapping-rain-water/README.md index f0d491330..d455b3852 100644 --- a/problems/trapping-rain-water/README.md +++ b/problems/trapping-rain-water/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/multiply-strings "Multiply Strings") -## 42. Trapping Rain Water (Hard) +## [42. Trapping Rain Water (Hard)](https://leetcode.com/problems/trapping-rain-water "ๆŽฅ้›จๆฐด")

      Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.

      diff --git a/problems/tree-node/README.md b/problems/tree-node/README.md index 80b112f36..2558720cc 100644 --- a/problems/tree-node/README.md +++ b/problems/tree-node/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-duplicate-file-in-system "Find Duplicate File in System") -## 608. Tree Node (Medium) +## [608. Tree Node (Medium)](https://leetcode.com/problems/tree-node "ๆ ‘่Š‚็‚น")

      Given a table tree, id is identifier of the tree node and p_id is its parent node's id.

      diff --git a/problems/triangle-judgement/README.md b/problems/triangle-judgement/README.md index 1da2be96f..3cf8df017 100644 --- a/problems/triangle-judgement/README.md +++ b/problems/triangle-judgement/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-triangle-number "Valid Triangle Number") -## 610. Triangle Judgement (Easy) +## [610. Triangle Judgement (Easy)](https://leetcode.com/problems/triangle-judgement "ๅˆคๆ–ญไธ‰่ง’ๅฝข") A pupil Tim gets homework to identify whether three line segments could possibly form a triangle.

       

      diff --git a/problems/triangle/README.md b/problems/triangle/README.md index 2c512fb58..d006de92d 100644 --- a/problems/triangle/README.md +++ b/problems/triangle/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/best-time-to-buy-and-sell-stock "Best Time to Buy and Sell Stock") -## 120. Triangle (Medium) +## [120. Triangle (Medium)](https://leetcode.com/problems/triangle "ไธ‰่ง’ๅฝขๆœ€ๅฐ่ทฏๅพ„ๅ’Œ")

      Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.

      diff --git a/problems/trim-a-binary-search-tree/README.md b/problems/trim-a-binary-search-tree/README.md index 90241ca16..e460820ca 100644 --- a/problems/trim-a-binary-search-tree/README.md +++ b/problems/trim-a-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-swap "Maximum Swap") -## 669. Trim a Binary Search Tree (Easy) +## [669. Trim a Binary Search Tree (Easy)](https://leetcode.com/problems/trim-a-binary-search-tree "ไฟฎๅ‰ชไบŒๅ‰ๆœ็ดขๆ ‘")

      Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might need to change the root of the tree, so the result should return the new root of the trimmed binary search tree. diff --git a/problems/triples-with-bitwise-and-equal-to-zero/README.md b/problems/triples-with-bitwise-and-equal-to-zero/README.md index 4e3876770..baa0b75a8 100644 --- a/problems/triples-with-bitwise-and-equal-to-zero/README.md +++ b/problems/triples-with-bitwise-and-equal-to-zero/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-cost-for-tickets "Minimum Cost For Tickets") -## 982. Triples with Bitwise AND Equal To Zero (Hard) +## [982. Triples with Bitwise AND Equal To Zero (Hard)](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero "ๆŒ‰ไฝไธŽไธบ้›ถ็š„ไธ‰ๅ…ƒ็ป„")

      Given an array of integers A, find the number of triples of indices (i, j, k) such that:

      diff --git a/problems/trips-and-users/README.md b/problems/trips-and-users/README.md index 631ce2a08..e55410540 100644 --- a/problems/trips-and-users/README.md +++ b/problems/trips-and-users/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/ugly-number "Ugly Number") -## 262. Trips and Users (Hard) +## [262. Trips and Users (Hard)](https://leetcode.com/problems/trips-and-users "่กŒ็จ‹ๅ’Œ็”จๆˆท")

      The Trips table holds all taxi trips. Each trip has a unique Id, while Client_Id and Driver_Id are both foreign keys to the Users_Id at the Users table. Status is an ENUM type of (‘completed’, ‘cancelled_by_driver’, ‘cancelled_by_client’).

      diff --git a/problems/two-city-scheduling/README.md b/problems/two-city-scheduling/README.md index 6d290885c..7f5e6c27d 100644 --- a/problems/two-city-scheduling/README.md +++ b/problems/two-city-scheduling/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/matrix-cells-in-distance-order "Matrix Cells in Distance Order") -## 1029. Two City Scheduling (Easy) +## [1029. Two City Scheduling (Easy)](https://leetcode.com/problems/two-city-scheduling "ไธคๅœฐ่ฐƒๅบฆ")

      There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the i-th person to city B is costs[i][1].

      diff --git a/problems/two-sum-ii-input-array-is-sorted/README.md b/problems/two-sum-ii-input-array-is-sorted/README.md index ad41b49f1..f1bf17098 100644 --- a/problems/two-sum-ii-input-array-is-sorted/README.md +++ b/problems/two-sum-ii-input-array-is-sorted/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/excel-sheet-column-title "Excel Sheet Column Title") -## 167. Two Sum II - Input array is sorted (Easy) +## [167. Two Sum II - Input array is sorted (Easy)](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted "ไธคๆ•ฐไน‹ๅ’Œ II - ่พ“ๅ…ฅๆœ‰ๅบๆ•ฐ็ป„")

      Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.

      diff --git a/problems/two-sum-iii-data-structure-design/README.md b/problems/two-sum-iii-data-structure-design/README.md index 2db7edc60..d51cd833a 100644 --- a/problems/two-sum-iii-data-structure-design/README.md +++ b/problems/two-sum-iii-data-structure-design/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/excel-sheet-column-number "Excel Sheet Column Number") -## 170. Two Sum III - Data structure design (Easy) +## [170. Two Sum III - Data structure design (Easy)](https://leetcode.com/problems/two-sum-iii-data-structure-design "ไธคๆ•ฐไน‹ๅ’Œ III - ๆ•ฐๆฎ็ป“ๆž„่ฎพ่ฎก") diff --git a/problems/two-sum-iv-input-is-a-bst/README.md b/problems/two-sum-iv-input-is-a-bst/README.md index ae80218fc..8ba39a3e1 100644 --- a/problems/two-sum-iv-input-is-a-bst/README.md +++ b/problems/two-sum-iv-input-is-a-bst/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-binary-tree "Maximum Binary Tree") -## 653. Two Sum IV - Input is a BST (Easy) +## [653. Two Sum IV - Input is a BST (Easy)](https://leetcode.com/problems/two-sum-iv-input-is-a-bst "ไธคๆ•ฐไน‹ๅ’Œ IV - ่พ“ๅ…ฅ BST")

      Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.

      diff --git a/problems/two-sum-less-than-k/README.md b/problems/two-sum-less-than-k/README.md index f52c39c6e..2dd7562ab 100644 --- a/problems/two-sum-less-than-k/README.md +++ b/problems/two-sum-less-than-k/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-k-length-substrings-with-no-repeated-characters "Find K-Length Substrings With No Repeated Characters") -## 1099. Two Sum Less Than K (Easy) +## [1099. Two Sum Less Than K (Easy)](https://leetcode.com/problems/two-sum-less-than-k "ๅฐไบŽ K ็š„ไธคๆ•ฐไน‹ๅ’Œ")

      Given an array A of integers and integer K, return the maximum S such that there exists i < j with A[i] + A[j] = S and S < K. If no i, j exist satisfying this equation, return -1.

      diff --git a/problems/two-sum/README.md b/problems/two-sum/README.md index 16a9f6b3b..398cb1e40 100644 --- a/problems/two-sum/README.md +++ b/problems/two-sum/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/add-two-numbers "Add Two Numbers") -## 1. Two Sum (Easy) +## [1. Two Sum (Easy)](https://leetcode.com/problems/two-sum "ไธคๆ•ฐไน‹ๅ’Œ")

      Given an array of integers, return indices of the two numbers such that they add up to a specific target.

      diff --git a/problems/ugly-number-ii/README.md b/problems/ugly-number-ii/README.md index 68a1e5412..537291cb6 100644 --- a/problems/ugly-number-ii/README.md +++ b/problems/ugly-number-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/paint-house-ii "Paint House II") -## 264. Ugly Number II (Medium) +## [264. Ugly Number II (Medium)](https://leetcode.com/problems/ugly-number-ii "ไธ‘ๆ•ฐ II")

      Write a program to find the n-th ugly number.

      diff --git a/problems/ugly-number/README.md b/problems/ugly-number/README.md index 405bb931e..e252db0f6 100644 --- a/problems/ugly-number/README.md +++ b/problems/ugly-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/ugly-number-ii "Ugly Number II") -## 263. Ugly Number (Easy) +## [263. Ugly Number (Easy)](https://leetcode.com/problems/ugly-number "ไธ‘ๆ•ฐ")

      Write a program to check whether a given number is an ugly number.

      diff --git a/problems/uncommon-words-from-two-sentences/README.md b/problems/uncommon-words-from-two-sentences/README.md index 284709ce3..edbf4e6c2 100644 --- a/problems/uncommon-words-from-two-sentences/README.md +++ b/problems/uncommon-words-from-two-sentences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/spiral-matrix-iii "Spiral Matrix III") -## 884. Uncommon Words from Two Sentences (Easy) +## [884. Uncommon Words from Two Sentences (Easy)](https://leetcode.com/problems/uncommon-words-from-two-sentences "ไธคๅฅ่ฏไธญ็š„ไธๅธธ่งๅ•่ฏ")

      We are given two sentences A and B.  (A sentence is a string of space separated words.  Each word consists only of lowercase letters.)

      diff --git a/problems/uncrossed-lines/README.md b/problems/uncrossed-lines/README.md index 293371966..89b39e475 100644 --- a/problems/uncrossed-lines/README.md +++ b/problems/uncrossed-lines/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/escape-a-large-maze "Escape a Large Maze") -## 1035. Uncrossed Lines (Medium) +## [1035. Uncrossed Lines (Medium)](https://leetcode.com/problems/uncrossed-lines "ไธ็›ธไบค็š„็บฟ")

      We write the integers of A and B (in the order they are given) on two separate horizontal lines.

      diff --git a/problems/unique-binary-search-trees-ii/README.md b/problems/unique-binary-search-trees-ii/README.md index 9d6408532..d652caec3 100644 --- a/problems/unique-binary-search-trees-ii/README.md +++ b/problems/unique-binary-search-trees-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-binary-search-trees "Unique Binary Search Trees") -## 95. Unique Binary Search Trees II (Medium) +## [95. Unique Binary Search Trees II (Medium)](https://leetcode.com/problems/unique-binary-search-trees-ii "ไธๅŒ็š„ไบŒๅ‰ๆœ็ดขๆ ‘ II")

      Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n.

      diff --git a/problems/unique-binary-search-trees/README.md b/problems/unique-binary-search-trees/README.md index 5442f5256..421d50c20 100644 --- a/problems/unique-binary-search-trees/README.md +++ b/problems/unique-binary-search-trees/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/interleaving-string "Interleaving String") -## 96. Unique Binary Search Trees (Medium) +## [96. Unique Binary Search Trees (Medium)](https://leetcode.com/problems/unique-binary-search-trees "ไธๅŒ็š„ไบŒๅ‰ๆœ็ดขๆ ‘")

      Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n?

      diff --git a/problems/unique-email-addresses/README.md b/problems/unique-email-addresses/README.md index 2c3b2e356..e4a5776ca 100644 --- a/problems/unique-email-addresses/README.md +++ b/problems/unique-email-addresses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-subarrays-with-sum "Binary Subarrays With Sum") -## 929. Unique Email Addresses (Easy) +## [929. Unique Email Addresses (Easy)](https://leetcode.com/problems/unique-email-addresses "็‹ฌ็‰น็š„็”ตๅญ้‚ฎไปถๅœฐๅ€")

      Every email consists of a local name and a domain name, separated by the @ sign.

      diff --git a/problems/unique-letter-string/README.md b/problems/unique-letter-string/README.md index f38af3495..e58fefe9c 100644 --- a/problems/unique-letter-string/README.md +++ b/problems/unique-letter-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/consecutive-numbers-sum "Consecutive Numbers Sum") -## 828. Unique Letter String (Hard) +## [828. Unique Letter String (Hard)](https://leetcode.com/problems/unique-letter-string "็‹ฌ็‰นๅญ—็ฌฆไธฒ")

      A character is unique in string S if it occurs exactly once in it.

      diff --git a/problems/unique-morse-code-words/README.md b/problems/unique-morse-code-words/README.md index d406e3f98..d50ad65e8 100644 --- a/problems/unique-morse-code-words/README.md +++ b/problems/unique-morse-code-words/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/split-array-with-same-average "Split Array With Same Average") -## 804. Unique Morse Code Words (Easy) +## [804. Unique Morse Code Words (Easy)](https://leetcode.com/problems/unique-morse-code-words "ๅ”ฏไธ€ๆ‘ฉๅฐ”ๆ–ฏๅฏ†็ ่ฏ")

      International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on.

      diff --git a/problems/unique-paths-ii/README.md b/problems/unique-paths-ii/README.md index fbe942012..b5925b551 100644 --- a/problems/unique-paths-ii/README.md +++ b/problems/unique-paths-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/minimum-path-sum "Minimum Path Sum") -## 63. Unique Paths II (Medium) +## [63. Unique Paths II (Medium)](https://leetcode.com/problems/unique-paths-ii "ไธๅŒ่ทฏๅพ„ II")

      A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).

      diff --git a/problems/unique-paths-iii/README.md b/problems/unique-paths-iii/README.md index b720a4212..7528df3a4 100644 --- a/problems/unique-paths-iii/README.md +++ b/problems/unique-paths-iii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/time-based-key-value-store "Time Based Key-Value Store") -## 980. Unique Paths III (Hard) +## [980. Unique Paths III (Hard)](https://leetcode.com/problems/unique-paths-iii "ไธๅŒ่ทฏๅพ„ III")

      On a 2-dimensional grid, there are 4 types of squares:

      diff --git a/problems/unique-paths/README.md b/problems/unique-paths/README.md index 82060361e..c5798d9e3 100644 --- a/problems/unique-paths/README.md +++ b/problems/unique-paths/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/unique-paths-ii "Unique Paths II") -## 62. Unique Paths (Medium) +## [62. Unique Paths (Medium)](https://leetcode.com/problems/unique-paths "ไธๅŒ่ทฏๅพ„")

      A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).

      diff --git a/problems/unique-substrings-in-wraparound-string/README.md b/problems/unique-substrings-in-wraparound-string/README.md index a8b996c0d..094bfdb8e 100644 --- a/problems/unique-substrings-in-wraparound-string/README.md +++ b/problems/unique-substrings-in-wraparound-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/validate-ip-address "Validate IP Address") -## 467. Unique Substrings in Wraparound String (Medium) +## [467. Unique Substrings in Wraparound String (Medium)](https://leetcode.com/problems/unique-substrings-in-wraparound-string "็Žฏ็ป•ๅญ—็ฌฆไธฒไธญๅ”ฏไธ€็š„ๅญๅญ—็ฌฆไธฒ")

      Consider the string s to be the infinite wraparound string of "abcdefghijklmnopqrstuvwxyz", so s will look like this: "...zabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd....".

      diff --git a/problems/unique-word-abbreviation/README.md b/problems/unique-word-abbreviation/README.md index 059eab974..282acf4c5 100644 --- a/problems/unique-word-abbreviation/README.md +++ b/problems/unique-word-abbreviation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/game-of-life "Game of Life") -## 288. Unique Word Abbreviation (Medium) +## [288. Unique Word Abbreviation (Medium)](https://leetcode.com/problems/unique-word-abbreviation "ๅ•่ฏ็š„ๅ”ฏไธ€็ผฉๅ†™") diff --git a/problems/univalued-binary-tree/README.md b/problems/univalued-binary-tree/README.md index 416cfca2d..2c40bdf11 100644 --- a/problems/univalued-binary-tree/README.md +++ b/problems/univalued-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/vowel-spellchecker "Vowel Spellchecker") -## 965. Univalued Binary Tree (Easy) +## [965. Univalued Binary Tree (Easy)](https://leetcode.com/problems/univalued-binary-tree "ๅ•ๅ€ผไบŒๅ‰ๆ ‘")

      A binary tree is univalued if every node in the tree has the same value.

      diff --git a/problems/unpopular-books/README.md b/problems/unpopular-books/README.md index 087e7beb9..a69b40c15 100644 --- a/problems/unpopular-books/README.md +++ b/problems/unpopular-books/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/two-sum-less-than-k "Two Sum Less Than K") -## 1098. Unpopular Books (Medium) +## [1098. Unpopular Books (Medium)](https://leetcode.com/problems/unpopular-books "ๅฐไผ—ไนฆ็ฑ") diff --git a/problems/user-activity-for-the-past-30-days-i/README.md b/problems/user-activity-for-the-past-30-days-i/README.md index 569c34db4..1b2411702 100644 --- a/problems/user-activity-for-the-past-30-days-i/README.md +++ b/problems/user-activity-for-the-past-30-days-i/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/user-activity-for-the-past-30-days-ii "User Activity for the Past 30 Days II") -## 1141. User Activity for the Past 30 Days I (Easy) +## [1141. User Activity for the Past 30 Days I (Easy)](https://leetcode.com/problems/user-activity-for-the-past-30-days-i "") diff --git a/problems/user-activity-for-the-past-30-days-ii/README.md b/problems/user-activity-for-the-past-30-days-ii/README.md index d47805de8..5fdbbe181 100644 --- a/problems/user-activity-for-the-past-30-days-ii/README.md +++ b/problems/user-activity-for-the-past-30-days-ii/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-common-subsequence "Longest Common Subsequence") -## 1142. User Activity for the Past 30 Days II (Easy) +## [1142. User Activity for the Past 30 Days II (Easy)](https://leetcode.com/problems/user-activity-for-the-past-30-days-ii "") diff --git a/problems/user-purchase-platform/README.md b/problems/user-purchase-platform/README.md index b8a9bb57a..1412d7f4e 100644 --- a/problems/user-purchase-platform/README.md +++ b/problems/user-purchase-platform/README.md @@ -9,6 +9,6 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-equivalent-domino-pairs "Number of Equivalent Domino Pairs") -## 1127. User Purchase Platform (Hard) +## [1127. User Purchase Platform (Hard)](https://leetcode.com/problems/user-purchase-platform "") diff --git a/problems/utf-8-validation/README.md b/problems/utf-8-validation/README.md index 1369db72b..78e3f6165 100644 --- a/problems/utf-8-validation/README.md +++ b/problems/utf-8-validation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/decode-string "Decode String") -## 393. UTF-8 Validation (Medium) +## [393. UTF-8 Validation (Medium)](https://leetcode.com/problems/utf-8-validation "UTF-8 ็ผ–็ ้ชŒ่ฏ")

      A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules:

        diff --git a/problems/valid-anagram/README.md b/problems/valid-anagram/README.md index 5c81c4f3b..0b04d6ffd 100644 --- a/problems/valid-anagram/README.md +++ b/problems/valid-anagram/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-word-distance "Shortest Word Distance") -## 242. Valid Anagram (Easy) +## [242. Valid Anagram (Easy)](https://leetcode.com/problems/valid-anagram "ๆœ‰ๆ•ˆ็š„ๅญ—ๆฏๅผ‚ไฝ่ฏ")

        Given two strings s and , write a function to determine if t is an anagram of s.

        diff --git a/problems/valid-boomerang/README.md b/problems/valid-boomerang/README.md index 8fa565999..e789f8a8a 100644 --- a/problems/valid-boomerang/README.md +++ b/problems/valid-boomerang/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/binary-search-tree-to-greater-sum-tree "Binary Search Tree to Greater Sum Tree") -## 1037. Valid Boomerang (Easy) +## [1037. Valid Boomerang (Easy)](https://leetcode.com/problems/valid-boomerang "ๆœ‰ๆ•ˆ็š„ๅ›žๆ—‹้•–")

        A boomerang is a set of 3 points that are all distinct and not in a straight line.

        diff --git a/problems/valid-mountain-array/README.md b/problems/valid-mountain-array/README.md index 44ee15be1..5c330783c 100644 --- a/problems/valid-mountain-array/README.md +++ b/problems/valid-mountain-array/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/di-string-match "DI String Match") -## 941. Valid Mountain Array (Easy) +## [941. Valid Mountain Array (Easy)](https://leetcode.com/problems/valid-mountain-array "ๆœ‰ๆ•ˆ็š„ๅฑฑ่„‰ๆ•ฐ็ป„")

        Given an array A of integers, return true if and only if it is a valid mountain array.

        diff --git a/problems/valid-number/README.md b/problems/valid-number/README.md index 09de14faa..dfe197c93 100644 --- a/problems/valid-number/README.md +++ b/problems/valid-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/plus-one "Plus One") -## 65. Valid Number (Hard) +## [65. Valid Number (Hard)](https://leetcode.com/problems/valid-number "ๆœ‰ๆ•ˆๆ•ฐๅญ—")

        Validate if a given string can be interpreted as a decimal number.

        diff --git a/problems/valid-palindrome-ii/README.md b/problems/valid-palindrome-ii/README.md index cdd99d3d0..db77d8cd9 100644 --- a/problems/valid-palindrome-ii/README.md +++ b/problems/valid-palindrome-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/next-closest-time "Next Closest Time") -## 680. Valid Palindrome II (Easy) +## [680. Valid Palindrome II (Easy)](https://leetcode.com/problems/valid-palindrome-ii "้ชŒ่ฏๅ›žๆ–‡ๅญ—็ฌฆไธฒ โ…ก")

        Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. diff --git a/problems/valid-palindrome/README.md b/problems/valid-palindrome/README.md index f63c02a28..88ffb9a5f 100644 --- a/problems/valid-palindrome/README.md +++ b/problems/valid-palindrome/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-ladder-ii "Word Ladder II") -## 125. Valid Palindrome (Easy) +## [125. Valid Palindrome (Easy)](https://leetcode.com/problems/valid-palindrome "้ชŒ่ฏๅ›žๆ–‡ไธฒ")

        Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.

        diff --git a/problems/valid-parentheses/README.md b/problems/valid-parentheses/README.md index 40b27ab71..7ad6dabb1 100644 --- a/problems/valid-parentheses/README.md +++ b/problems/valid-parentheses/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/merge-two-sorted-lists "Merge Two Sorted Lists") -## 20. Valid Parentheses (Easy) +## [20. Valid Parentheses (Easy)](https://leetcode.com/problems/valid-parentheses "ๆœ‰ๆ•ˆ็š„ๆ‹ฌๅท")

        Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

        diff --git a/problems/valid-parenthesis-string/README.md b/problems/valid-parenthesis-string/README.md index 69b4b77b5..3ee494ec1 100644 --- a/problems/valid-parenthesis-string/README.md +++ b/problems/valid-parenthesis-string/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/24-game "24 Game") -## 678. Valid Parenthesis String (Medium) +## [678. Valid Parenthesis String (Medium)](https://leetcode.com/problems/valid-parenthesis-string "ๆœ‰ๆ•ˆ็š„ๆ‹ฌๅทๅญ—็ฌฆไธฒ")

        Given a string containing only three types of characters: '(', ')' and '*', write a function to check whether this string is valid. We define the validity of a string by these rules: diff --git a/problems/valid-perfect-square/README.md b/problems/valid-perfect-square/README.md index 85d4fe423..3f6ec1c3f 100644 --- a/problems/valid-perfect-square/README.md +++ b/problems/valid-perfect-square/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/largest-divisible-subset "Largest Divisible Subset") -## 367. Valid Perfect Square (Easy) +## [367. Valid Perfect Square (Easy)](https://leetcode.com/problems/valid-perfect-square "ๆœ‰ๆ•ˆ็š„ๅฎŒๅ…จๅนณๆ–นๆ•ฐ")

        Given a positive integer num, write a function which returns True if num is a perfect square else False.

        diff --git a/problems/valid-permutations-for-di-sequence/README.md b/problems/valid-permutations-for-di-sequence/README.md index a9a039d62..19a96c7b1 100644 --- a/problems/valid-permutations-for-di-sequence/README.md +++ b/problems/valid-permutations-for-di-sequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/fruit-into-baskets "Fruit Into Baskets") -## 903. Valid Permutations for DI Sequence (Hard) +## [903. Valid Permutations for DI Sequence (Hard)](https://leetcode.com/problems/valid-permutations-for-di-sequence "DI ๅบๅˆ—็š„ๆœ‰ๆ•ˆๆŽ’ๅˆ—")

        We are given S, a length n string of characters from the set {'D', 'I'}. (These letters stand for "decreasing" and "increasing".)

        diff --git a/problems/valid-phone-numbers/README.md b/problems/valid-phone-numbers/README.md index 78a4251f7..b3416caec 100644 --- a/problems/valid-phone-numbers/README.md +++ b/problems/valid-phone-numbers/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/transpose-file "Transpose File") -## 193. Valid Phone Numbers (Easy) +## [193. Valid Phone Numbers (Easy)](https://leetcode.com/problems/valid-phone-numbers "ๆœ‰ๆ•ˆ็”ต่ฏๅท็ ")

        Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print all valid phone numbers.

        diff --git a/problems/valid-square/README.md b/problems/valid-square/README.md index ccefd3a0c..77fddbde7 100644 --- a/problems/valid-square/README.md +++ b/problems/valid-square/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-harmonious-subsequence "Longest Harmonious Subsequence") -## 593. Valid Square (Medium) +## [593. Valid Square (Medium)](https://leetcode.com/problems/valid-square "ๆœ‰ๆ•ˆ็š„ๆญฃๆ–นๅฝข")

        Given the coordinates of four points in 2D space, return whether the four points could construct a square.

        diff --git a/problems/valid-sudoku/README.md b/problems/valid-sudoku/README.md index b8575d50c..b06125aca 100644 --- a/problems/valid-sudoku/README.md +++ b/problems/valid-sudoku/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/sudoku-solver "Sudoku Solver") -## 36. Valid Sudoku (Medium) +## [36. Valid Sudoku (Medium)](https://leetcode.com/problems/valid-sudoku "ๆœ‰ๆ•ˆ็š„ๆ•ฐ็‹ฌ")

        Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:

        diff --git a/problems/valid-tic-tac-toe-state/README.md b/problems/valid-tic-tac-toe-state/README.md index b787aa417..25541e46b 100644 --- a/problems/valid-tic-tac-toe-state/README.md +++ b/problems/valid-tic-tac-toe-state/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/number-of-subarrays-with-bounded-maximum "Number of Subarrays with Bounded Maximum") -## 794. Valid Tic-Tac-Toe State (Medium) +## [794. Valid Tic-Tac-Toe State (Medium)](https://leetcode.com/problems/valid-tic-tac-toe-state "ๆœ‰ๆ•ˆ็š„ไบ•ๅญ—ๆธธๆˆ")

        A Tic-Tac-Toe board is given as a string array board. Return True if and only if it is possible to reach this board position during the course of a valid tic-tac-toe game.

        diff --git a/problems/valid-triangle-number/README.md b/problems/valid-triangle-number/README.md index c484a09fb..3f83cd969 100644 --- a/problems/valid-triangle-number/README.md +++ b/problems/valid-triangle-number/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/shortest-distance-in-a-plane "Shortest Distance in a Plane") -## 611. Valid Triangle Number (Medium) +## [611. Valid Triangle Number (Medium)](https://leetcode.com/problems/valid-triangle-number "ๆœ‰ๆ•ˆไธ‰่ง’ๅฝข็š„ไธชๆ•ฐ") Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we take them as side lengths of a triangle. diff --git a/problems/valid-word-abbreviation/README.md b/problems/valid-word-abbreviation/README.md index 9fe57c775..af7be4a39 100644 --- a/problems/valid-word-abbreviation/README.md +++ b/problems/valid-word-abbreviation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-palindrome "Longest Palindrome") -## 408. Valid Word Abbreviation (Easy) +## [408. Valid Word Abbreviation (Easy)](https://leetcode.com/problems/valid-word-abbreviation "ๆœ‰ๆ•ˆๅ•่ฏ็ผฉๅ†™") diff --git a/problems/valid-word-square/README.md b/problems/valid-word-square/README.md index 9e1af6860..55cc0abc0 100644 --- a/problems/valid-word-square/README.md +++ b/problems/valid-word-square/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reconstruct-original-digits-from-english "Reconstruct Original Digits from English") -## 422. Valid Word Square (Easy) +## [422. Valid Word Square (Easy)](https://leetcode.com/problems/valid-word-square "ๆœ‰ๆ•ˆ็š„ๅ•่ฏๆ–นๅ—") diff --git a/problems/validate-binary-search-tree/README.md b/problems/validate-binary-search-tree/README.md index b892c0550..eb9852d93 100644 --- a/problems/validate-binary-search-tree/README.md +++ b/problems/validate-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/recover-binary-search-tree "Recover Binary Search Tree") -## 98. Validate Binary Search Tree (Medium) +## [98. Validate Binary Search Tree (Medium)](https://leetcode.com/problems/validate-binary-search-tree "้ชŒ่ฏไบŒๅ‰ๆœ็ดขๆ ‘")

        Given a binary tree, determine if it is a valid binary search tree (BST).

        diff --git a/problems/validate-ip-address/README.md b/problems/validate-ip-address/README.md index a94bb301c..5fa41af63 100644 --- a/problems/validate-ip-address/README.md +++ b/problems/validate-ip-address/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/convex-polygon "Convex Polygon") -## 468. Validate IP Address (Medium) +## [468. Validate IP Address (Medium)](https://leetcode.com/problems/validate-ip-address "้ชŒ่ฏIPๅœฐๅ€")

        Write a function to check whether an input string is a valid IPv4 address or IPv6 address or neither. diff --git a/problems/validate-stack-sequences/README.md b/problems/validate-stack-sequences/README.md index ca39b45e2..702601231 100644 --- a/problems/validate-stack-sequences/README.md +++ b/problems/validate-stack-sequences/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/most-stones-removed-with-same-row-or-column "Most Stones Removed with Same Row or Column") -## 946. Validate Stack Sequences (Medium) +## [946. Validate Stack Sequences (Medium)](https://leetcode.com/problems/validate-stack-sequences "้ชŒ่ฏๆ ˆๅบๅˆ—")

        Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop operations on an initially empty stack.

        diff --git a/problems/verify-preorder-sequence-in-binary-search-tree/README.md b/problems/verify-preorder-sequence-in-binary-search-tree/README.md index 9bf03f89e..23cba9ac1 100644 --- a/problems/verify-preorder-sequence-in-binary-search-tree/README.md +++ b/problems/verify-preorder-sequence-in-binary-search-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/paint-house "Paint House") -## 255. Verify Preorder Sequence in Binary Search Tree (Medium) +## [255. Verify Preorder Sequence in Binary Search Tree (Medium)](https://leetcode.com/problems/verify-preorder-sequence-in-binary-search-tree "้ชŒ่ฏๅ‰ๅบ้ๅކๅบๅˆ—ไบŒๅ‰ๆœ็ดขๆ ‘") diff --git a/problems/verify-preorder-serialization-of-a-binary-tree/README.md b/problems/verify-preorder-serialization-of-a-binary-tree/README.md index ec13c9ae5..673798d68 100644 --- a/problems/verify-preorder-serialization-of-a-binary-tree/README.md +++ b/problems/verify-preorder-serialization-of-a-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reconstruct-itinerary "Reconstruct Itinerary") -## 331. Verify Preorder Serialization of a Binary Tree (Medium) +## [331. Verify Preorder Serialization of a Binary Tree (Medium)](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree "้ชŒ่ฏไบŒๅ‰ๆ ‘็š„ๅ‰ๅบๅบๅˆ—ๅŒ–")

        One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as #.

        diff --git a/problems/verifying-an-alien-dictionary/README.md b/problems/verifying-an-alien-dictionary/README.md index 9174e3444..93b5e83f9 100644 --- a/problems/verifying-an-alien-dictionary/README.md +++ b/problems/verifying-an-alien-dictionary/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/array-of-doubled-pairs "Array of Doubled Pairs") -## 953. Verifying an Alien Dictionary (Easy) +## [953. Verifying an Alien Dictionary (Easy)](https://leetcode.com/problems/verifying-an-alien-dictionary "้ชŒ่ฏๅค–ๆ˜Ÿ่ฏญ่ฏๅ…ธ")

        In an alien language, surprisingly they also use english lowercase letters, but possibly in a different order. The order of the alphabet is some permutation of lowercase letters.

        diff --git a/problems/vertical-order-traversal-of-a-binary-tree/README.md b/problems/vertical-order-traversal-of-a-binary-tree/README.md index 0e1fd73b6..6cbcefeae 100644 --- a/problems/vertical-order-traversal-of-a-binary-tree/README.md +++ b/problems/vertical-order-traversal-of-a-binary-tree/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/smallest-string-starting-from-leaf "Smallest String Starting From Leaf") -## 987. Vertical Order Traversal of a Binary Tree (Medium) +## [987. Vertical Order Traversal of a Binary Tree (Medium)](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree "ไบŒๅ‰ๆ ‘็š„ๅž‚ๅบ้ๅކ")

        Given a binary tree, return the vertical order traversal of its nodes values.

        diff --git a/problems/video-stitching/README.md b/problems/video-stitching/README.md index 5d29f9cba..826732ee8 100644 --- a/problems/video-stitching/README.md +++ b/problems/video-stitching/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/divisor-game "Divisor Game") -## 1024. Video Stitching (Medium) +## [1024. Video Stitching (Medium)](https://leetcode.com/problems/video-stitching "่ง†้ข‘ๆ‹ผๆŽฅ")

        You are given a series of video clips from a sporting event that lasted T seconds.  These video clips can be overlapping with each other and have varied lengths.

        diff --git a/problems/vowel-spellchecker/README.md b/problems/vowel-spellchecker/README.md index c5be9ffaa..99f363713 100644 --- a/problems/vowel-spellchecker/README.md +++ b/problems/vowel-spellchecker/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/numbers-with-same-consecutive-differences "Numbers With Same Consecutive Differences") -## 966. Vowel Spellchecker (Medium) +## [966. Vowel Spellchecker (Medium)](https://leetcode.com/problems/vowel-spellchecker "ๅ…ƒ้Ÿณๆ‹ผๅ†™ๆฃ€ๆŸฅๅ™จ")

        Given a wordlist, we want to implement a spellchecker that converts a query word into a correct word.

        diff --git a/problems/walking-robot-simulation/README.md b/problems/walking-robot-simulation/README.md index 7d96938ff..ae61d58be 100644 --- a/problems/walking-robot-simulation/README.md +++ b/problems/walking-robot-simulation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/koko-eating-bananas "Koko Eating Bananas") -## 874. Walking Robot Simulation (Easy) +## [874. Walking Robot Simulation (Easy)](https://leetcode.com/problems/walking-robot-simulation "ๆจกๆ‹Ÿ่กŒ่ตฐๆœบๅ™จไบบ")

        A robot on an infinite grid starts at point (0, 0) and faces north.  The robot can receive one of three possible types of commands:

        diff --git a/problems/walls-and-gates/README.md b/problems/walls-and-gates/README.md index cd2e63c46..3706dfe93 100644 --- a/problems/walls-and-gates/README.md +++ b/problems/walls-and-gates/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-the-duplicate-number "Find the Duplicate Number") -## 286. Walls and Gates (Medium) +## [286. Walls and Gates (Medium)](https://leetcode.com/problems/walls-and-gates "ๅข™ไธŽ้—จ") diff --git a/problems/water-and-jug-problem/README.md b/problems/water-and-jug-problem/README.md index 811716d07..d8401d059 100644 --- a/problems/water-and-jug-problem/README.md +++ b/problems/water-and-jug-problem/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/find-leaves-of-binary-tree "Find Leaves of Binary Tree") -## 365. Water and Jug Problem (Medium) +## [365. Water and Jug Problem (Medium)](https://leetcode.com/problems/water-and-jug-problem "ๆฐดๅฃถ้—ฎ้ข˜")

        You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it is possible to measure exactly z litres using these two jugs.

        diff --git a/problems/wiggle-sort-ii/README.md b/problems/wiggle-sort-ii/README.md index 29a782c03..31c8a3915 100644 --- a/problems/wiggle-sort-ii/README.md +++ b/problems/wiggle-sort-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/maximum-size-subarray-sum-equals-k "Maximum Size Subarray Sum Equals k") -## 324. Wiggle Sort II (Medium) +## [324. Wiggle Sort II (Medium)](https://leetcode.com/problems/wiggle-sort-ii "ๆ‘†ๅŠจๆŽ’ๅบ II")

        Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]....

        diff --git a/problems/wiggle-sort/README.md b/problems/wiggle-sort/README.md index 6975652e7..153e8ccbd 100644 --- a/problems/wiggle-sort/README.md +++ b/problems/wiggle-sort/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/zigzag-iterator "Zigzag Iterator") -## 280. Wiggle Sort (Medium) +## [280. Wiggle Sort (Medium)](https://leetcode.com/problems/wiggle-sort "ๆ‘†ๅŠจๆŽ’ๅบ") diff --git a/problems/wiggle-subsequence/README.md b/problems/wiggle-subsequence/README.md index e974df723..4678c4ee4 100644 --- a/problems/wiggle-subsequence/README.md +++ b/problems/wiggle-subsequence/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/combination-sum-iv "Combination Sum IV") -## 376. Wiggle Subsequence (Medium) +## [376. Wiggle Subsequence (Medium)](https://leetcode.com/problems/wiggle-subsequence "ๆ‘†ๅŠจๅบๅˆ—")

        A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (if one exists) may be either positive or negative. A sequence with fewer than two elements is trivially a wiggle sequence.

        diff --git a/problems/wildcard-matching/README.md b/problems/wildcard-matching/README.md index cb7f7d97d..850c1aaed 100644 --- a/problems/wildcard-matching/README.md +++ b/problems/wildcard-matching/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/jump-game-ii "Jump Game II") -## 44. Wildcard Matching (Hard) +## [44. Wildcard Matching (Hard)](https://leetcode.com/problems/wildcard-matching "้€š้…็ฌฆๅŒน้…")

        Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'.

        diff --git a/problems/winning-candidate/README.md b/problems/winning-candidate/README.md index 532d8d7c7..7d545ad06 100644 --- a/problems/winning-candidate/README.md +++ b/problems/winning-candidate/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/distribute-candies "Distribute Candies") -## 574. Winning Candidate (Medium) +## [574. Winning Candidate (Medium)](https://leetcode.com/problems/winning-candidate "ๅฝ“้€‰่€…")

        Table: Candidate

        diff --git a/problems/word-abbreviation/README.md b/problems/word-abbreviation/README.md index 79b3b7be7..84b774991 100644 --- a/problems/word-abbreviation/README.md +++ b/problems/word-abbreviation/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/random-pick-with-weight "Random Pick with Weight") -## 527. Word Abbreviation (Hard) +## [527. Word Abbreviation (Hard)](https://leetcode.com/problems/word-abbreviation "ๅ•่ฏ็ผฉๅ†™") diff --git a/problems/word-break-ii/README.md b/problems/word-break-ii/README.md index b7a802a04..5f7c9ba21 100644 --- a/problems/word-break-ii/README.md +++ b/problems/word-break-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/linked-list-cycle "Linked List Cycle") -## 140. Word Break II (Hard) +## [140. Word Break II (Hard)](https://leetcode.com/problems/word-break-ii "ๅ•่ฏๆ‹†ๅˆ† II")

        Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences.

        diff --git a/problems/word-break/README.md b/problems/word-break/README.md index ecdb4b6d9..350da232d 100644 --- a/problems/word-break/README.md +++ b/problems/word-break/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-break-ii "Word Break II") -## 139. Word Break (Medium) +## [139. Word Break (Medium)](https://leetcode.com/problems/word-break "ๅ•่ฏๆ‹†ๅˆ†")

        Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words.

        diff --git a/problems/word-frequency/README.md b/problems/word-frequency/README.md index c8ea8cb93..01de1d3bd 100644 --- a/problems/word-frequency/README.md +++ b/problems/word-frequency/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/valid-phone-numbers "Valid Phone Numbers") -## 192. Word Frequency (Medium) +## [192. Word Frequency (Medium)](https://leetcode.com/problems/word-frequency "็ปŸ่ฎก่ฏ้ข‘")

        Write a bash script to calculate the frequency of each word in a text file words.txt.

        diff --git a/problems/word-ladder-ii/README.md b/problems/word-ladder-ii/README.md index a2faf4267..e1f44be7e 100644 --- a/problems/word-ladder-ii/README.md +++ b/problems/word-ladder-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-ladder "Word Ladder") -## 126. Word Ladder II (Hard) +## [126. Word Ladder II (Hard)](https://leetcode.com/problems/word-ladder-ii "ๅ•่ฏๆŽฅ้พ™ II")

        Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such that:

        diff --git a/problems/word-ladder/README.md b/problems/word-ladder/README.md index 20478d752..84a7f94f2 100644 --- a/problems/word-ladder/README.md +++ b/problems/word-ladder/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/longest-consecutive-sequence "Longest Consecutive Sequence") -## 127. Word Ladder (Medium) +## [127. Word Ladder (Medium)](https://leetcode.com/problems/word-ladder "ๅ•่ฏๆŽฅ้พ™")

        Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that:

        diff --git a/problems/word-pattern-ii/README.md b/problems/word-pattern-ii/README.md index 93c913660..ae9e138e5 100644 --- a/problems/word-pattern-ii/README.md +++ b/problems/word-pattern-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/nim-game "Nim Game") -## 291. Word Pattern II (Hard) +## [291. Word Pattern II (Hard)](https://leetcode.com/problems/word-pattern-ii "ๅ•่ฏ่ง„ๅพ‹ II") diff --git a/problems/word-pattern/README.md b/problems/word-pattern/README.md index 092451429..9fff9caf9 100644 --- a/problems/word-pattern/README.md +++ b/problems/word-pattern/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/word-pattern-ii "Word Pattern II") -## 290. Word Pattern (Easy) +## [290. Word Pattern (Easy)](https://leetcode.com/problems/word-pattern "ๅ•่ฏ่ง„ๅพ‹")

        Given a pattern and a string str, find if str follows the same pattern.

        diff --git a/problems/word-search-ii/README.md b/problems/word-search-ii/README.md index 6b1ab148f..73dabb714 100644 --- a/problems/word-search-ii/README.md +++ b/problems/word-search-ii/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/house-robber-ii "House Robber II") -## 212. Word Search II (Hard) +## [212. Word Search II (Hard)](https://leetcode.com/problems/word-search-ii "ๅ•่ฏๆœ็ดข II")

        Given a 2D board and a list of words from the dictionary, find all words in the board.

        diff --git a/problems/word-search/README.md b/problems/word-search/README.md index ea3ff651a..5f5b4bb13 100644 --- a/problems/word-search/README.md +++ b/problems/word-search/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/remove-duplicates-from-sorted-array-ii "Remove Duplicates from Sorted Array II") -## 79. Word Search (Medium) +## [79. Word Search (Medium)](https://leetcode.com/problems/word-search "ๅ•่ฏๆœ็ดข")

        Given a 2D board and a word, find if the word exists in the grid.

        diff --git a/problems/word-squares/README.md b/problems/word-squares/README.md index 060a023b7..26d53e4fe 100644 --- a/problems/word-squares/README.md +++ b/problems/word-squares/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/convert-binary-search-tree-to-sorted-doubly-linked-list "Convert Binary Search Tree to Sorted Doubly Linked List") -## 425. Word Squares (Hard) +## [425. Word Squares (Hard)](https://leetcode.com/problems/word-squares "ๅ•่ฏๆ–นๅ—") diff --git a/problems/word-subsets/README.md b/problems/word-subsets/README.md index 2e04e6356..e3b35bbf2 100644 --- a/problems/word-subsets/README.md +++ b/problems/word-subsets/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-only-letters "Reverse Only Letters") -## 916. Word Subsets (Medium) +## [916. Word Subsets (Medium)](https://leetcode.com/problems/word-subsets "ๅ•่ฏๅญ้›†")

        We are given two arrays A and B of words.  Each word is a string of lowercase letters.

        diff --git a/problems/x-of-a-kind-in-a-deck-of-cards/README.md b/problems/x-of-a-kind-in-a-deck-of-cards/README.md index ba5b818ae..1a4c97be7 100644 --- a/problems/x-of-a-kind-in-a-deck-of-cards/README.md +++ b/problems/x-of-a-kind-in-a-deck-of-cards/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/partition-array-into-disjoint-intervals "Partition Array into Disjoint Intervals") -## 914. X of a Kind in a Deck of Cards (Easy) +## [914. X of a Kind in a Deck of Cards (Easy)](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards "ๅก็‰Œๅˆ†็ป„")

        In a deck of cards, each card has an integer written on it.

        diff --git a/problems/zigzag-conversion/README.md b/problems/zigzag-conversion/README.md index 0b45ae0f0..be8e65df8 100644 --- a/problems/zigzag-conversion/README.md +++ b/problems/zigzag-conversion/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/reverse-integer "Reverse Integer") -## 6. ZigZag Conversion (Medium) +## [6. ZigZag Conversion (Medium)](https://leetcode.com/problems/zigzag-conversion "Z ๅญ—ๅฝขๅ˜ๆข")

        The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)

        diff --git a/problems/zigzag-iterator/README.md b/problems/zigzag-iterator/README.md index 8dd2a6492..9cc57b30c 100644 --- a/problems/zigzag-iterator/README.md +++ b/problems/zigzag-iterator/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/expression-add-operators "Expression Add Operators") -## 281. Zigzag Iterator (Medium) +## [281. Zigzag Iterator (Medium)](https://leetcode.com/problems/zigzag-iterator "้”ฏ้ฝฟ่ฟญไปฃๅ™จ") diff --git a/problems/zuma-game/README.md b/problems/zuma-game/README.md index d0e640fec..37123e60d 100644 --- a/problems/zuma-game/README.md +++ b/problems/zuma-game/README.md @@ -9,7 +9,7 @@ ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ [Next >](https://github.com/openset/leetcode/tree/master/problems/robot-room-cleaner "Robot Room Cleaner") -## 488. Zuma Game (Hard) +## [488. Zuma Game (Hard)](https://leetcode.com/problems/zuma-game "็ฅ–็Ž›ๆธธๆˆ")

        Think about Zuma Game. You have a row of balls on the table, colored red(R), yellow(Y), blue(B), green(G), and white(W). You also have several balls in your hand.

        diff --git a/readme/301-600.md b/readme/301-600.md index 72daf771e..15ab4567d 100644 --- a/readme/301-600.md +++ b/readme/301-600.md @@ -265,7 +265,7 @@ LeetCode Problems' Solutions | 509 | [Fibonacci Number](https://leetcode.com/problems/fibonacci-number "ๆ–ๆณข้‚ฃๅฅ‘ๆ•ฐ") | [Go](https://github.com/openset/leetcode/tree/master/problems/fibonacci-number) | Easy | | 510 | [Inorder Successor in BST II](https://leetcode.com/problems/inorder-successor-in-bst-ii "ไบŒๅ‰ๆœ็ดขๆ ‘ไธญ็š„ไธญๅบๅŽ็ปง II") ๐Ÿ”’ | [Go](https://github.com/openset/leetcode/tree/master/problems/inorder-successor-in-bst-ii) | Medium | | 511 | [Game Play Analysis I](https://leetcode.com/problems/game-play-analysis-i "ๆธธๆˆ็Žฉๆณ•ๅˆ†ๆž I") ๐Ÿ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/game-play-analysis-i) | Easy | -| 512 | [Game Play Analysis II](https://leetcode.com/problems/game-play-analysis-ii) ๐Ÿ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/game-play-analysis-ii) | Easy | +| 512 | [Game Play Analysis II](https://leetcode.com/problems/game-play-analysis-ii "ๆธธๆˆ็Žฉๆณ•ๅˆ†ๆž II") ๐Ÿ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/game-play-analysis-ii) | Easy | | 513 | [Find Bottom Left Tree Value](https://leetcode.com/problems/find-bottom-left-tree-value "ๆ‰พๆ ‘ๅทฆไธ‹่ง’็š„ๅ€ผ") | [Go](https://github.com/openset/leetcode/tree/master/problems/find-bottom-left-tree-value) | Medium | | 514 | [Freedom Trail](https://leetcode.com/problems/freedom-trail "่‡ช็”ฑไน‹่ทฏ") | [Go](https://github.com/openset/leetcode/tree/master/problems/freedom-trail) | Hard | | 515 | [Find Largest Value in Each Tree Row](https://leetcode.com/problems/find-largest-value-in-each-tree-row "ๅœจๆฏไธชๆ ‘่กŒไธญๆ‰พๆœ€ๅคงๅ€ผ") | [Go](https://github.com/openset/leetcode/tree/master/problems/find-largest-value-in-each-tree-row) | Medium |