Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahliu committed Jan 9, 2025
1 parent 1ace1e4 commit c8fe3a7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/kotlin/p32xx/Problem3280.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package p32xx

import util.expect

fun main() {
class Solution {
fun convertDateToBinary(date: String): String {
return date.split('-').joinToString("-") {
it.toInt().toString(2)
}
}
}

expect {
Solution().convertDateToBinary(
""
)
}
}

0 comments on commit c8fe3a7

Please sign in to comment.