Search⌘ K
AI Features

Flip Game

Flip Game gives you a string of plus and minus signs. Return every state produced by exactly one move that flips a consecutive pair of plus signs to minus signs, or an empty list if none is possible.

Statement

You are playing a Flip Game with a friend.

You are given a string currentState ...