I did it without using a map, but I had to to the reverse shift at the end of each step. Here’s the crucial bit. I think I could have avoided that reverse shift by keeping each element as {original_pos, value}, but I was a bit lazy this morning ![]()
1 Like






















