mirror of
https://github.com/RussellChamp/advent-of-code-2021.git
synced 2026-10-27 21:52:32 +00:00
day 9 and 10
This commit is contained in:
1 parent
c7ea0afedc
commit
41c5e86e7c
6 files changed
+479
-1
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user