day 9 and 10

This commit is contained in:
RussellChamp committed 2021-12-10 11:22:03 -05:00
1 parent c7ea0afedc
commit 41c5e86e7c
6 files changed
+479 -1

No files matched your search

+8
View File
@@ -47,3 +47,11 @@ func MapStrToInt(input []string, fn func(string) int) []int {
}
return retVals
}
func Reverse(input []string) []string {
var output []string
for idx := len(input) - 1; idx >= 0; idx-- {
output = append(output, input[idx])
}
return output
}