Add go module in root directory

This commit is contained in:
halfrost
2022-09-10 16:41:11 -07:00
parent e2a72e6212
commit 9437625832
270 changed files with 319 additions and 271 deletions

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question2 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question19 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question21 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question23 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question24 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question25 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// Interval define

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// Interval define

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question61 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question82 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question83 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question86 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question92 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question94 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question95 struct {

View File

@ -3,7 +3,7 @@ package leetcode
import (
"math"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question98 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question99 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question100 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question101 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question102 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question103 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question104 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question105 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question106 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question107 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question108 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question109 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question110 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question111 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question112 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question113 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question114 struct {

View File

@ -3,7 +3,7 @@ package leetcode
import (
"math"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question124 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/template"
"github.com/halfrost/LeetCode-Go/template"
)
// 解法一 map时间复杂度 O(n)

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question129 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/template"
"github.com/halfrost/LeetCode-Go/template"
)
var dir = [][]int{

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question138 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question141 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question143 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question144 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question145 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question147 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question148 struct {

View File

@ -3,7 +3,7 @@ package leetcode
import (
"fmt"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question160 struct {

View File

@ -3,7 +3,7 @@ package leetcode
import (
"container/heap"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -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) {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question199 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question203 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question206 struct {

View File

@ -3,7 +3,7 @@ package leetcode
import (
"sort"
"github.com/halfrost/leetcode-go/template"
"github.com/halfrost/LeetCode-Go/template"
)
// 解法一 树状数组,时间复杂度 O(n log n)

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question222 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question226 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// TreeNode define

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
type question230 struct {

View File

@ -1,7 +1,7 @@
package leetcode
import (
"github.com/halfrost/leetcode-go/structures"
"github.com/halfrost/LeetCode-Go/structures"
)
// ListNode define

Some files were not shown because too many files have changed in this diff Show More