Skip to content
Ravnary
A Knowledge Platform
Categories
Learn
Cheatsheets
Paths
Favourites
Review
Community
Colour theme
Light
Dark
System
Learn
Coding Interview Patterns
Array and Number Patterns
Prefix Sums
Quiz
Q 01
/ 04
Intermediate
Question 1 of 4. 0 correct, 0 incorrect.
A prefix array p has length n + 1 with p[0] = 0. Which expression gives the sum of a[i] to a[j] inclusive?
p[j] − p[i]
p[j + 1] − p[i]
p[j] − p[i − 1]
Check answer
Home
Learn
Paths
Saved
Community