Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
function
countPaths(gridSize) {
26
return
Math.floor(factorial(gridSize * 2) / Math.pow(factorial(gridSize), 2));
27
}
28
29
console.log(countPaths(20));
Callers
1
solution.js
File · 0.85
Calls
1
factorial
Function · 0.70
Tested by
no test coverage detected