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.
Let the buttons be numbered 1,2,3,4,5,6 (from left to right).
The required least number of button presses is 4.
There are many ways to achieve this and one of the avenues corresponds pressiiing he undernoted buttons in order:
2, 5, 1, 5
Edited on September 9, 2022, 1:53 am