Hello to All,
I am trying to solve the following situation. There is array IN (NxM), size my vary. My input is
IN= 9 -1 9 -1 -1 9 9 9 9 9 9 10 9 -1 -1 9 9 9 10 9 9 9 10 10 -1 9 -1 9 9 9 -1 9 -1 9 9 -1 -1 9 9 9
Output supposes to look like this:
9 -1 9 -1 -1 9 9 9 9 9 9 10 9 -1 -1 9 9 9 10 9 9 9 10 0 -1 9 -1 9 9 9 -1 9 -1 9 9 0 -1 9 9 9
Only numbers 10 and -1 can not have repeated values, if they are repeated, they should be changed to zero. How could it be achieved?
Best Answer