I have a list of numbers that repeats multiple times like this;
numbers = [2,3,1,2,1,3,3,1,2]
My goal is to increase each repeated number by 10 every time it appears. Therefore, the updated list should look like this;
updated_numbers = [2,3,1,12,11,13,23,21,22]
It's important to note that the order of the numbers in the list must stay the same.
This example only shows a small portion of the actual list, which contains repetitive sequences of numbers.
If you have any suggestions on how to achieve this task efficiently, I would greatly appreciate it.