Anonymous user
Largest int from concatenated ints: Difference between revisions
→{{header|Kotlin}}: Update for Kotlin M12
(→{{header|Kotlin}}: Update for Kotlin M12) |
|||
Line 638:
=={{header|Kotlin}}==
{{trans|C#}}
{{works with|Kotlin|M12}}
<lang kotlin>import java.util.Comparator
Line 651 ⟶ 652:
} // Not using specialized IntArray as it does not have sortBy
val source1 =
println(findLargestSequence(source1))
val source2 =
println(findLargestSequence(source2))
}</lang>
|