Skip to content

Commit 54b9e14

Browse files
author
Tsang Yong
committed
working. but need polishing some commas
1 parent 355ba29 commit 54b9e14

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

reverse/reverse.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
package main
22

3-
import(
4-
"fmt"
5-
)
6-
73
func ReverseMatch(s_ary []string) (result_ary []string) {
8-
94
for _, str := range s_ary {
10-
fmt.Println(ReverseCheck(str, s_ary))
5+
result_ary = append(result_ary, ReverseCheck(str, s_ary))
116
}
12-
13-
return []string{}
7+
return result_ary
148
}
159

1610
func ReverseCheck(s string, s_ary []string) (rating string) {

0 commit comments

Comments
 (0)