public final class PascalsTriangle extends Object
| Constructor and Description |
|---|
PascalsTriangle() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
reset()
Resets the internal array to the initial state to free up memory.
|
public double nCr(int n,
int r)
public void reset()
Copyright © 2022. All rights reserved.