Also the order is inverted now.
I guess you could invert the swapback array? Is that possible?
You’d have to ìnsert at the first index which is very expensive since it requires shifting the entire array, so not worth it.
2 Likes