Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,5 @@
maxss=: monad define
AS =. 0,; <:/~@i.&.> #\y
MX =. (= >./) AS +/ . * y
y #~ {. MX#AS
)

View file

@ -0,0 +1,2 @@
maxss _1 _2 3 5 6 _2 _1 4 _4 2 _1
3 5 6 _2 _1 4

View file

@ -0,0 +1 @@
maxs=: [:>./(0>.+)/\.

View file

@ -0,0 +1,2 @@
maxs _1 _2 3 5 6 _2 _1 4 _4 2 _1
15

View file

@ -0,0 +1,5 @@
maxSS=:monad define
sums=: (0>.+)/\. y
start=: sums i. max=: >./ sums
max (] {.~ #@] |&>: (= +/\) i. 1:) y}.~start
)

View file

@ -0,0 +1,4 @@
maxSS2=:monad define
start=. (i. >./) (0>.+)/\. y
({.~ # |&>: [: (i.>./@,&0) +/\) y}.~start
)