Given a matrix and two corner coordinates, return the sum of every number in the rectangle they span — fast, for many queries.
Given a matrix and two corner coordinates, return the sum of every number in the rectangle they span — fast, for many queries.
The discussion opens with the full question.