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

Problem Description

A Doublet is a pair of words that differ in exactly one letter; for example, “booster” and “rooster” or “rooster” and “roaster” or “roaster” and “roasted”.

You are given a dictionary of up to 25143 lower case words, not exceeding 16 letters each. You are then given a number of pairs of words. For e

...

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

Sample Input

booster
rooster
roaster
coasted
roasted
coastal
postal

booster roasted
coastal postal

Sample Output

booster
rooster
roaster
roasted

No solution.

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

Solution originally posted at: Github by @codingsince1985