Fantastic! We determine the index of the last element and store the element in lElem
. Then we put the element at index 0
in the last spot and lElem
in the pole position.
Close! We determine the index of the last element and store the element in lElem
. Then we put the element at index 0
in the last spot and lElem
in the pole position.