Help for this page

Select Code to Download


  1. or download this
    @stack=qw(d b f a e c 6);  # <-- bottom .. top -->
    
  2. or download this
    @stack=qw(f e d c b a 6);  # <-- bottom .. top -->
    
  3. or download this
    # You are not allowed to modify this.
    sub rotate_up {
    ...
            $b=pop @stack;
            splice(@stack, -$a, 0, $b);
    }