I'm the biggest one!

Report a typo

You have one string in standard input — it is a sequence of numbers and strings split by spaces. Filter the numbers only, create a list of Int from this string and return the max element or null if the list is empty. Tip: you have to check the characters or use the toIntOrNull() function. You can read about this function in the documentation.

Sample Input 1:

12 4.00 Kraken pull push 43 12345 cat power

Sample Output 1:

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

Create a free account to access the full topic