public class BigIntegerDerangements extends BigIntegerIndexedSpliterator<int[],BigIntegerDerangements>
LongDerangements
.Modifier and Type | Field and Description |
---|---|
static int |
MAX_LENGTH |
Constructor and Description |
---|
BigIntegerDerangements(int length)
Constructs derangements of
length elements |
Modifier and Type | Method and Description |
---|---|
static java.math.BigInteger |
subfactorial(int n) |
bigCount, characteristics, count, estimateSize, forEachRemaining, getFence, getIndex, parallelStream, shuffle, skip, skip, stream, tryAdvance, trySplit, withAdditionalCharacteristics, withShuffler, withValueSupplier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComparator, getExactSizeIfKnown, hasCharacteristics
ordered, shuffle
public static final int MAX_LENGTH
public BigIntegerDerangements(int length)
length
elementspublic static java.math.BigInteger subfactorial(int n)
java.lang.IllegalArgumentException
- if n
is negative or too big (> 20000)