Skip to content

Commit 9354e61

Browse files
committed
chapter four add pre-next
1 parent e1a090b commit 9354e61

File tree

562 files changed

+4450
-525
lines changed

Some content is hidden

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

562 files changed

+4450
-525
lines changed

ctl/render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func buildChapterTwo() {
180180
util.WriteFile(fmt.Sprintf("../website/content/ChapterTwo/%v.md", chapterTwoFileName[index]), res)
181181
count++
182182
}
183-
fmt.Println("write %v files successful", count)
183+
fmt.Printf("write %v files successful", count)
184184
}
185185

186186
func loadMetaData(filePath string) (map[int]m.TagList, error) {

website/content/ChapterFour/0001.Two-Sum.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,11 @@ func twoSum(nums []int, target int) []int {
4747
return nil
4848
}
4949

50-
```
50+
```
51+
52+
53+
----------------------------------------------
54+
<div style="display: flex;justify-content: space-between;align-items: center;">
55+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/">⬅️上一页</a></p>
56+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0002.Add-Two-Numbers/">下一页➡️</a></p>
57+
</div>

website/content/ChapterFour/0002.Add-Two-Numbers.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,11 @@ func addTwoNumbers(l1 *ListNode, l2 *ListNode) *ListNode {
7575
return head.Next
7676
}
7777

78-
```
78+
```
79+
80+
81+
----------------------------------------------
82+
<div style="display: flex;justify-content: space-between;align-items: center;">
83+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0001.Two-Sum/">⬅️上一页</a></p>
84+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0003.Longest-Substring-Without-Repeating-Characters/">下一页➡️</a></p>
85+
</div>

website/content/ChapterFour/0003.Longest-Substring-Without-Repeating-Characters.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,10 @@ func max(a int, b int) int {
122122

123123

124124

125+
126+
127+
----------------------------------------------
128+
<div style="display: flex;justify-content: space-between;align-items: center;">
129+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0002.Add-Two-Numbers/">⬅️上一页</a></p>
130+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0004.Median-of-Two-Sorted-Arrays/">下一页➡️</a></p>
131+
</div>

website/content/ChapterFour/0004.Median-of-Two-Sorted-Arrays.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,10 @@ func findMedianSortedArrays(nums1 []int, nums2 []int) float64 {
9696
}
9797

9898
```
99+
100+
101+
----------------------------------------------
102+
<div style="display: flex;justify-content: space-between;align-items: center;">
103+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0003.Longest-Substring-Without-Repeating-Characters/">⬅️上一页</a></p>
104+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0007.Reverse-Integer/">下一页➡️</a></p>
105+
</div>

website/content/ChapterFour/0007.Reverse-Integer.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,10 @@ func reverse7(x int) int {
5353
}
5454

5555
```
56+
57+
58+
----------------------------------------------
59+
<div style="display: flex;justify-content: space-between;align-items: center;">
60+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0004.Median-of-Two-Sorted-Arrays/">⬅️上一页</a></p>
61+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0009.Palindrome-Number/">下一页➡️</a></p>
62+
</div>

website/content/ChapterFour/0009.Palindrome-Number.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,11 @@ func isPalindrome(x int) bool {
6666
return true
6767
}
6868

69-
```
69+
```
70+
71+
72+
----------------------------------------------
73+
<div style="display: flex;justify-content: space-between;align-items: center;">
74+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0007.Reverse-Integer/">⬅️上一页</a></p>
75+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0011.Container-With-Most-Water/">下一页➡️</a></p>
76+
</div>

website/content/ChapterFour/0011.Container-With-Most-Water.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ func maxArea(height []int) int {
5757
}
5858

5959
```
60+
61+
62+
----------------------------------------------
63+
<div style="display: flex;justify-content: space-between;align-items: center;">
64+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0009.Palindrome-Number/">⬅️上一页</a></p>
65+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0013.Roman-to-Integer/">下一页➡️</a></p>
66+
</div>

website/content/ChapterFour/0013.Roman-to-Integer.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,11 @@ func romanToInt(s string) int {
129129
return total
130130
}
131131

132-
```
132+
```
133+
134+
135+
----------------------------------------------
136+
<div style="display: flex;justify-content: space-between;align-items: center;">
137+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0011.Container-With-Most-Water/">⬅️上一页</a></p>
138+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0015.3Sum/">下一页➡️</a></p>
139+
</div>

website/content/ChapterFour/0015.3Sum.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,10 @@ func threeSum1(nums []int) [][]int {
119119

120120

121121

122+
123+
124+
----------------------------------------------
125+
<div style="display: flex;justify-content: space-between;align-items: center;">
126+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0013.Roman-to-Integer/">⬅️上一页</a></p>
127+
<p><a href="https://books.halfrost.com/leetcode/ChapterFour/0016.3Sum-Closest/">下一页➡️</a></p>
128+
</div>

0 commit comments

Comments
 (0)