Neo is trying to hack the Matrix. He has a list of codes, but to solve this challenge, he must write the total sum of the lengths of the codes greater than or equal to 4. Could you please help him?
Fold and reduce on collections
Hacking the Matrix
Report a typo
Sample Input 1:
1234mom daddy4456 god hack meSample Output 1:
20Write a program in Kotlin
fun main() {
val list = readln().split(" ")
// write your code here
val res =
println(res)
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.