Skip to content

Commit 5cca5e8

Browse files
authored
Improved task 1275
1 parent dfa03e4 commit 5cca5e8

File tree

1 file changed

+2
-2
lines changed
  • src/main/kotlin/g1201_1300/s1275_find_winner_on_a_tic_tac_toe_game

1 file changed

+2
-2
lines changed

src/main/kotlin/g1201_1300/s1275_find_winner_on_a_tic_tac_toe_game/Solution.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Solution {
2222
private fun wins(board: Array<Array<String?>>): String {
2323
for (i in 0..2) {
2424
if (board[i][0] == null) {
25-
break
25+
continue
2626
}
2727
val str = board[i][0]
2828
if (str == board[i][1] && str == board[i][2]) {
@@ -31,7 +31,7 @@ class Solution {
3131
}
3232
for (j in 0..2) {
3333
if (board[0][j] == null) {
34-
break
34+
continue
3535
}
3636
val str = board[0][j]
3737
if (str == board[1][j] && str == board[2][j]) {

0 commit comments

Comments
 (0)