← ALL NOTES
Array

2906. Construct Product Matrix

Given an n×m grid, build a product matrix p where p[i][j] = the product of all grid elements except grid[i][j], taken modulo 12345. The classic "product of all but self," but under the composite…

Loading…