mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 01:15:57 +08:00
Add go module in root directory
This commit is contained in:
18
go.mod
18
go.mod
@ -3,8 +3,18 @@ module github.com/halfrost/LeetCode-Go
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/BurntSushi/toml v1.2.0 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
||||
github.com/spf13/cobra v1.5.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
github.com/BurntSushi/toml v1.2.0
|
||||
github.com/halfrost/LeetCode-Go/structures v0.0.0-20220910233101-aa0e2c897b18
|
||||
github.com/halfrost/LeetCode-Go/template v0.0.0-20220910233504-e2a72e6212ce
|
||||
github.com/mozillazg/request v0.8.0
|
||||
github.com/spf13/cobra v1.5.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/bitly/go-simplejson v0.5.0 // indirect
|
||||
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
||||
github.com/kr/pretty v0.3.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect
|
||||
)
|
||||
|
28
go.sum
28
go.sum
@ -1,12 +1,40 @@
|
||||
github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0=
|
||||
github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
|
||||
github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y=
|
||||
github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA=
|
||||
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY=
|
||||
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/halfrost/LeetCode-Go/structures v0.0.0-20220910233101-aa0e2c897b18 h1:0GpuK4ECz6Q5AznkgjU2ZhxfqXyU5lt7wmzm7R0GyuA=
|
||||
github.com/halfrost/LeetCode-Go/structures v0.0.0-20220910233101-aa0e2c897b18/go.mod h1:PiB3scEe5vQhgf3BFfrj/wwApeH+2yyPRF3Jqpq+7AY=
|
||||
github.com/halfrost/LeetCode-Go/template v0.0.0-20220910233504-e2a72e6212ce h1:JQkZW/93bYrrUhM2xh4qLSZAXfw3DXQ15bfXis5TGpI=
|
||||
github.com/halfrost/LeetCode-Go/template v0.0.0-20220910233504-e2a72e6212ce/go.mod h1:Jiujq5ltPAr2X9Aw8KYqm8nzL02b73UtrVhryu383ag=
|
||||
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
|
||||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
|
||||
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/mozillazg/request v0.8.0 h1:TbXeQUdBWr1J1df5Z+lQczDFzX9JD71kTCl7Zu/9rNM=
|
||||
github.com/mozillazg/request v0.8.0/go.mod h1:weoQ/mVFNbWgRBtivCGF1tUT9lwneFesues+CleXMWc=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
|
||||
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU=
|
||||
github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM=
|
||||
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
|
||||
golang.org/x/net v0.0.0-20220909164309-bea034e7d591 h1:D0B/7al0LLrVC8aWF4+oxpv/m8bc7ViFfVS8/gXGdqI=
|
||||
golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question2 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question19 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question21 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question23 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question24 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question25 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// Interval define
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// Interval define
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question61 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question82 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question83 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question86 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question92 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question94 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question95 struct {
|
||||
|
@ -3,7 +3,7 @@ package leetcode
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question98 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question99 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question100 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question101 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question102 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question103 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question104 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question105 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question106 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question107 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question108 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question109 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question110 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question111 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question112 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question113 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question114 struct {
|
||||
|
@ -3,7 +3,7 @@ package leetcode
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question124 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/template"
|
||||
"github.com/halfrost/LeetCode-Go/template"
|
||||
)
|
||||
|
||||
// 解法一 map,时间复杂度 O(n)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question129 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/template"
|
||||
"github.com/halfrost/LeetCode-Go/template"
|
||||
)
|
||||
|
||||
var dir = [][]int{
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question138 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question141 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question143 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question144 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question145 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question147 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question148 struct {
|
||||
|
@ -3,7 +3,7 @@ package leetcode
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question160 struct {
|
||||
|
@ -3,7 +3,7 @@ package leetcode
|
||||
import (
|
||||
"container/heap"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
func Test_Problem173(t *testing.T) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question199 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question203 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// ListNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question206 struct {
|
||||
|
@ -3,7 +3,7 @@ package leetcode
|
||||
import (
|
||||
"sort"
|
||||
|
||||
"github.com/halfrost/leetcode-go/template"
|
||||
"github.com/halfrost/LeetCode-Go/template"
|
||||
)
|
||||
|
||||
// 解法一 树状数组,时间复杂度 O(n log n)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question222 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
type question226 struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"github.com/halfrost/leetcode-go/structures"
|
||||
"github.com/halfrost/LeetCode-Go/structures"
|
||||
)
|
||||
|
||||
// TreeNode define
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user