Solve: Common End
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Given two non-null
int[]
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.boolean commonEnd(int[] first, int[] last) {
return false;
}