GO Solution For UVa 10393 - The One-Handed Typist. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Jimmy has a job of typing documents for ACM or he rather had a job until his un- fortunate skiing accident. With some of his fingers in a cast, he is finding it dif- ficult to type as he cannot press all the keys of a keyboard and hence his job is in danger.

Jimmy has come to you for help. He needs

...

You can find the full details of the problem The One-Handed Typist at UVa Online Judge

Sample Input

5 5
6 7 8 9 10
the
stewardesses
have
funny
hair
3 18
7 8 9
wax
waxed
waxen
waxer
waxers
waxes
waxing
waxy
we
wear
wearable
wearer
wearing
wears
weave
weaver
weaves
weaving

Sample Output

1
stewardesses
4
waxers
wearer
weaver
weaves

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

Solution originally posted at: Github by @codingsince1985