Skip to content

Commit e227edf

Browse files
committed
Fix go report
1 parent 2a40f7c commit e227edf

File tree

255 files changed

+273
-280
lines changed

Some content is hidden

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

255 files changed

+273
-280
lines changed

leetcode/0145.Binary-Tree-Postorder-Traversal/145. Binary Tree Postorder 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/0145.Binary-Tree-Postorder-Traversal/145. Binary Tree Postorder 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 question145 struct {

leetcode/0147.Insertion-Sort-List/147. Insertion Sort 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/0147.Insertion-Sort-List/147. Insertion Sort 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 question147 struct {

leetcode/0148.Sort-List/148. Sort 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/0148.Sort-List/148. Sort 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 question148 struct {

leetcode/0160.Intersection-of-Two-Linked-Lists/160. Intersection of Two Linked Lists.go

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

3-
import "fmt"
4-
53
import (
6-
"github.com/halfrost/LeetCode-Go/structures"
4+
"fmt"
5+
6+
"github.com/halfrost/leetcode-go/structures"
77
)
88

99
// ListNode define

leetcode/0160.Intersection-of-Two-Linked-Lists/160. Intersection of Two Linked Lists_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 question160 struct {

leetcode/0173.Binary-Search-Tree-Iterator/173. Binary Search Tree Iterator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package leetcode
33
import (
44
"container/heap"
55

6-
"github.com/halfrost/LeetCode-Go/structures"
6+
"github.com/halfrost/leetcode-go/structures"
77
)
88

99
// TreeNode define

leetcode/0173.Binary-Search-Tree-Iterator/173. Binary Search Tree Iterator_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
func Test_Problem173(t *testing.T) {

leetcode/0199.Binary-Tree-Right-Side-View/199. Binary Tree Right Side View.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/0199.Binary-Tree-Right-Side-View/199. Binary Tree Right Side View_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 question199 struct {

leetcode/0203.Remove-Linked-List-Elements/203. Remove Linked List Elements.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/0203.Remove-Linked-List-Elements/203. Remove Linked List Elements_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 question203 struct {

leetcode/0206.Reverse-Linked-List/206. Reverse Linked 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/0206.Reverse-Linked-List/206. Reverse Linked 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 question206 struct {

leetcode/0218.The-Skyline-Problem/218. The Skyline Problem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package leetcode
33
import (
44
"sort"
55

6-
"github.com/halfrost/LeetCode-Go/template"
6+
"github.com/halfrost/leetcode-go/template"
77
)
88

99
// 解法一 树状数组,时间复杂度 O(n log n)

leetcode/0222.Count-Complete-Tree-Nodes/222. Count Complete Tree Nodes.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/0222.Count-Complete-Tree-Nodes/222. Count Complete Tree Nodes_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 question222 struct {

leetcode/0226.Invert-Binary-Tree/226. Invert Binary Tree.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/0226.Invert-Binary-Tree/226. Invert Binary Tree_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 question226 struct {

leetcode/0230.Kth-Smallest-Element-in-a-BST/230. Kth Smallest Element in a BST.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/0230.Kth-Smallest-Element-in-a-BST/230. Kth Smallest Element in a BST_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 question230 struct {

leetcode/0234.Palindrome-Linked-List/234. Palindrome Linked 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/0234.Palindrome-Linked-List/234. Palindrome Linked 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 question234 struct {

leetcode/0235.Lowest-Common-Ancestor-of-a-Binary-Search-Tree/235. Lowest Common Ancestor of a Binary Search Tree.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/0235.Lowest-Common-Ancestor-of-a-Binary-Search-Tree/235. Lowest Common Ancestor of a Binary Search Tree_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 question235 struct {

leetcode/0236.Lowest-Common-Ancestor-of-a-Binary-Tree/236. Lowest Common Ancestor of a Binary Tree.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/0236.Lowest-Common-Ancestor-of-a-Binary-Tree/236. Lowest Common Ancestor of a Binary Tree_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 question236 struct {

leetcode/0237.Delete-Node-in-a-Linked-List/237. Delete Node in a Linked 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/0237.Delete-Node-in-a-Linked-List/237. Delete Node in a Linked 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 question237 struct {

leetcode/0237.Delete-Node-in-a-Linked-List/README.md

Lines changed: 1 addition & 1 deletion

leetcode/0257.Binary-Tree-Paths/257. Binary Tree Paths.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ package leetcode
22

33
import (
44
"strconv"
5-
)
65

7-
import (
8-
"github.com/halfrost/LeetCode-Go/structures"
6+
"github.com/halfrost/leetcode-go/structures"
97
)
108

119
// TreeNode define

leetcode/0257.Binary-Tree-Paths/257. Binary Tree Paths_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 question257 struct {

leetcode/0297.Serialize-and-Deserialize-Binary-Tree/297.Serialize and Deserialize Binary Tree.go

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

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

1010
type TreeNode = structures.TreeNode

leetcode/0297.Serialize-and-Deserialize-Binary-Tree/297.Serialize and Deserialize Binary Tree_test.go

Lines changed: 6 additions & 6 deletions
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 question297 struct {
@@ -31,12 +31,12 @@ func Test_Problem297(t *testing.T) {
3131
ans297{[]int{}},
3232
},
3333
{
34-
para297{[]int{1,2,3,-1,-1,4,5}},
35-
ans297{[]int{1,2,3,-1,-1,4,5}},
34+
para297{[]int{1, 2, 3, -1, -1, 4, 5}},
35+
ans297{[]int{1, 2, 3, -1, -1, 4, 5}},
3636
},
3737
{
38-
para297{[]int{1,2}},
39-
ans297{[]int{1,2}},
38+
para297{[]int{1, 2}},
39+
ans297{[]int{1, 2}},
4040
},
4141
}
4242

@@ -52,4 +52,4 @@ func Test_Problem297(t *testing.T) {
5252
fmt.Printf("【output】:%v \n", structures.Tree2Preorder(tree297.deserialize(serialized)))
5353
}
5454
fmt.Printf("\n\n\n")
55-
}
55+
}

leetcode/0297.Serialize-and-Deserialize-Binary-Tree/README.md

Lines changed: 1 addition & 1 deletion

leetcode/0303.Range-Sum-Query-Immutable/303. Range Sum Query - Immutable.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
//解法一 线段树,sumRange 时间复杂度 O(1)

leetcode/0307.Range-Sum-Query-Mutable/307. Range Sum Query - Mutable.go

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

3-
import "github.com/halfrost/LeetCode-Go/template"
3+
import "github.com/halfrost/leetcode-go/template"
44

55
// NumArray define
66
type NumArray struct {

leetcode/0315.Count-of-Smaller-Numbers-After-Self/315. Count of Smaller Numbers After Self.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package leetcode
33
import (
44
"sort"
55

6-
"github.com/halfrost/LeetCode-Go/template"
6+
"github.com/halfrost/leetcode-go/template"
77
)
88

99
// 解法一 线段树

leetcode/0327.Count-of-Range-Sum/327. Count of Range Sum.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package leetcode
33
import (
44
"sort"
55

6-
"github.com/halfrost/LeetCode-Go/template"
6+
"github.com/halfrost/leetcode-go/template"
77
)
88

99
// 解法一 线段树,时间复杂度 O(n log n)

0 commit comments

Comments
 (0)