Skip to content

Commit d0ecd57

Browse files
authored
Update SumOfAllElementsInASubMatrixInConstantTime.java
1 parent b28c177 commit d0ecd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DynamicProgramming/SumOfElementsInASubMatrixConstantTime/SumOfAllElementsInASubMatrixInConstantTime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void fillSumMatrix(int A[][]){
4343
}
4444

4545
public int computeQueries(int p, int q, int r, int s){
46-
//(p,q) --> top left and (r,s) --> right left
46+
//(p,q) --> top left and (r,s) --> bottom right
4747

4848
int result = sum[r][s];
4949

0 commit comments

Comments
 (0)