Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahliu committed Dec 4, 2024
1 parent 03b094a commit e68bc76
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/kotlin/p32xx/Problem3274.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package p32xx

import util.expect

fun main() {
class Solution {
fun checkTwoChessboards(coordinate1: String, coordinate2: String): Boolean {
return (coordinate1 + coordinate2).sumOf { it.code } and 1 == 0
}
}

expect {
Solution().checkTwoChessboards(
"a1", "c3"
)
}
}

0 comments on commit e68bc76

Please sign in to comment.