No, the output is correct; M is two columns to the right of G and no need for any left motions (assuming the post has not been modified between when you saw it and when I did). It will be important to developing a solution that at least one of the test cases includes movement in each direction.
In reply to Re^2: please solve this
by GotToBTru
in thread please solve this
by ashokbabumannam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |