We have a list of students. Please get the number of characters of the student names in the odd positions.
Fold and reduce on collections
List of students
Report a typo
Sample Input 1:
Alice Bob Carol Dave EveSample Output 1:
13Write 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.