[LeetCode] Design Excel Sum Formula

1 · · May 1, 2022, 2:14 a.m.
631. Design Excel Sum Formula Design the basic function of Excel and implement the function of the sum formula. Implement the Excel class: Excel(int height, char width) Initializes the object with the height and the width of the sheet. The sheet is an integer matrix mat of size height x width with the row index in the range [1, height] and the column index in the range [‘A’, width]. All the values should be zero initially. void set(int row, char column, int val) Changes the value at mat[row][c...