Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
7
Task/Combinations/APL/combinations-1.apl
Normal file
7
Task/Combinations/APL/combinations-1.apl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
comb←{(⍺=0)∨⍺=⍵:⌷⍉⍪⍳⍺ ⋄ (0,1+(⍺-1)∇ ⍵-1)⍪1+⍺ ∇ ⍵-1}
|
||||
4 comb 5
|
||||
0 1 2 3
|
||||
0 1 2 5
|
||||
0 1 4 5
|
||||
0 3 4 5
|
||||
2 3 4 5
|
||||
7
Task/Combinations/APL/combinations-2.apl
Normal file
7
Task/Combinations/APL/combinations-2.apl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
comb←{
|
||||
⍺{
|
||||
0=⍺:⊂⍬
|
||||
0=≢⍵:⍬
|
||||
((⊃⍵),¨(⍺-1)∇r),⍺∇r←1↓⍵
|
||||
}⍳⍵
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue