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

Problem Description

There is a queue with N people. Every person has a different heigth. We can see P people, when we are looking from the beginning, and R people, when we are looking from the end. Its because they are having different height and they are covering each other. How many different permutations of our queu

...

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

Sample Input

3
10 4 4
11 3 1
3 1 2

Sample Output

90720
1026576
1

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

Solution originally posted at: Github by @codingsince1985