You have one string in standard input — it is a sequence of words split by spaces. Create a list of strings from this sequence and return the first shortest word whose first letter is from 'a' to 'l' or null if such a word doesn't exist.
Null and collections
Null or min?
Report a typo
Sample Input 1:
parrot ram rat pig cat frog wolf dog monkey foxSample Output 1:
catWrite a program in Kotlin
fun main() {
// Write your code here
}
___
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.