Null or min?

Report a typo

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.

Sample Input 1:

parrot ram rat pig cat frog wolf dog monkey fox

Sample Output 1:

cat
Write a program in Kotlin
fun main() {
// Write your code here
}
___

Create a free account to access the full topic