Cody

Problem 924. intersection of matrices

Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identical size.

Examples:

Inputs A = [1     0     0     0     0
            0     1     0     0     0
            0     0     1     0     0
            0     0     0     1     0
            0     0     0     0     1 ] 
   and B = [0     1     0     0     0
            0     0     1     0     0
            0     0     0     1     0
            0     0     0     0     1
            1     0     0     0     0 ]
Output tf is false
Inputs A = [1     1     1     0     1
            1     1     1     1     0
            0     1     1     1     1
            1     0     1     1     1
            1     1     0     1     1 ]
   and B = [0     1     0     0     0
            1     0     0     0     0
            0     0     0     0     1
            0     0     0     1     0
            0     0     1     0     0]

Output tf is true

Solution Stats

48.45% Correct | 51.55% Incorrect
Last solution submitted on Aug 20, 2019

Problem Comments

Solution Comments

Recent Solvers197

Suggested Problems