Secret code to save the the world

Report a typo

Ethan Hunt is ready for another "Mission: Impossible". To disable a nuclear weapon, he must type the correct code. He only knows that the code is obtained in the following way: "using the secret operator in a list of strings, you must obtain true if any words' length exceeds the limit indicated with the in operator". Please help Ethan type the final length and save us again.

val listOfWords = listOf("expetum", "axio", "lithigum", "anima", "milonga")
println(8 in listOfWords)

Sample Input 1:

expetum axio lithigum magnum anima

Sample Output 1:

true
Write a program in Kotlin
// define the function
/*?*/(limit: Int): Boolean {
// and write your code here
}
___

Create a free account to access the full topic