MCPcopy Index your code
hub / github.com/Tiwarishashwat/InterviewCodes / getValue

Method getValue

SubrectangleQueries.java:14–24  ·  view source on GitHub ↗
(int row, int col)

Source from the content-addressed store, hash-verified

12 }
13
14 public int getValue(int row, int col) {
15 int result = arr[row][col];
16 for(int a[]:temp)
17 {
18 if(row>=a[0] && row<=a[2] && col>=a[1] && col<=a[3])
19 {
20 result=a[4];
21 }
22 }
23 return result;
24 }
25}
26/**
27 * Your SubrectangleQueries object will be instantiated and called as such:

Callers 8

bookMethod · 0.80
topViewMethod · 0.80
tupleSameProductMethod · 0.80
bottomViewMethod · 0.80
countOccurenceMethod · 0.80
uncommonFromSentencesMethod · 0.80
countDuplicatesMethod · 0.80
secFrequentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected