Find number of endless points - GeeksforGeeks
Given a binary N x N matrix, we need to find the total number of matrix positions from which there is an endless path. Any position (i, j) is said to have an endless path if and only if all of the next positions in its row(i) and its column(j) should have value 1. If any position next to (i,j) either in row(i) or in column(j) will have 0 then position (i,j) doesn't have any endless path.
Read full article from Find number of endless points - GeeksforGeeks
No comments:
Post a Comment