Add solution 478

This commit is contained in:
YDZ
2021-03-17 18:48:26 +08:00
parent 1cd9cec988
commit 031d96b369
11 changed files with 303 additions and 25 deletions

View File

@ -0,0 +1,18 @@
package leetcode
import (
"fmt"
"testing"
)
func Test_Problem478(t *testing.T) {
obj := Constructor(1, 0, 0)
fmt.Printf("RandPoint() = %v\n", obj.RandPoint())
fmt.Printf("RandPoint() = %v\n", obj.RandPoint())
fmt.Printf("RandPoint() = %v\n", obj.RandPoint())
obj = Constructor(10, 5, -7.5)
fmt.Printf("RandPoint() = %v\n", obj.RandPoint())
fmt.Printf("RandPoint() = %v\n", obj.RandPoint())
fmt.Printf("RandPoint() = %v\n", obj.RandPoint())
}