GO Solution For UVa 10044 - Erdos Numbers. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

The Hungarian Paul Erdös (1913–1996, speak as “Ar-dish”) not only was one of the strangest math- ematicians of the 20th century, he was also one of the most famous. He kept on publishing widely circulated papers up to a very high age and every mathematician having the honor of being a co-author to E


You can find the full details of the problem Erdos Numbers at UVa Online Judge

Sample Input

4 3
Smith, M.N., Martin, G., Erdos, P.: Newtonian forms of prime factor matrices
Erdos, P., Reisig, W.: Stuttering in petri nets
Smith, M.N., Chen, X.: First oder derivates in structured programming
Jablonski, T., Hsueh, Z.: Selfstabilizing data structures
Smith, M.N.
Hsueh, Z.
Chen, X.

Sample Output

Scenario 1
Smith, M.N. 1
Hsueh, Z. infinity
Chen, X. 2

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

Solution originally posted at: Github by @codingsince1985