Problem 2234. Find and replace the zero array in a matrix
40.68% Correct | 59.32% Incorrect
Last Solution submitted on Jan 07, 2023
Show 2 older comments
J.R.! Menzinger on 4 Mar 2014
I think you want to write A and not x:
Swapnali Gujar on 4 Mar 2014
test case #2 and 3 should be corrected. Instead of x, it should be A
Jon on 4 Mar 2014
What elements do you consider the "surrounding arrays"?
J-G van der Toorn on 4 Mar 2014
Surrounding arrays apparently are the elements right above, below, left, and right the zero elements. Found out by reverse engineering. The x is still a mystery.
Jean-Marie Sainthillier on 8 Mar 2014
More tests please. A lot of solutions assume that 0 can't be in the first (or last) column.
Problem Recent Solvers43
Get the area codes from a list of phone numbers
Given a matrix, swap the 2nd & 3rd columns
The sum of the numbers in the vector
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!