GO Solution For UVa 10400 - Game Show Math. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

A game show in Britain has a segment where it gives its contestants a sequence of positive numbers and a target number. The contestant must make a mathematical expression using all of the numbers in the sequence and only the operators: +, -, * and /. Each number in the sequence must be used exactly


You can find the full details of the problem Game Show Math at UVa Online Judge

Sample Input

3 5 7 4 3
2 1 1 2000
5 12 2 5 1 2 4

Sample Output


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

Solution originally posted at: Github by @codingsince1985