Skip to content

Commit 2a40f7c

Browse files
committed
Change path
1 parent 35a447c commit 2a40f7c

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

leetcode/0128.Longest-Consecutive-Sequence/128. Longest Consecutive Sequence.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package leetcode
22

33
import (
4-
"github.com/halfrost/LeetCode-Go/template"
4+
"github.com/halfrost/leetcode-go/template"
55
)
66

77
// 解法一 map,时间复杂度 O(n)

leetcode/0129.Sum-Root-to-Leaf-Numbers/129. Sum Root to Leaf Numbers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package leetcode
22

33
import (
4-
"github.com/halfrost/LeetCode-Go/structures"
4+
"github.com/halfrost/leetcode-go/structures"
55
)
66

77
// TreeNode define

leetcode/0129.Sum-Root-to-Leaf-Numbers/129. Sum Root to Leaf Numbers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/halfrost/LeetCode-Go/structures"
7+
"github.com/halfrost/leetcode-go/structures"
88
)
99

1010
type question129 struct {

leetcode/0130.Surrounded-Regions/130. Surrounded Regions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package leetcode
22

33
import (
4-
"github.com/halfrost/LeetCode-Go/template"
4+
"github.com/halfrost/leetcode-go/template"
55
)
66

77
var dir = [][]int{

leetcode/0138.Copy-List-With-Random-Pointer/138. Copy List With Random Pointer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/halfrost/LeetCode-Go/structures"
7+
"github.com/halfrost/leetcode-go/structures"
88
)
99

1010
type question138 struct {

leetcode/0141.Linked-List-Cycle/141. Linked List Cycle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package leetcode
22

33
import (
4-
"github.com/halfrost/LeetCode-Go/structures"
4+
"github.com/halfrost/leetcode-go/structures"
55
)
66

77
// ListNode define

leetcode/0141.Linked-List-Cycle/141. Linked List Cycle_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/halfrost/LeetCode-Go/structures"
7+
"github.com/halfrost/leetcode-go/structures"
88
)
99

1010
type question141 struct {

leetcode/0142.Linked-List-Cycle-II/142. Linked List Cycle II.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package leetcode
22

33
import (
4-
"github.com/halfrost/LeetCode-Go/structures"
4+
"github.com/halfrost/leetcode-go/structures"
55
)
66

77
// ListNode define

leetcode/0143.Reorder-List/143. Reorder List.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package leetcode
22

33
import (
4-
"github.com/halfrost/LeetCode-Go/structures"
4+
"github.com/halfrost/leetcode-go/structures"
55
)
66

77
// ListNode define

leetcode/0143.Reorder-List/143. Reorder List_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/halfrost/LeetCode-Go/structures"
7+
"github.com/halfrost/leetcode-go/structures"
88
)
99

1010
type question143 struct {

leetcode/0143.Reorder-List/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ Given 1->2->3->4->5, reorder it to 1->5->2->4->3.
3131

3232
更好的做法是结合之前几道题的操作:链表逆序,找中间结点。
3333

34-
先找到链表的中间结点,然后利用逆序区间的操作,如 [第 92 题](https://github.com/halfrost/LeetCode-Go/tree/master/leetcode/0092.Reverse-Linked-List-II) 里的 reverseBetween() 操作,只不过这里的反转区间是从中点一直到末尾。最后利用 2 个指针,一个指向头结点,一个指向中间结点,开始拼接最终的结果。这种做法的时间复杂度是 O(n),空间复杂度是 O(1)。
34+
先找到链表的中间结点,然后利用逆序区间的操作,如 [第 92 题](https://github.com/halfrost/leetcode-go/tree/master/leetcode/0092.Reverse-Linked-List-II) 里的 reverseBetween() 操作,只不过这里的反转区间是从中点一直到末尾。最后利用 2 个指针,一个指向头结点,一个指向中间结点,开始拼接最终的结果。这种做法的时间复杂度是 O(n),空间复杂度是 O(1)。

leetcode/0144.Binary-Tree-Preorder-Traversal/144. Binary Tree Preorder Traversal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package leetcode
22

33
import (
4-
"github.com/halfrost/LeetCode-Go/structures"
4+
"github.com/halfrost/leetcode-go/structures"
55
)
66

77
// TreeNode define

leetcode/0144.Binary-Tree-Preorder-Traversal/144. Binary Tree Preorder Traversal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/halfrost/LeetCode-Go/structures"
7+
"github.com/halfrost/leetcode-go/structures"
88
)
99

1010
type question144 struct {

0 commit comments

Comments
 (0)