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

Problem Description

Some concepts in Mathematics and Computer Science are simple in one or two dimensions but become more complex when extended to arbitrary dimensions. Consider solving differential equations in several dimensions and analyzing the topology of an n-dimensional hypercube. The former is much more complic

...

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

Sample Input

5 2
3 7
8 10
5 2
9 11
21 18
8 6
5 2 20 1 30 10
23 15 7 9 11 3
40 50 34 24 14 4
9 10 11 12 13 14
31 4 18 8 27 17
44 32 13 19 41 19
1 2 3 4 5 6
80 37 47 18 21 9

Sample Output

5
3 1 2 4 5
4
7 2 5 8

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

Solution originally posted at: Github by @codingsince1985