Anonymous user
Largest int from concatenated ints: Difference between revisions
Largest int from concatenated ints (view source)
Revision as of 11:45, 10 January 2016
, 8 years ago→{{header|Kotlin}}: Update Kotlin
m (→{{header|REXX}}: added/changed whitespace and comments, simplified an expression.) |
(→{{header|Kotlin}}: Update Kotlin) |
||
Line 741:
=={{header|Kotlin}}==
{{trans|C#}}
{{works with|Kotlin|
<lang kotlin>import java.util.Comparator
Line 747:
val xy = (x.toString() + y).toInt()
val yx = (y.toString() + x).toInt()
}
fun maxCat() {
fun findLargestSequence(array:
return array.
}
▲ val source1 = arrayOf(1, 34, 3, 98, 9, 76, 45, 4)
println(findLargestSequence(source1))
val source2 =
println(findLargestSequence(source2))
}</lang>
|