First (unsuccessful) attempt at day 7.1.

This commit is contained in:
2018-12-09 23:46:35 -05:00
parent 0388b57112
commit f6ea56d266
6 changed files with 238 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package util
func ReverseString(s string) string {
runes := []rune(s)
i := 0
j := len(runes) - 1
for i < j {
runes[i], runes[j] = runes[j], runes[i]
i++
j--
}
return string(runes)
}