Ref : complete solution, How it will work for following case? 101 111 111 At las

Ref : complete solution, How it will work for following case?
101
111
111
At last it’ll set all the element in the first row as zero but what about col2?

[0 0 0 ] [1 0 1 ] [1 0 1 ] is the output that the complete solution gives. You might want to dry run the code and find out what its doing. Also, read the solution approach.

Anshuman Singh I did and I got
000
111
111
can you please say in which step [1,1] and [2,1] are set to zero?

Click here to start solving coding interview questions