I guess zeros are not included as common elements.
Yes. Seems to be a somewhat "ill-posed" problem...
What does "they share a common row, column entry" mean?
I think it should be a non-zero common row, column entry.
Just consider the problem to be "Is there any i, j such that A(i,j) == B(i,j) == 1"
I guess it means intersection of arrays, literally.
Re-wording is needed for this problem. Here is how I interpreted the problem:
1. "common row, column entry" means a same value at the same row-column location
2. zeros don't count. You need to check for non-zeros...
Project Euler: Problem 2, Sum of even Fibonacci
870 Solvers
Determine Whether an array is empty
650 Solvers
Return a list sorted by number of consecutive occurrences
177 Solvers
MATCH THE STRINGS (2 CHAR) very easy
251 Solvers
2269 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!