Dec 8, 2021
Hey, thanks for your solution and time, but I just tried to run this one, and it is only putting the values that are equals to the target in the middle and also overwriting some values in the list. I just used [20, 12, 3, 5, 10, 15, 10, 10, 6, 9, 12] and target = 10 then the output was [20, 12, 6, 9, 10, 10, 10, 20, 15, 12, 12].
Thanks again for your solution, and we know that there are multiple solutions for a problem. Have a great day.