Kotlinlearncs.online LogoJava
Return to List

Solve: Middle Way

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given two IntArrays, each with length 3, return a new array with length two containing their middle elements.

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

Related Lessons

Stuck? You may find these lessons helpful: