PROSUM -Practice(easy)

Can this be solved in less than O(n) ?
if so please explain how it can be done ?

1 Like

I think no, even the the fastest solution submissions are using loops.

1 Like

ok thanks :slight_smile:

//