Solve: Array 123
Imported By: Geoffrey Challen
/ Version: 2021.5.0
Given an IntArray
, return true
if the sequence of numbers 1, 2, 3 appears in the array somewhere.
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 array123(values: IntArray): Boolean {
return false
}