Kotlinlearncs.online LogoJava
Return to List

Homework: Swap Ends

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given an non-null int[] of length at least one, swap the first and last elements. Return the modified array.

Related Lessons

Stuck? You may find these lessons helpful: