package
0.0.0-20241126132414-a6474f9c9b52
Repository: https://github.com/talgat-ruby/exercises-go.git
Documentation: pkg.go.dev
# README
Problem 8
Simplify the given code using your knowledge of map, slices, and pointers. Don't remove load
, update it.
The output should be the same
simplify([]string{"a", "b", "c"}) // map[a:0 b:1 c:2]
simplify([]string{"z", "y", "x", "u", "v"}) // map[u:3 v:4 x:2 y:1 z:0]