Question: Given a two - dimensional inter matrix, 0 represents air and 1 represents cargo. Use the lowest row as ground to find the column where

Given a two-dimensional inter matrix, 0 represents air and 1 represents cargo. Use the lowest row as ground to find the column where cargo is hanging.
[000]
[111]
[101]
output is [1]1 means there is a dangling item in the 1st column
Followup: If the goods are sticky, they will stick to the goods above, below,
left, and right and will not fall down.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!