mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-04 16:12:47 +08:00
22 lines
412 B
Go
22 lines
412 B
Go
package leetcode
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Problem232(t *testing.T) {
|
|
obj := Constructor232()
|
|
fmt.Printf("obj = %v\n", obj)
|
|
obj.Push(2)
|
|
fmt.Printf("obj = %v\n", obj)
|
|
obj.Push(10)
|
|
fmt.Printf("obj = %v\n", obj)
|
|
param2 := obj.Pop()
|
|
fmt.Printf("param_2 = %v\n", param2)
|
|
param3 := obj.Peek()
|
|
fmt.Printf("param_3 = %v\n", param3)
|
|
param4 := obj.Empty()
|
|
fmt.Printf("param_4 = %v\n", param4)
|
|
}
|