There are six buttons in a row. Each button shows an arrow pointing left (L) or right (R). When you press a button, all buttons in the direction of its arrow (not including itself) rotate 180 degrees.
Find the least number of button presses required to get from RRRLLL to LRLRLR.
by "all buttons in the direction of its arrow", I assume this means the buttons to the Right of the button change if you push an R button. (and not 'all the other R buttons change to L buttons')
so if you push the 3rd button:
RRRLLL ---> RRRRRR
and not: ---> LLRLLL
Posted by Larry
on 2006-10-13 07:47:58