Problem 1594 · Medium

Maximum Non Negative Product in a Matrix

Track both the largest and the smallest product that reaches each cell, since two negatives can make a large positive.

Open the interactive visualisation