A string over A, B and C allows two moves: turn an adjacent "AB" into "BA", or an adjacent "BC" into "CB". How many moves can you make at most before none is left?
A string over A, B and C allows two moves: turn an adjacent "AB" into "BA", or an adjacent "BC" into "CB". How many moves can you make at most before none is left?
Opens with the full question.