Kotlinlearncs.online LogoJava
Return to List

Homework: Make Ends

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given a non-null int[], return a new int[] of length 2 containing the first and last elements from the original array. The original array will be length 1 or more.

Related Lessons

Stuck? You may find these lessons helpful: