Problem:
https://www.hackerrank.com/contests/regular-expresso/challenges/winning-tic-tac-toeThis 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