We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfa03e4 commit 5cca5e8Copy full SHA for 5cca5e8
src/main/kotlin/g1201_1300/s1275_find_winner_on_a_tic_tac_toe_game/Solution.kt
@@ -22,7 +22,7 @@ class Solution {
22
private fun wins(board: Array<Array<String?>>): String {
23
for (i in 0..2) {
24
if (board[i][0] == null) {
25
- break
+ continue
26
}
27
val str = board[i][0]
28
if (str == board[i][1] && str == board[i][2]) {
@@ -31,7 +31,7 @@ class Solution {
31
32
for (j in 0..2) {
33
if (board[0][j] == null) {
34
35
36
val str = board[0][j]
37
if (str == board[1][j] && str == board[2][j]) {
0 commit comments