An open API service indexing awesome lists of open source software.

https://github.com/letsdeepchat/boolean-matrix-problem

Boolean Matrix Problem You are given a matrix Mat of m rows and n columns. The matrix is boolean so the elements of the matrix can only be either 0 or 1. Now, if any row of the matrix contains a 1, then you need to fill that whole row with 1. After doing the mentioned operation, you need to print the modified matrix. Input The first line of contains m and n denoting number of rows and number of columns. Then next m lines contain n elements denoting the elements of the matrix.
https://github.com/letsdeepchat/boolean-matrix-problem

Last synced: about 2 months ago
JSON representation

Boolean Matrix Problem You are given a matrix Mat of m rows and n columns. The matrix is boolean so the elements of the matrix can only be either 0 or 1. Now, if any row of the matrix contains a 1, then you need to fill that whole row with 1. After doing the mentioned operation, you need to print the modified matrix. Input The first line of contains m and n denoting number of rows and number of columns. Then next m lines contain n elements denoting the elements of the matrix.

Awesome Lists containing this project