loading...

re: Daily Challenge #270 - Fix String Case VIEW POST

FULL DISCUSSION
 

Kotlin

fun solve(input: String): String
    = if (input.count { it.isUpperCase() } > input.length / 2) input.toUpperCase() else input.toLowerCase()
code of conduct - report abuse