diff --git a/src/main/kotlin/p32xx/Problem3280.kt b/src/main/kotlin/p32xx/Problem3280.kt new file mode 100644 index 00000000..67edc5b5 --- /dev/null +++ b/src/main/kotlin/p32xx/Problem3280.kt @@ -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( + "" + ) + } +}