Don't understand why this solution fails:
function replaceFirst(values: number[]): number[] {
if (values.length) {
values.push(values.shift(0))
}
return values;
}
Created at: 2022/09/13 11:26; Updated at: 2022/09/27 01:28
The question is resolved.