You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
183 B

package anmo
func FlipStr(str string) string {
bs := []byte(str)
r := len(bs) - 1
l := 0
for l < r {
t := bs[l]
bs[l] = bs[r]
bs[r] = t
l++
r++
}
return string(bs)
}