GO Solution For UVa 10415 - Eb Alto Saxophone Player. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Do you like saxophone? I have a Eb Alto Saxophone, shown on the right.

My fingers move A LOT when playing some music, and I’m quite interested in how many times each finger PRESS the button. Assume that the music is composed of only 8 kinds of note. They are: C D E F G A B in one octave and C D E F

...

You can find the full details of the problem Eb Alto Saxophone Player at UVa Online Judge

Sample Input

3
cdefgab
BAGFEDC
CbCaDCbCbCCbCbabCCbCbabae

Sample Output

0 1 1 1 0 0 1 1 1 1
1 1 1 1 0 0 1 1 1 0
1 8 10 2 0 0 2 2 1 0

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985