Kotlinlearncs.online LogoJava
Return to List

Solve: Same First Last

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given a non-null int[], returntrue` if the array is length 1 or more and the first element and the last element are equal.

boolean sameFirstLast(int[] values) {
return false; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: