add leetcode_0065

This commit is contained in:
ssezhangpeng
2021-06-21 23:56:00 +08:00
parent 578c85e416
commit 820f3ddd28
3 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,41 @@
package leetcode
import (
"fmt"
"testing"
)
func Test_Problem65(t *testing.T) {
tcs := []struct {
s string
ans bool
}{
{
"0",
true,
},
{
"e",
false,
},
{
".",
false,
},
{
".1",
true,
},
}
fmt.Printf("------------------------Leetcode Problem 65------------------------\n")
for _, tc := range tcs {
fmt.Printf("【input】:%v 【output】:%v\n", tc, isNumber(tc.s))
}
fmt.Printf("\n\n\n")
}