Available question text
Find a right/down path from the top-left to bottom-right that maximizes the product of visited cells, returning the maximum non-negative product modulo 1e9+7 (or -1 if all products are negative). Because cells can be negative or zero, this is solved with DP that tracks both the maximum and minimum product at each cell to handle sign flips.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1594. Maximum Non Negative Product in a Matrix
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source