Merge pull request #927 from him2312/patch-1

Update solution.md
This commit is contained in:
Ilya Kantor 2019-04-21 07:52:02 +03:00 committed by GitHub
commit 77581bc049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,8 +29,8 @@ For instance, for `[-1, 2, 3, -9, 11]`:
-9 -9
-9 + 11 -9 + 11
// Starting from -11 // Starting from 11
-11 11
``` ```
The code is actually a nested loop: the external loop over array elements, and the internal counts subsums starting with the current element. The code is actually a nested loop: the external loop over array elements, and the internal counts subsums starting with the current element.