Solve: Middle Way
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Given two IntArray
s, each with length 3, return a new array with length two containing their middle elements.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.fun middleWay(
first: IntArray,
second: IntArray,
): IntArray {
return intArrayOf()
}