Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
csort =: monad define
|
||||
min =. <./y
|
||||
cnt =. 0 $~ 1+(>./y)-min
|
||||
for_a. y do.
|
||||
cnt =. cnt >:@{`[`]}~ a-min
|
||||
end.
|
||||
cnt # min+i.#cnt
|
||||
)
|
||||
|
|
@ -0,0 +1 @@
|
|||
csort=: (+/@(=/) # ]) >./ (] + 1 i.@+ -) <./
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
] a =. _3 + 20 ?@$ 10
|
||||
_2 _2 6 _1 1 6 _1 4 4 1 4 4 5 _3 5 3 0 _1 3 4
|
||||
|
||||
csort a
|
||||
_3 _2 _2 _1 _1 _1 0 1 1 3 3 4 4 4 4 4 5 5 6 6
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
csrt=:2 :0
|
||||
(m+i.n-m) (+/@(=/)~ # [) ]
|
||||
)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
csrt=:2 :0
|
||||
(+/@(=/) # ])&(m+i.n-m)
|
||||
)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(_3 csrt 17) a
|
||||
_3 _2 _2 _1 _1 _1 0 1 1 3 3 4 4 4 4 4 5 5 6 6
|
||||
Loading…
Add table
Add a link
Reference in a new issue