GO Solution For UVa 101 - The Blocks Problem. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study of planning and robotics (STRIPS) used a block world in which a robot arm performed tasks involving the manipulation of blocks.

In this problem you will model a simp

...

You can find the full details of the problem The Blocks Problem at UVa Online Judge

Sample Input

10
move 9 onto 1
move 8 over 1
move 7 over 1
move 6 over 1
pile 8 over 6
pile 8 over 5
move 2 over 1
move 4 over 9
quit

Sample Output

0: 0
1: 1 9 2 4
2:
3: 3
4:
5: 5 8 7 6
6:
7:
8:
9:

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

Solution originally posted at: Github by @codingsince1985