Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Push & shift solution in Uncategorized category for Replace First by Shmyaka
function replaceFirst(v: number[]): number[] {
if (!v.length) return v;
v.push(v.shift());
return v;
}
Dec. 1, 2020