Skip to content

Commit f663cec

Browse files
committed
Update ctl templates sorting
1 parent e216ed4 commit f663cec

File tree

15 files changed

+177
-133
lines changed

15 files changed

+177
-133
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@
753753
|0612|Shortest Distance in a Plane||62.0%|Medium||
754754
|0613|Shortest Distance in a Line||80.2%|Easy||
755755
|0614|Second Degree Follower||33.3%|Medium||
756-
|0615|Average Salary: Departments VS Company||54.0%|Hard||
756+
|0615|Average Salary: Departments VS Company||53.9%|Hard||
757757
|0616|Add Bold Tag in String||45.3%|Medium||
758758
|0617|Merge Two Binary Trees||76.0%|Easy||
759759
|0618|Students Report By Geography||61.4%|Hard||
@@ -930,7 +930,7 @@
930930
|0789|Escape The Ghosts||58.9%|Medium||
931931
|0790|Domino and Tromino Tiling||40.8%|Medium||
932932
|0791|Custom Sort String||66.0%|Medium||
933-
|0792|Number of Matching Subsequences|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/0792.Number-of-Matching-Subsequences)|49.0%|Medium||
933+
|0792|Number of Matching Subsequences|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/0792.Number-of-Matching-Subsequences)|48.9%|Medium||
934934
|0793|Preimage Size of Factorial Zeroes Function|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/0793.Preimage-Size-of-Factorial-Zeroes-Function)|40.6%|Hard||
935935
|0794|Valid Tic-Tac-Toe State||34.4%|Medium||
936936
|0795|Number of Subarrays with Bounded Maximum|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/0795.Number-of-Subarrays-with-Bounded-Maximum)|51.7%|Medium||
@@ -1155,7 +1155,7 @@
11551155
|1014|Best Sightseeing Pair||53.1%|Medium||
11561156
|1015|Smallest Integer Divisible by K||42.0%|Medium||
11571157
|1016|Binary String With Substrings Representing 1 To N||58.5%|Medium||
1158-
|1017|Convert to Base -2|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1017.Convert-to-Base-2)|59.4%|Medium||
1158+
|1017|Convert to Base -2|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1017.Convert-to-Base-2)|59.5%|Medium||
11591159
|1018|Binary Prefix Divisible By 5|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1018.Binary-Prefix-Divisible-By-5)|47.6%|Easy||
11601160
|1019|Next Greater Node In Linked List|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1019.Next-Greater-Node-In-Linked-List)|58.4%|Medium||
11611161
|1020|Number of Enclaves|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1020.Number-of-Enclaves)|59.8%|Medium||
@@ -1187,7 +1187,7 @@
11871187
|1046|Last Stone Weight||62.5%|Easy||
11881188
|1047|Remove All Adjacent Duplicates In String|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1047.Remove-All-Adjacent-Duplicates-In-String)|71.7%|Easy||
11891189
|1048|Longest String Chain|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1048.Longest-String-Chain)|56.3%|Medium||
1190-
|1049|Last Stone Weight II|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1049.Last-Stone-Weight-II)|47.3%|Medium||
1190+
|1049|Last Stone Weight II|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1049.Last-Stone-Weight-II)|47.4%|Medium||
11911191
|1050|Actors and Directors Who Cooperated At Least Three Times||72.3%|Easy||
11921192
|1051|Height Checker|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1051.Height-Checker)|73.0%|Easy||
11931193
|1052|Grumpy Bookstore Owner|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1052.Grumpy-Bookstore-Owner)|56.0%|Medium||
@@ -1249,7 +1249,7 @@
12491249
|1108|Defanging an IP Address|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1108.Defanging-an-IP-Address)|88.5%|Easy||
12501250
|1109|Corporate Flight Bookings||54.5%|Medium||
12511251
|1110|Delete Nodes And Return Forest|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1110.Delete-Nodes-And-Return-Forest)|68.2%|Medium||
1252-
|1111|Maximum Nesting Depth of Two Valid Parentheses Strings|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1111.Maximum-Nesting-Depth-of-Two-Valid-Parentheses-Strings)|72.8%|Medium||
1252+
|1111|Maximum Nesting Depth of Two Valid Parentheses Strings|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1111.Maximum-Nesting-Depth-of-Two-Valid-Parentheses-Strings)|72.7%|Medium||
12531253
|1112|Highest Grade For Each Student||72.7%|Medium||
12541254
|1113|Reported Posts||66.3%|Easy||
12551255
|1114|Print in Order||67.5%|Easy||
@@ -1653,7 +1653,7 @@
16531653
|1513|Number of Substrings With Only 1s||42.5%|Medium||
16541654
|1514|Path with Maximum Probability||42.1%|Medium||
16551655
|1515|Best Position for a Service Centre||39.4%|Hard||
1656-
|1516|Move Sub-Tree of N-Ary Tree||64.4%|Hard||
1656+
|1516|Move Sub-Tree of N-Ary Tree||64.5%|Hard||
16571657
|1517|Find Users With Valid E-Mails||71.2%|Easy||
16581658
|1518|Water Bottles||60.3%|Easy||
16591659
|1519|Number of Nodes in the Sub-Tree With the Same Label||37.9%|Medium||
@@ -1721,7 +1721,7 @@
17211721
|1581|Customer Who Visited but Did Not Make Any Transactions||89.5%|Easy||
17221722
|1582|Special Positions in a Binary Matrix||64.2%|Easy||
17231723
|1583|Count Unhappy Friends||55.2%|Medium||
1724-
|1584|Min Cost to Connect All Points||55.4%|Medium||
1724+
|1584|Min Cost to Connect All Points||55.3%|Medium||
17251725
|1585|Check If String Is Transformable With Substring Sort Operations||48.5%|Hard||
17261726
|1586|Binary Search Tree Iterator II||66.7%|Medium||
17271727
|1587|Bank Account Summary II||89.9%|Easy||
@@ -1813,7 +1813,7 @@
18131813
|1673|Find the Most Competitive Subsequence|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1673.Find-the-Most-Competitive-Subsequence)|45.8%|Medium||
18141814
|1674|Minimum Moves to Make Array Complementary|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1674.Minimum-Moves-to-Make-Array-Complementary)|36.4%|Medium||
18151815
|1675|Minimize Deviation in Array|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1675.Minimize-Deviation-in-Array)|48.1%|Hard||
1816-
|1676|Lowest Common Ancestor of a Binary Tree IV||78.9%|Medium||
1816+
|1676|Lowest Common Ancestor of a Binary Tree IV||79.0%|Medium||
18171817
|1677|Product's Worth Over Invoices||52.2%|Easy||
18181818
|1678|Goal Parser Interpretation|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1678.Goal-Parser-Interpretation)|84.9%|Easy||
18191819
|1679|Max Number of K-Sum Pairs|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1679.Max-Number-of-K-Sum-Pairs)|53.6%|Medium||
@@ -1840,7 +1840,7 @@
18401840
|1700|Number of Students Unable to Eat Lunch|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1700.Number-of-Students-Unable-to-Eat-Lunch)|67.6%|Easy||
18411841
|1701|Average Waiting Time||60.9%|Medium||
18421842
|1702|Maximum Binary String After Change||43.8%|Medium||
1843-
|1703|Minimum Adjacent Swaps for K Consecutive Ones||37.3%|Hard||
1843+
|1703|Minimum Adjacent Swaps for K Consecutive Ones||37.4%|Hard||
18441844
|1704|Determine if String Halves Are Alike|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1704.Determine-if-String-Halves-Are-Alike)|78.6%|Easy||
18451845
|1705|Maximum Number of Eaten Apples||34.5%|Medium||
18461846
|1706|Where Will the Ball Fall||62.8%|Medium||
@@ -1884,7 +1884,7 @@
18841884
|1744|Can You Eat Your Favorite Candy on Your Favorite Day?|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1744.Can-You-Eat-Your-Favorite-Candy-on-Your-Favorite-Day)|31.3%|Medium||
18851885
|1745|Palindrome Partitioning IV||49.7%|Hard||
18861886
|1746|Maximum Subarray Sum After One Operation||61.8%|Medium||
1887-
|1747|Leetflex Banned Accounts||68.7%|Medium||
1887+
|1747|Leetflex Banned Accounts||68.8%|Medium||
18881888
|1748|Sum of Unique Elements|[Go](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/1748.Sum-of-Unique-Elements)|74.6%|Easy||
18891889
|1749|Maximum Absolute Sum of Any Subarray||53.6%|Medium||
18901890
|1750|Minimum Length of String After Deleting Similar Ends||42.4%|Medium||
@@ -1925,7 +1925,7 @@
19251925
|1785|Minimum Elements to Add to Form a Given Sum||40.0%|Medium||
19261926
|1786|Number of Restricted Paths From First to Last Node||36.5%|Medium||
19271927
|1787|Make the XOR of All Segments Equal to Zero||37.3%|Hard||
1928-
|1788|Maximize the Beauty of the Garden||67.3%|Hard||
1928+
|1788|Maximize the Beauty of the Garden||67.1%|Hard||
19291929
|1789|Primary Department for Each Employee||79.5%|Easy||
19301930
|1790|Check if One String Swap Can Make Strings Equal||44.4%|Easy||
19311931
|1791|Find Center of Star Graph||84.3%|Easy||
@@ -1965,7 +1965,7 @@
19651965
|1825|Finding MK Average||28.2%|Hard||
19661966
|1826|Faulty Sensor||54.4%|Easy||
19671967
|1827|Minimum Operations to Make the Array Increasing||77.7%|Easy||
1968-
|1828|Queries on Number of Points Inside a Circle||86.6%|Medium||
1968+
|1828|Queries on Number of Points Inside a Circle||86.7%|Medium||
19691969
|1829|Maximum XOR for Each Query||73.7%|Medium||
19701970
|1830|Minimum Number of Operations to Make String Sorted||46.6%|Hard||
19711971
|1831|Maximum Transaction Each Day||84.8%|Medium||
@@ -2019,7 +2019,7 @@
20192019
|1879|Minimum XOR Sum of Two Arrays||35.8%|Hard||
20202020
|1880|Check if Word Equals Summation of Two Words||71.8%|Easy||
20212021
|1881|Maximum Value after Insertion||33.7%|Medium||
2022-
|1882|Process Tasks Using Servers||30.6%|Medium||
2022+
|1882|Process Tasks Using Servers||30.5%|Medium||
20232023
|1883|Minimum Skips to Arrive at Meeting On Time||38.1%|Hard||
20242024
|1884|Egg Drop With 2 Eggs and N Floors||69.8%|Medium||
20252025
|1885|Count Pairs in Two Arrays||54.8%|Medium||
@@ -2043,7 +2043,7 @@
20432043
|1903|Largest Odd Number in String||58.1%|Easy||
20442044
|1904|The Number of Full Rounds You Have Played||52.9%|Medium||
20452045
|1905|Count Sub Islands||59.8%|Medium||
2046-
|1906|Minimum Absolute Difference Queries||41.5%|Medium||
2046+
|1906|Minimum Absolute Difference Queries||41.4%|Medium||
20472047
|1907|Count Salary Categories||62.4%|Medium||
20482048
|1908|Game of Nim||64.1%|Medium||
20492049
|------------|-------------------------------------------------------|-------| ----------------| ---------------|-------------|

ctl/label.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var (
1818
chapterOneFileOrder = []string{"_index", "Data_Structure", "Algorithm", "Time_Complexity"}
1919
chapterOneMenuOrder = []string{"_index", "#关于作者", "Data_Structure", "Algorithm", "Time_Complexity"}
2020
chapterTwoFileOrder = []string{"_index", "Array", "String", "Two_Pointers", "Linked_List", "Stack", "Tree", "Dynamic_Programming", "Backtracking", "Depth_First_Search", "Breadth_First_Search",
21-
"Binary_Search", "Math", "Hash_Table", "Sort", "Bit_Manipulation", "Union_Find", "Sliding_Window", "Segment_Tree", "Binary_Indexed_Tree"}
21+
"Binary_Search", "Math", "Hash_Table", "Sorting", "Bit_Manipulation", "Union_Find", "Sliding_Window", "Segment_Tree", "Binary_Indexed_Tree"}
2222
chapterThreeFileOrder = []string{"_index", "Segment_Tree", "UnionFind", "LRUCache", "LFUCache"}
2323
preNextHeader = "----------------------------------------------\n<div style=\"display: flex;justify-content: space-between;align-items: center;\">\n"
2424
preNextFotter = "</div>"
@@ -55,7 +55,7 @@ var (
5555
"Binary_Search": "2.11 Binary Search",
5656
"Math": "2.12 Math",
5757
"Hash_Table": "2.13 Hash Table",
58-
"Sort": "2.14 ✅ Sort",
58+
"Sorting": "2.14 ✅ Sorting",
5959
"Bit_Manipulation": "2.15 ✅ Bit Manipulation",
6060
"Union_Find": "2.16 ✅ Union Find",
6161
"Sliding_Window": "2.17 ✅ Sliding Window",
File renamed without changes.

ctl/render.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import (
1818

1919
var (
2020
chapterTwoList = []string{"Array", "String", "Two Pointers", "Linked List", "Stack", "Tree", "Dynamic Programming", "Backtracking", "Depth First Search", "Breadth First Search",
21-
"Binary Search", "Math", "Hash Table", "Sort", "Bit Manipulation", "Union Find", "Sliding Window", "Segment Tree", "Binary Indexed Tree"}
21+
"Binary Search", "Math", "Hash Table", "Sorting", "Bit Manipulation", "Union Find", "Sliding Window", "Segment Tree", "Binary Indexed Tree"}
2222
chapterTwoFileName = []string{"Array", "String", "Two_Pointers", "Linked_List", "Stack", "Tree", "Dynamic_Programming", "Backtracking", "Depth_First_Search", "Breadth_First_Search",
23-
"Binary_Search", "Math", "Hash_Table", "Sort", "Bit_Manipulation", "Union_Find", "Sliding_Window", "Segment_Tree", "Binary_Indexed_Tree"}
23+
"Binary_Search", "Math", "Hash_Table", "Sorting", "Bit_Manipulation", "Union_Find", "Sliding_Window", "Segment_Tree", "Binary_Indexed_Tree"}
2424
chapterTwoSlug = []string{"array", "string", "two-pointers", "linked-list", "stack", "tree", "dynamic-programming", "backtracking", "depth-first-search", "breadth-first-search",
25-
"binary-search", "math", "hash-table", "sort", "bit-manipulation", "union-find", "sliding-window", "segment-tree", "binary-indexed-tree"}
25+
"binary-search", "math", "hash-table", "sorting", "bit-manipulation", "union-find", "sliding-window", "segment-tree", "binary-indexed-tree"}
2626
)
2727

2828
func newBuildCommand() *cobra.Command {

ctl/template/Sort.md renamed to ctl/template/Sorting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: 2.14 ✅ Sort
2+
title: 2.14 ✅ Sorting
33
type: docs
44
weight: 14
55
---
66

7-
# Sort
7+
# Sorting
88

99
![](https://img.halfrost.com/Leetcode/Sort.png)
1010

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
11
package leetcode
22

3-
func getSquareOfDigits(n int) int {
4-
squareOfDigits := 0
5-
temporary := n
6-
7-
for temporary != 0 {
8-
remainder := temporary % 10
9-
squareOfDigits += remainder * remainder
10-
temporary /= 10
11-
}
12-
13-
return squareOfDigits
14-
}
15-
163
func isHappy(n int) bool {
174
record := map[int]int{}
18-
195
for n != 1 {
206
record[n] = n
21-
227
n = getSquareOfDigits(n)
23-
248
for _, previous := range record {
259
if n == previous {
2610
return false
2711
}
2812
}
2913
}
30-
3114
return true
3215
}
16+
17+
func getSquareOfDigits(n int) int {
18+
squareOfDigits := 0
19+
temporary := n
20+
for temporary != 0 {
21+
remainder := temporary % 10
22+
squareOfDigits += remainder * remainder
23+
temporary /= 10
24+
}
25+
return squareOfDigits
26+
}

website/content/ChapterFour/0200~0299/0202.Happy-Number.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,28 @@ Explanation:
3737
package leetcode
3838

3939
func isHappy(n int) bool {
40-
if n == 0 {
41-
return false
42-
}
43-
res := 0
44-
num := n
4540
record := map[int]int{}
46-
for {
47-
for num != 0 {
48-
res += (num % 10) * (num % 10)
49-
num = num / 10
50-
}
51-
if _, ok := record[res]; !ok {
52-
if res == 1 {
53-
return true
41+
for n != 1 {
42+
record[n] = n
43+
n = getSquareOfDigits(n)
44+
for _, previous := range record {
45+
if n == previous {
46+
return false
5447
}
55-
record[res] = res
56-
num = res
57-
res = 0
58-
continue
59-
} else {
60-
return false
6148
}
6249
}
50+
return true
51+
}
52+
53+
func getSquareOfDigits(n int) int {
54+
squareOfDigits := 0
55+
temporary := n
56+
for temporary != 0 {
57+
remainder := temporary % 10
58+
squareOfDigits += remainder * remainder
59+
temporary /= 10
60+
}
61+
return squareOfDigits
6362
}
6463

6564
```

website/content/ChapterTwo/Array.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ weight: 1
276276
|1030|Matrix Cells in Distance Order|[Go]({{< relref "/ChapterFour/1000~1099/1030.Matrix-Cells-in-Distance-Order.md" >}})|Easy||||68.5%|
277277
|1040|Moving Stones Until Consecutive II|[Go]({{< relref "/ChapterFour/1000~1099/1040.Moving-Stones-Until-Consecutive-II.md" >}})|Medium||||54.8%|
278278
|1048|Longest String Chain|[Go]({{< relref "/ChapterFour/1000~1099/1048.Longest-String-Chain.md" >}})|Medium||||56.3%|
279-
|1049|Last Stone Weight II|[Go]({{< relref "/ChapterFour/1000~1099/1049.Last-Stone-Weight-II.md" >}})|Medium||||47.3%|
279+
|1049|Last Stone Weight II|[Go]({{< relref "/ChapterFour/1000~1099/1049.Last-Stone-Weight-II.md" >}})|Medium||||47.4%|
280280
|1051|Height Checker|[Go]({{< relref "/ChapterFour/1000~1099/1051.Height-Checker.md" >}})|Easy||||73.0%|
281281
|1052|Grumpy Bookstore Owner|[Go]({{< relref "/ChapterFour/1000~1099/1052.Grumpy-Bookstore-Owner.md" >}})|Medium||||56.0%|
282282
|1054|Distant Barcodes|[Go]({{< relref "/ChapterFour/1000~1099/1054.Distant-Barcodes.md" >}})|Medium||||44.6%|
@@ -296,7 +296,7 @@ weight: 1
296296
|1207|Unique Number of Occurrences|[Go]({{< relref "/ChapterFour/1200~1299/1207.Unique-Number-of-Occurrences.md" >}})|Easy||||72.2%|
297297
|1217|Minimum Cost to Move Chips to The Same Position|[Go]({{< relref "/ChapterFour/1200~1299/1217.Minimum-Cost-to-Move-Chips-to-The-Same-Position.md" >}})|Easy||||70.7%|
298298
|1232|Check If It Is a Straight Line|[Go]({{< relref "/ChapterFour/1200~1299/1232.Check-If-It-Is-a-Straight-Line.md" >}})|Easy||||42.7%|
299-
|1235|Maximum Profit in Job Scheduling|[Go]({{< relref "/ChapterFour/1200~1299/1235.Maximum-Profit-in-Job-Scheduling.md" >}})|Hard||||48.2%|
299+
|1235|Maximum Profit in Job Scheduling|[Go]({{< relref "/ChapterFour/1200~1299/1235.Maximum-Profit-in-Job-Scheduling.md" >}})|Hard||||48.3%|
300300
|1239|Maximum Length of a Concatenated String with Unique Characters|[Go]({{< relref "/ChapterFour/1200~1299/1239.Maximum-Length-of-a-Concatenated-String-with-Unique-Characters.md" >}})|Medium||||50.5%|
301301
|1252|Cells with Odd Values in a Matrix|[Go]({{< relref "/ChapterFour/1200~1299/1252.Cells-with-Odd-Values-in-a-Matrix.md" >}})|Easy||||78.5%|
302302
|1254|Number of Closed Islands|[Go]({{< relref "/ChapterFour/1200~1299/1254.Number-of-Closed-Islands.md" >}})|Medium||||62.2%|

website/content/ChapterTwo/Binary_Search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func peakIndexInMountainArray(A []int) int {
193193
|1170|Compare Strings by Frequency of the Smallest Character|[Go]({{< relref "/ChapterFour/1100~1199/1170.Compare-Strings-by-Frequency-of-the-Smallest-Character.md" >}})|Medium||||60.5%|
194194
|1201|Ugly Number III|[Go]({{< relref "/ChapterFour/1200~1299/1201.Ugly-Number-III.md" >}})|Medium||||26.7%|
195195
|1208|Get Equal Substrings Within Budget|[Go]({{< relref "/ChapterFour/1200~1299/1208.Get-Equal-Substrings-Within-Budget.md" >}})|Medium||||44.8%|
196-
|1235|Maximum Profit in Job Scheduling|[Go]({{< relref "/ChapterFour/1200~1299/1235.Maximum-Profit-in-Job-Scheduling.md" >}})|Hard||||48.2%|
196+
|1235|Maximum Profit in Job Scheduling|[Go]({{< relref "/ChapterFour/1200~1299/1235.Maximum-Profit-in-Job-Scheduling.md" >}})|Hard||||48.3%|
197197
|1283|Find the Smallest Divisor Given a Threshold|[Go]({{< relref "/ChapterFour/1200~1299/1283.Find-the-Smallest-Divisor-Given-a-Threshold.md" >}})|Medium||||50.6%|
198198
|1300|Sum of Mutated Array Closest to Target|[Go]({{< relref "/ChapterFour/1300~1399/1300.Sum-of-Mutated-Array-Closest-to-Target.md" >}})|Medium||||42.6%|
199199
|1337|The K Weakest Rows in a Matrix|[Go]({{< relref "/ChapterFour/1300~1399/1337.The-K-Weakest-Rows-in-a-Matrix.md" >}})|Easy||||72.0%|

website/content/ChapterTwo/Dynamic_Programming.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ weight: 7
8686
|0996|Number of Squareful Arrays|[Go]({{< relref "/ChapterFour/0900~0999/0996.Number-of-Squareful-Arrays.md" >}})|Hard||||48.6%|
8787
|1025|Divisor Game|[Go]({{< relref "/ChapterFour/1000~1099/1025.Divisor-Game.md" >}})|Easy| O(1)| O(1)||66.2%|
8888
|1048|Longest String Chain|[Go]({{< relref "/ChapterFour/1000~1099/1048.Longest-String-Chain.md" >}})|Medium||||56.3%|
89-
|1049|Last Stone Weight II|[Go]({{< relref "/ChapterFour/1000~1099/1049.Last-Stone-Weight-II.md" >}})|Medium||||47.3%|
89+
|1049|Last Stone Weight II|[Go]({{< relref "/ChapterFour/1000~1099/1049.Last-Stone-Weight-II.md" >}})|Medium||||47.4%|
9090
|1105|Filling Bookcase Shelves|[Go]({{< relref "/ChapterFour/1100~1199/1105.Filling-Bookcase-Shelves.md" >}})|Medium||||57.6%|
9191
|1137|N-th Tribonacci Number|[Go]({{< relref "/ChapterFour/1100~1199/1137.N-th-Tribonacci-Number.md" >}})|Easy||||55.6%|
9292
|1143|Longest Common Subsequence|[Go]({{< relref "/ChapterFour/1100~1199/1143.Longest-Common-Subsequence.md" >}})|Medium||||58.8%|
93-
|1235|Maximum Profit in Job Scheduling|[Go]({{< relref "/ChapterFour/1200~1299/1235.Maximum-Profit-in-Job-Scheduling.md" >}})|Hard||||48.2%|
93+
|1235|Maximum Profit in Job Scheduling|[Go]({{< relref "/ChapterFour/1200~1299/1235.Maximum-Profit-in-Job-Scheduling.md" >}})|Hard||||48.3%|
9494
|1463|Cherry Pickup II|[Go]({{< relref "/ChapterFour/1400~1499/1463.Cherry-Pickup-II.md" >}})|Hard||||68.6%|
9595
|1641|Count Sorted Vowel Strings|[Go]({{< relref "/ChapterFour/1600~1699/1641.Count-Sorted-Vowel-Strings.md" >}})|Medium||||75.0%|
9696
|1646|Get Maximum in Generated Array|[Go]({{< relref "/ChapterFour/1600~1699/1646.Get-Maximum-in-Generated-Array.md" >}})|Easy||||52.8%|

0 commit comments

Comments
 (0)