You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
325 B
20 lines
325 B
// File: list_node_test.go
|
|
// Created Time: 2022-11-25
|
|
// Author: Reanon (793584285@qq.com)
|
|
|
|
package pkg
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestListNode(t *testing.T) {
|
|
arr := []int{2, 3, 5, 6, 7}
|
|
head := ArrayToLinkedList(arr)
|
|
|
|
PrintLinkedList(head)
|
|
node := GetListNode(head, 5)
|
|
fmt.Println("Find node: ", node.Val)
|
|
}
|