Friday, 8 January 2016

Regular Expresso- Winning Tic Tac Toe

Problem:

https://www.hackerrank.com/contests/regular-expresso/challenges/winning-tic-tac-toe

This solution solves the test cases partially.

Solution:

public class Solution {   

    public static void main(String[] args) {
       
        Regex_Test tester = new Regex_Test();
        tester.checker("(X|O)(..(\\1|.\\1.)..\\1|\\1\\1(...)*`$|.\\1.\\1..$`)"); // Use \\ instead of using \
   
    }
}

No comments:

Post a Comment