3 lines
72 B
Text
3 lines
72 B
Text
def comb(m, n)
|
|
(0...n).to_a.each_combination(m) { |p| puts(p) }
|
|
end
|
def comb(m, n)
|
|
(0...n).to_a.each_combination(m) { |p| puts(p) }
|
|
end
|