MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / countPaths

Function countPaths

project_euler_problems/lattice paths/solution.js:25–27  ·  view source on GitHub ↗
(gridSize)

Source from the content-addressed store, hash-verified

23}
24
25function countPaths(gridSize) {
26 return Math.floor(factorial(gridSize * 2) / Math.pow(factorial(gridSize), 2));
27}
28
29console.log(countPaths(20));

Callers 1

solution.jsFile · 0.85

Calls 1

factorialFunction · 0.70

Tested by

no test coverage detected