mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-04 16:12:47 +08:00
23 lines
423 B
Go
23 lines
423 B
Go
package leetcode
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Problem155(t *testing.T) {
|
|
obj1 := Constructor155()
|
|
obj1.Push(1)
|
|
fmt.Printf("obj1 = %v\n", obj1)
|
|
obj1.Push(0)
|
|
fmt.Printf("obj1 = %v\n", obj1)
|
|
obj1.Push(10)
|
|
fmt.Printf("obj1 = %v\n", obj1)
|
|
obj1.Pop()
|
|
fmt.Printf("obj1 = %v\n", obj1)
|
|
param3 := obj1.Top()
|
|
fmt.Printf("param_3 = %v\n", param3)
|
|
param4 := obj1.GetMin()
|
|
fmt.Printf("param_4 = %v\n", param4)
|
|
}
|