mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 17:44:10 +08:00
29 lines
695 B
Go
29 lines
695 B
Go
package leetcode
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/halfrost/LeetCode-Go/structures"
|
|
)
|
|
|
|
func Test_Problem382(t *testing.T) {
|
|
header := structures.Ints2List([]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0})
|
|
obj := Constructor(header)
|
|
fmt.Printf("obj = %v\n", structures.List2Ints(header))
|
|
param1 := obj.GetRandom()
|
|
fmt.Printf("param_1 = %v\n", param1)
|
|
param1 = obj.GetRandom()
|
|
fmt.Printf("param_1 = %v\n", param1)
|
|
param1 = obj.GetRandom()
|
|
fmt.Printf("param_1 = %v\n", param1)
|
|
param1 = obj.GetRandom()
|
|
fmt.Printf("param_1 = %v\n", param1)
|
|
param1 = obj.GetRandom()
|
|
fmt.Printf("param_1 = %v\n", param1)
|
|
param1 = obj.GetRandom()
|
|
fmt.Printf("param_1 = %v\n", param1)
|
|
|
|
fmt.Printf("\n\n\n")
|
|
}
|