Fundamentals/Storage Optimization
← PrevNext →
Given an n by m grid and arrays of horizontal cuts and vertical cuts (1-indexed positions), return the area of the largest remaining sub-grid after all cuts are applied.