Matrix Diagonal

Given a coordinate (x,y) in a matrix of 0’s, make all the diagonals element through (x,y) as 1 in that matrix.

Author: Amit Khandelwal 1
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer