File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import java .util .ArrayList ;
4
4
import java .util .List ;
5
- /**
6
- * 293. Flip Game
7
- *
8
- * You are playing the following Flip Game with your friend: Given a string that contains only
9
- * these two characters: + and -, you and your friend take turns to flip two consecutive "++" into "--".
10
- * The game ends when a person can no longer make a move and therefore the other person will be the winner.
11
- Write a function to compute all possible states of the string after one valid move.
12
- For example, given s = "++++", after one move, it may become one of the following states:
13
5
14
- [
15
- "--++",
16
- "+--+",
17
- "++--"
18
- ]
19
- If there is no valid move, return an empty list [].*/
20
6
public class _293 {
21
7
22
8
public static class Solutoin1 {
You can’t perform that action at this time.
0 commit comments