board of '+' and '-' characters. In one move a player picks two adjacent pluses "++" and turns them into "--".
Return every position reachable from board in exactly one move, in any order. If no move is possible, return an empty list.board="+++-" → ['--+-', '+---']
Adjacent pluses sit at positions 0–1 and 1–2, so there are two moves.
board="-+-+" → []
No two pluses are adjacent, so there is no move.
board="++-++" → ['---++', '++---']
board is '+' or '-'board="+++-"
['--+-', '+---']
Run checks the first 3 tests in your browser. Submit checks all 132 tests on the server, hidden ones included.