Merge branch 'master' into test_travis-ci

This commit is contained in:
halfrost
2020-08-07 10:12:09 +08:00
committed by GitHub
18 changed files with 19 additions and 19 deletions

View File

@ -1,4 +1,4 @@
package kit
package structures
// intHeap 实现了 heap 的接口
type intHeap []int

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"container/heap"

View File

@ -1,4 +1,4 @@
package kit
package structures
// Interval 提供区间表示
type Interval struct {
@ -50,4 +50,4 @@ func partitionSort(a []Interval, lo, hi int) int {
}
a[i+1], a[hi] = a[hi], a[i+1]
return i + 1
}
}

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"testing"

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"fmt"

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"testing"

View File

@ -1,4 +1,4 @@
package kit
package structures
// NestedInteger is the interface that allows for creating nested lists.
// You should not implement it, or speculate about its implementation

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"testing"

View File

@ -1,4 +1,4 @@
package kit
package structures
// Point 定义了一个二维坐标点
type Point struct {

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"reflect"

View File

@ -1,4 +1,4 @@
package kit
package structures
// This example demonstrates a priority queue built using the heap interface.

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"container/heap"

View File

@ -1,4 +1,4 @@
package kit
package structures
// Queue 是用于存放 int 的队列
type Queue struct {

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"testing"

View File

@ -1,4 +1,4 @@
package kit
package structures
// Stack 是用于存放 int 的 栈
type Stack struct {

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"testing"

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"fmt"

View File

@ -1,4 +1,4 @@
package kit
package structures
import (
"reflect"