Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
maxss=: monad define
|
||||
AS =. 0,; <:/~@i.&.> #\y
|
||||
MX =. (= >./) AS +/ . * y
|
||||
y #~ {. MX#AS
|
||||
)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
maxss _1 _2 3 5 6 _2 _1 4 _4 2 _1
|
||||
3 5 6 _2 _1 4
|
||||
|
|
@ -0,0 +1 @@
|
|||
maxs=: [:>./(0>.+)/\.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
maxs _1 _2 3 5 6 _2 _1 4 _4 2 _1
|
||||
15
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
maxSS=:monad define
|
||||
sums=: (0>.+)/\. y
|
||||
start=: sums i. max=: >./ sums
|
||||
max (] {.~ #@] |&>: (= +/\) i. 1:) y}.~start
|
||||
)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
maxSS2=:monad define
|
||||
start=. (i. >./) (0>.+)/\. y
|
||||
({.~ # |&>: [: (i.>./@,&0) +/\) y}.~start
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue