2.0.2 • Published 5 years ago
permutation-and-combination v2.0.2
let result = require("permutation-and-combination")
// to retrieve no of combination (n and r)
//n objects taken r at a time
result.combination(5,2)
// will return 10
// to retrieve no of permutation (n and r)
//n objects taken r at a time
result.permutation(5,2)
// will return 20