mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-24 19:04:32 +08:00
16 lines
330 B
Go
16 lines
330 B
Go
package leetcode
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Problem703(t *testing.T) {
|
|
obj := Constructor(3, []int{4, 5, 8, 2})
|
|
fmt.Printf("Add 7 = %v\n", obj.Add(3))
|
|
fmt.Printf("Add 7 = %v\n", obj.Add(5))
|
|
fmt.Printf("Add 7 = %v\n", obj.Add(10))
|
|
fmt.Printf("Add 7 = %v\n", obj.Add(9))
|
|
fmt.Printf("Add 7 = %v\n", obj.Add(4))
|
|
}
|