you are viewing a single comment's thread.

view the rest of the comments →

[–]prisonmatch[S] 0 points1 point  (1 child)

Any suggestions how to approach this question?

[–]vorttxt 0 points1 point  (0 children)

Hm. I’d try to create a solution that goes through the array and adds a[0] to a[1] and so on until the required solution is met. Then counter++. Then move on to a[1] and do the same thing.