Class: ArrayPartition::Partitions

Inherits:
Object
  • Object
show all
Defined in:
lib/array_partition/partitions.rb

Overview

Partitions a set of size n into no more than k blocks.

Class Method Summary collapse

Class Method Details

.partitions(n, k) ⇒ Object



7
8
9
# File 'lib/array_partition/partitions.rb', line 7

def self.partitions(n,k)
  rec_partition(n,k)
end