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

Problem Description

The problem is to calculate the coefficients in expansion of polynomial (x1 + x2 + . . .+ xk)n.

Input The input will consist of a set of pairs of lines. The first line of the pair consists of two integers n and k separated with space (0 < K,N < 13). This integers define the power of the polynomial

...

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

Sample Input

2 2
1 1
2 12
1 0 0 0 0 0 0 0 0 0 1 0

Sample Output

2
2

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

Solution originally posted at: Github by @codingsince1985