public static final class Subsets.KSubsetsIterable
extends java.lang.Object
implements java.util.Iterator<int[]>, java.lang.Iterable<int[]>
Constructor and Description |
---|
KSubsetsIterable(int len,
int parts) |
Modifier and Type | Method and Description |
---|---|
static long |
binomial(long n,
long k) |
boolean |
hasNext() |
java.util.Iterator<int[]> |
iterator() |
int[] |
next() |
void |
remove() |
public int[] next()
next
in interface java.util.Iterator<int[]>
public static long binomial(long n, long k)
public boolean hasNext()
hasNext
in interface java.util.Iterator<int[]>
public void remove()
remove
in interface java.util.Iterator<int[]>
public java.util.Iterator<int[]> iterator()
iterator
in interface java.lang.Iterable<int[]>