mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-28 04:42:48 +08:00
build
This commit is contained in:
@ -1992,6 +1992,7 @@ comments: true
|
||||
var res = 0
|
||||
// 遞: 遞迴呼叫
|
||||
for (i in n downTo 0) {
|
||||
// 透過“入堆疊操作”模擬“遞”
|
||||
stack.push(i)
|
||||
}
|
||||
// 迴: 返回結果
|
||||
|
Reference in New Issue
Block a user