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

Problem Description

Adam’s parents put up a sign that says “CONGRATULATIONS”. The sign is so big that exactly one letter fits on each panel. Some of Adam’s younger cousins got bored during the reception and decided to rearrange the panels. How many unique ways can the panels be arranged (counting the original arrangeme

...

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

Sample Input

3
HAPPY
WEDDING
ADAM

Sample Output

Data set 1: 60
Data set 2: 2520
Data set 3: 12

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

Solution originally posted at: Github by @codingsince1985