Problem 3690. OXO counting
Count the number of occurrences of "OXO" in rows, columns, diagonals and anti-diagonals.
>> board = ['OOX' 'XXO' 'OXO']; >> count_OXO(board) ans = 3 >> board = [' O ' 'XXO' 'OXO']; >> count_OXO(board) ans = 1
Solution CommentsShow comments
Problem Recent Solvers17