package ii_collections

import util.TODO

fun todoTask24(): Nothing = TODO(
    """
        Task 24.
        The function should behave the same as '_24_JavaCode.doSomethingStrangeWithCollection'
        Replace all invocations of 'todoTask9()' with the appropriate code.
    """,
        references = { c: Collection<String> -> _24_JavaCode().doSomethingStrangeWithCollection(c) }
)

fun doSomethingStrangeWithCollection(collection: Collection<String>): Collection<String>? {
    val groupsByLength = collection. groupBy { s -> todoTask24() }

    val maximumSizeOfGroup = groupsByLength.values. map { group -> todoTask24() }. max()

    return groupsByLength.values. firstOrNull { group -> todoTask24() }
}


package ii_collections

import util.TODO

fun todoTask24(): Nothing = TODO(
    """
        Task 24.
        The function should behave the same as '_24_JavaCode.doSomethingStrangeWithCollection'
        Replace all invocations of 'todoTask24()' with the appropriate code.
    """,
        references = { c: Collection<String> -> _24_JavaCode().doSomethingStrangeWithCollection(c) }
)

fun doSomethingStrangeWithCollection(collection: Collection<String>): Collection<String>? {
    val groupsByLength = collection. groupBy { s -> todoTask24() }

    val maximumSizeOfGroup = groupsByLength.values. map { group -> todoTask24() }. max()

    return groupsByLength.values. firstOrNull { group -> todoTask24() }
}


Fix typo in task description
Fix typo in task description
ncruz8991/kotlin-koans,goodwinnk/workshop-jb,chickenbane/workshop-jb,thatadamedwards/kotlin-koans,jensim/kotlin-koans,sunghwanJo/workshop-jb,hughandrewarch/kotlin-koans,enchf/kotlin-koans,mvaldez/kotlin-examples,TheCoinTosser/Kotlin-Koans---Solutions,nakih/kotlin-koans,sleberknight/kotlin-koans,chrisdoc/kotlin-koans,Carighan/kotlin-koans,Riccorl/kotlin-koans,rpandey1234/kotlin-koans,sarvex/kotlin-koans,johnnywey/kotlin-koans,sarvex/workshop-jb,usommerl/kotlin-koans,jensim/kotlin-koans,chrisdoc/kotlin-koans,annekellyc/kotlin-koans,vitaliy555/stdkotlin,usommerl/kotlin-koans,jvsegarra/kotlin-koans,sarvex/workshop-jb,sarvex/kotlin-koans,zlsun/kotlin-koans,TheCoinTosser/Kotlin-Koans---Solutions,kozake/kotlin-koans,thatadamedwards/kotlin-koans,zlsun/kotlin-koans,myoffe/kotlin-koans,JetBrains/workshop-jb,eviera/kotlin-koans,Carighan/kotlin-koans,vitaliy555/stdkotlin,wickedwukong/kotlin-koans,johnnywey/kotlin-koans,jvsegarra/kotlin-koans,sleberknight/kotlin-koans,timbotetsu/kotlin-koans,xcerx/kotlin-koans,trmollet/tuto_kotlin,jasonmfehr/kotlin-koans,myoffe/kotlin-koans,eviera/kotlin-koans,jasonmfehr/kotlin-koans,zyallday/kotlin-koans,trmollet/tuto_kotlin,enchf/kotlin-koans,wickedwukong/kotlin-koans,Yusuzhan/kotlin-koans,AlexKrupa/kotlin-koans,ncruz8991/kotlin-koans,JetBrains/workshop-jb,hughandrewarch/kotlin-koans,mvaldez/kotlin-examples,rpandey1234/kotlin-koans,zyallday/kotlin-koans,timbotetsu/kotlin-koans,nakih/kotlin-koans,SteveChalker/kotlin-koans,sunghwanJo/workshop-jb,xcerx/kotlin-koans,ian-pi/kotlin-koans,Kotlin/kotlin-koans,Yusuzhan/kotlin-koans,SteveChalker/kotlin-koans,AlexKrupa/kotlin-koans,FaustXVI/kotlin-koans,verhoevenv/kotlin-koans,annekellyc/kotlin-koans,ian-pi/kotlin-koans,kozake/kotlin-koans,verhoevenv/kotlin-koans,FaustXVI/kotlin-koans,Kotlin/kotlin-koans,goodwinnk/workshop-jb,chickenbane/workshop-jb,Riccorl/kotlin-koans