Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Dr_Emann
· 5y ago · 0 comments
And for move to front, why not `a[..i+1].rotate_right(1);`, rather than moving to the back and then shifting everything?
Comments
[–]
Measter
5y ago
Uh... because I'd been up for 20 hours and by brain fixated on a weird way to do it?
Don't program when tired, kids.