Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 6a3f72f

Browse files
aQuaaQua
aQua
authored and
aQua
committed
290 fixing
1 parent c1503b5 commit 6a3f72f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Algorithms/0290.word-pattern/word-pattern.go

+2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ import (
77
func wordPattern(pattern string, str string) bool {
88
ps := strings.Split(pattern, "")
99
ss := strings.Split(str, " ")
10+
1011
if len(ps) != len(ss) {
1112
return false
1213
}
14+
1315
return isMatch(ps, ss) && isMatch(ss, ps)
1416
}
1517

0 commit comments

Comments
 (0)