Light Mode
Dark Mode
Solution fails

Don't understand why this solution fails:

function replaceFirst(values: number[]): number[] {
    if (values.length) {
        values.push(values.shift(0))
    }

    return values;
}
Created: Sept. 13, 2022, 11:26 a.m.
Updated: Sept. 27, 2022, 1:28 a.m.
0
6
User avatar
alex.p