mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-13 07:14:17 +08:00
Add solution 0382
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
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")
|
||||
}
|
Reference in New Issue
Block a user