From 72c5afc294b34513f5722e6e8939d8eb15590fac Mon Sep 17 00:00:00 2001 From: Udhay <72250606+Udhay-Brahmi@users.noreply.github.com> Date: Sat, 12 Dec 2020 09:18:09 +0530 Subject: [PATCH] Create Boolean Matrix --- Boolean Matrix | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Boolean Matrix diff --git a/Boolean Matrix b/Boolean Matrix new file mode 100644 index 000000000..ab21cdb6a --- /dev/null +++ b/Boolean Matrix @@ -0,0 +1,70 @@ +// { Driver Code Starts + +#include +using namespace std; + + // } Driver Code Ends + + + +class Solution +{ +public: + void booleanMatrix(vector > &A) + { + // code here + int row[A.size()]={0},col[A[0].size()]={0}; + for(int i=0;i>t; + while(t--) + { + int row, col; + cin>> row>> col; + vector > matrix(row); + for(int i=0; i>matrix[i][j]; + } + } + + Solution ob; + ob.booleanMatrix(matrix); + + + for (int i = 0; i < row; ++i) + { + for (int j = 0; j < col; ++j) + { + cout<