Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Algorithm
STEP 1: START
STEP 2: DEFINE rows as m, cols as n, size
STEP 3: SET count = 0
STEP 4:INITIALIZE row and col of matrix
STEP 5: REPEAT STEP 9 to STEP 10 UNTIL i<rows
//for(i=0;i<rows; i++)
STEP 6: REPEAT STEP 10 UNTIL j<cols
//for(j=0;j<cols; j++)
STEP 7: if(a[i][j]==0) then count++
STEP 8: size = m*n
STEP 9: if(count>size/2) then PRINT "Yes" else PRINT "No"
STEP 10: END