Add Go codes to docs, including
the chapter of stack and queue, the chapter of tree.
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
|
||||
package pkg
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestListNode(t *testing.T) {
|
||||
arr := []int{2, 3, 5, 6, 7}
|
||||
@@ -12,5 +15,5 @@ func TestListNode(t *testing.T) {
|
||||
|
||||
PrintLinkedList(head)
|
||||
node := GetListNode(head, 5)
|
||||
t.Log("Find node: ", node.Val)
|
||||
fmt.Println("Find node: ", node.Val)
|
||||
}
|
||||
|
Reference in New Issue
Block a user