Kotlinlearncs.online LogoJava
Return to List

Solve: Make 2

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given two IntArray, return a new array length 2 containing, as much as will fit, the elements from the first array followed by the elements from the second array. The arrays may be any length, including 0, but there will always be two or more elements available between them.

fun make2(
first: IntArray,
second: IntArray,
): IntArray {
return intArrayOf() // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: