mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-05 08:27:30 +08:00
16 lines
312 B
Go
16 lines
312 B
Go
package leetcode
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Problem1603(t *testing.T) {
|
|
obj := Constructor(1, 1, 0)
|
|
fmt.Printf("obj = %v\n", obj)
|
|
fmt.Printf("obj = %v\n", obj.AddCar(1))
|
|
fmt.Printf("obj = %v\n", obj.AddCar(2))
|
|
fmt.Printf("obj = %v\n", obj.AddCar(3))
|
|
fmt.Printf("obj = %v\n", obj.AddCar(1))
|
|
}
|