Building Blocks

Hey all, I was wondering if you could help me with building blocks. I have this that I have to do. I have to assume a child is building blocks and that I want to stack them in a certain order. like in this next example we stack from a to f and so on and so forth.

    F
  C E
A B D

Then we will unstack in this order.

F E C D B A

problem is, how would you implement something like this? I think I can do it but I have no idea how to start this?
Last edited on
i think,you should use "Class Stack"
Topic archived. No new replies allowed.