public final class PascalsTriangle extends Object
Modifier and Type | Method and Description |
---|---|
static double |
nCr(int n,
int r)
The nCr function returns the number of ways r things can be chosen from a set of size n.
|
static void |
reset()
Resets the internal array to the initial state to free up memory.
|
public static double nCr(int n, int r)
public static void reset()
Copyright © 2016. All rights reserved.