Class SubrectangleQueries
java.lang.Object
g1401_1500.s1476_subrectangle_queries.SubrectangleQueries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getValue
(int row, int col) void
updateSubrectangle
(int row1, int col1, int row2, int col2, int newValue)
-
Constructor Details
-
SubrectangleQueries
public SubrectangleQueries(int[][] rectangle)
-
-
Method Details
-
updateSubrectangle
public void updateSubrectangle(int row1, int col1, int row2, int col2, int newValue) -
getValue
public int getValue(int row, int col)
-