+ 1
I need a program to replace duplicate value with 0 in matrix form .
How to make suggest me logics .
1 Answer
+ 2
Iterate over the matrix and count the number(how many times the element gets repeated) whenever you encounter the number for the second time replace that with zero... Hope it works