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.
- Host: GitHub
- URL: https://github.com/letsdeepchat/boolean-matrix-problem
- Owner: letsdeepchat
- Created: 2021-11-07T16:33:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-07T16:34:13.000Z (over 4 years ago)
- Last Synced: 2025-06-12T19:36:06.845Z (10 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files: