forked from duke-git/lancet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: update package comment for datastructure package
- Loading branch information
Showing
14 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure implements some data structure. eg. list, linklist, stack, queue, tree, graph. | ||
// Package datastructure implements some data structure. hashmap structure. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure implements some data structure. eg. list, linklist, stack, queue, tree, graph. | ||
// Package datastructure implements some data structure. MaxHeap is a binary max heap. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. Link structure contains SinglyLink and DoublyLink. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. Link structure contains SinglyLink and DoublyLink. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure implements some data structure. eg. list, linklist, stack, queue, tree, graph. | ||
// Package datastructure contains some data structure. list is a linear table, implemented with slice. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure implements some data structure. eg. list, linklist, stack, queue, tree, graph. | ||
// Package datastructure implements some data structure. | ||
package datastructure | ||
|
||
// LinkNode is a linkedlist node, which have a Value and Pre points to previous node, Next points to a next node of the link. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. | ||
// Queue structure contains ArrayQueue, LinkedQueue, CircularQueue, and PriorityQueue. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. | ||
// Queue structure contains ArrayQueue, LinkedQueue, CircularQueue, and PriorityQueue. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. | ||
// Queue structure contains ArrayQueue, LinkedQueue, CircularQueue, and PriorityQueue. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. | ||
// Queue structure contains ArrayQueue, LinkedQueue, CircularQueue, and PriorityQueue. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. Set is a data container, like slice, but element of set is not duplicate. | ||
package datastructure | ||
|
||
// Set is a data container, like slice, but element of set is not duplicate | ||
// Set is a data container, like slice, but element of set is not duplicate. | ||
type Set[T comparable] map[T]struct{} | ||
|
||
// NewSet return a instance of set | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. Stack structure contains ArrayStack and LinkedStack. | ||
package datastructure | ||
|
||
import "errors" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. Stack structure contains ArrayStack and LinkedStack. | ||
package datastructure | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// Copyright 2021 [email protected]. All rights reserved. | ||
// Use of this source code is governed by MIT license | ||
|
||
// Package datastructure contains some data structure. BSTree is binary search tree. | ||
package datastructure | ||
|
||
import ( | ||
|