Neo is trying to hack the Matrix. He has a list of codes, but it is not in the correct order to crack the big machine. He must arrange the codes from longest to shortest.
Custom sort order for collection
Hacking the Matrix
Report a typo
Sample Input 1:
1234mom daddy4456 god hack meSample Output 1:
[daddy4456, 1234mom, hack, god, me]Write 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.