YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
3
Task/Combinations/Crystal/combinations-1.crystal
Normal file
3
Task/Combinations/Crystal/combinations-1.crystal
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
def comb(m, n)
|
||||
(0...n).to_a.each_combination(m) { |p| puts(p) }
|
||||
end
|
||||
10
Task/Combinations/Crystal/combinations-2.crystal
Normal file
10
Task/Combinations/Crystal/combinations-2.crystal
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[0, 1, 2]
|
||||
[0, 1, 3]
|
||||
[0, 1, 4]
|
||||
[0, 2, 3]
|
||||
[0, 2, 4]
|
||||
[0, 3, 4]
|
||||
[1, 2, 3]
|
||||
[1, 2, 4]
|
||||
[1, 3, 4]
|
||||
[2, 3, 4]
|
||||
Loading…
Add table
Add a link
Reference in a new issue