Solve: Common End
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Given two IntArray
s, return true
if they have the same first element or they have the same last
element.
Both arrays will have length at least one.
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 commonEnd(
first: IntArray,
last: IntArray,
): Boolean {
return false
}