YAPC::EU 2018 Glasgow Update!

This commit is contained in:
Ingy döt Net 2018-08-17 15:15:24 +01:00
parent 22f33d4004
commit 4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions

View file

@ -1,4 +1,4 @@
proc maxsum(s): int =
proc maxsum(s: openArray[int]): int =
var maxendinghere = 0
for x in s:
maxendinghere = max(maxendinghere + x, 0)

View file

@ -1,7 +1,4 @@
# Project : Greatest subsequential sum
# Date : 2017/09/26
# Author : Gal Zsolt (~ CalmoSoft ~)
# Email : <calmosoft@gmail.com>
aList1 = [0, 1, 2, -3, 3, -1, 0, -4, 0, -1, -4, 2]
see "[0, 1, 2, -3, 3, -1, 0, -4, 0, -1, -4, 2] -> " + sum(aList1) + nl