Skip to content

Commit 012aa43

Browse files
committed
reverse_prefix_of_word undefined
1 parent 7b77e5c commit 012aa43

File tree

18 files changed

+247
-21
lines changed

18 files changed

+247
-21
lines changed

abbreviating-the-product-of-a-range/abbreviateProduct_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package index
1+
package abbreviating_the_product_of_a_range
22

33
import (
44
"testing"

abbreviating-the-product-of-a-range/export.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package index
1+
package abbreviating_the_product_of_a_range
22

33
func AbbreviateProduct(left, right int) string {
44

abbreviating-the-product-of-a-range/index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package index
1+
package abbreviating_the_product_of_a_range
22

33
import (
44
"fmt"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package index
1+
package check_if_a_word_occurs_as_a_prefix_of_any_word_in_a_sentence
22
func IsPrefixOfWord(sentence string, searchWord string) int {
33
return isPrefixOfWord(sentence,searchWord)
44
}

check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence/index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package index
1+
package check_if_a_word_occurs_as_a_prefix_of_any_word_in_a_sentence
22

33
import "strings"
44

count-complete-tree-nodes/export.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package index
1+
package count_complete_tree_nodes
22
import serialize_and_deserialize_binary_tree "github.com/masx200/leetcode-test/serialize-and-deserialize-binary-tree"
33

44
func CountNodes(root *TreeNode) int {

count-complete-tree-nodes/index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package index
1+
package count_complete_tree_nodes
22

33
import "math"
44

go.mod

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,40 @@ module github.com/masx200/leetcode-test
22

33
go 1.18
44

5-
require (
6-
github.com/masx200/leetcode-test/serialize-and-deserialize-binary-tree v0.0.0-20221017071457-61edb01aa260
7-
github.com/masx200/leetcode-test/utils v0.0.0-20221017065832-df73c286eb18
8-
gotest.tools/v3 v3.4.0
9-
)
5+
require gotest.tools/v3 v3.4.0
106

117
require (
128
github.com/akrennmair/slice v0.0.0-20220105203817-49445747ab81
139
github.com/stretchr/testify v1.8.2
1410
)
1511

1612
require (
13+
github.com/admpub/fsnotify v1.5.0 // indirect
14+
github.com/francoispqt/gojay v1.2.13 // indirect
15+
github.com/go-ole/go-ole v1.2.6 // indirect
16+
github.com/goccy/go-json v0.9.11 // indirect
17+
github.com/hashicorp/go-version v1.6.0 // indirect
18+
github.com/json-iterator/go v1.1.12 // indirect
19+
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
20+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
21+
github.com/modern-go/reflect2 v1.0.2 // indirect
22+
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
23+
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
24+
github.com/shirou/gopsutil/v3 v3.22.2 // indirect
25+
github.com/tklauser/go-sysconf v0.3.9 // indirect
26+
github.com/tklauser/numcpus v0.3.0 // indirect
27+
github.com/yusufpapurcu/wmi v1.2.2 // indirect
28+
golang.org/x/sys v0.4.0 // indirect
29+
golang.org/x/text v0.6.0 // indirect
30+
)
31+
32+
require (
33+
github.com/datreeio/datree v1.8.67
1734
github.com/davecgh/go-spew v1.1.1 // indirect
1835
github.com/google/go-cmp v0.5.9 // indirect
36+
github.com/magiconair/properties v1.8.7
1937
github.com/masx200/leetcode-TreeNode-go v1.0.5 // indirect
2038
github.com/pmezard/go-difflib v1.0.0 // indirect
39+
github.com/webx-top/com v0.9.3
2140
gopkg.in/yaml.v3 v3.0.1 // indirect
2241
)

go.sum

Lines changed: 205 additions & 0 deletions
Large diffs are not rendered by default.

reverse-prefix-of-word/export.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
package index
1+
package reverse_prefix_of_word
2+
23

34
func ReversePrefix(word string, ch byte) string {
45
return reversePrefix(word,ch)

0 commit comments

Comments
 (0)