MCPcopy Create free account
hub / github.com/Reaper622/DataStructure-Algorithm-TS / ClimbStairs

Function ClimbStairs

Algorithm/Recursion/ClimbStairs.js:10–17  ·  view source on GitHub ↗

* 假设你正在爬楼梯。需要 n 阶你才能到达楼顶。 * 每次你可以爬 1 或 2 个台阶,求有多少种方法到达楼顶 * 递归实现爬楼梯问题 * @param {number} n * @return {number}

(n)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Recursion.test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected