package leetcode;

/**
 * https://leetcode.com/problems/valid-tic-tac-toe-state/
 */
public class Problem794 {
    public boolean validTicTacToe(String[] board) {
        // TODO
        return false;
    }

    public static void main(String[] args) {
        Problem794 prob = new Problem794();
        System.out.println(prob.validTicTacToe(new String[]{"O  ", "   ", "   "})); // false
        System.out.println(prob.validTicTacToe(new String[]{"XOX", " X ", "   "})); // false
        System.out.println(prob.validTicTacToe(new String[]{"XXX", "   ", "OOO"})); // false
        System.out.println(prob.validTicTacToe(new String[]{"XOX", "O O", "XOX"})); // true
    }
}

@@ -354,21 +354,58 @@
 g%5B%5D%7B
-%22O  %22, %22   %22,
+%0A            %22O  %22,%0A            %22   %22,%0A           
  %22  
@@ -484,21 +484,58 @@
 g%5B%5D%7B
-%22XOX%22, %22 X %22,
+%0A            %22XOX%22,%0A            %22 X %22,%0A           
  %22  
@@ -614,21 +614,58 @@
 g%5B%5D%7B
-%22XXX%22, %22   %22,
+%0A            %22XXX%22,%0A            %22   %22,%0A           
  %22OO
@@ -744,21 +744,58 @@
 g%5B%5D%7B
-%22XOX%22, %22O O%22,
+%0A            %22XOX%22,%0A            %22O O%22,%0A           
  %22XO

Update problem 794