kata.go 187 B

1234567891011
  1. package kata
  2. func AddLetters(letters []rune) rune {
  3. var off rune = 0
  4. for _, letter := range letters {
  5. off += letter - 'a' + 1
  6. }
  7. var res rune = 'a' + (25 + off) % 26
  8. return res
  9. }