mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-25 03:11:41 +08:00
18 lines
338 B
Go
18 lines
338 B
Go
package leetcode
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Problem677(t *testing.T) {
|
|
obj := Constructor()
|
|
fmt.Printf("obj = %v\n", obj)
|
|
obj.Insert("apple", 3)
|
|
fmt.Printf("obj = %v\n", obj)
|
|
fmt.Printf("obj.sum = %v\n", obj.Sum("ap"))
|
|
obj.Insert("app", 2)
|
|
fmt.Printf("obj = %v\n", obj)
|
|
fmt.Printf("obj.sum = %v\n", obj.Sum("ap"))
|
|
}
|