Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for [old] Even the Last by bryukh
"use strict";
function evenLast(ar) {
let acc = 0;
for (let i = 0, L = ar.length; i < L; i += 2) {
acc += ar[i];
}
return ar.length ? acc * ar[ar.length-1] : 0;
}
June 25, 2016
Comments: