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.
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 fix23(values: IntArray): IntArray {
return intArrayOf()
}