Kotlinlearncs.online LogoJava
Return to List

Solve: Fix 23

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given an IntArray with length 3, if there is a 2 in the array immediately followed by a 3, set the 3 element to 0. Return the changed array.

fun fix23(values: IntArray): IntArray {
return intArrayOf() // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: