1594. Maximum Non Negative Product in a Matrix
Description
**Input:** grid = [[-1,-2,-3],
[-2,-3,-3],
[-3,-3,-2]]
**Output:** -1
**Explanation:** It's not possible to get non-negative product in the path from (0, 0) to (2, 2), so return -1.**Input:** grid = [[**1**,-2,1],
[**1**,**-2**,1],
[3,**-4**,**1**]]
**Output:** 8
**Explanation:** Maximum non-negative product is in bold (1 * 1 * -2 * -4 * 1 = 8).ac
Previous1593. Split a String Into the Max Number of Unique SubstringsNext1595. Minimum Cost to Connect Two Groups of Points
Last updated