Kotlinlearncs.online LogoJava
Return to List

Solve: Same First Last

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given an IntArray, return true if the array is length 1 or more and the first element and the last element are equal.

fun sameFirstLast(values: IntArray): Boolean {
return false // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: