Data Structures19 sections · 729 units
Open in CourseQuiz: Histogram
Boundary calculation
Check Your Understanding
In the histogram problem, when we pop index j at position i, why is the right boundary i-1 and not i?
- A.Because we're using 0-indexed arrays
- B.Because we already processed position i
- C.Because bar i is shorter and can't be included in the rectangle
- D.It's actually i, not i-1