mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 10:46:29 +08:00
build
This commit is contained in:
parent
b26086fa35
commit
2adf13adf4
2 changed files with 3 additions and 3 deletions
|
@ -1505,7 +1505,7 @@ status: new
|
|||
=== "JS"
|
||||
|
||||
```javascript title="recursion.js"
|
||||
/* 递归转化为迭代 */
|
||||
/* 使用迭代模拟递归 */
|
||||
function forLoopRecur(n) {
|
||||
// 使用一个显式的栈来模拟系统调用栈
|
||||
const stack = [];
|
||||
|
@ -1528,7 +1528,7 @@ status: new
|
|||
=== "TS"
|
||||
|
||||
```typescript title="recursion.ts"
|
||||
/* 递归转化为迭代 */
|
||||
/* 使用迭代模拟递归 */
|
||||
function forLoopRecur(n: number): number {
|
||||
// 使用一个显式的栈来模拟系统调用栈
|
||||
const stack: number[] = [];
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
--md-default-fg-color: #adbac7;
|
||||
--md-default-bg-color: #22272e;
|
||||
|
||||
--md-code-bg-color: #2D333B;
|
||||
--md-code-bg-color: #1D2126;
|
||||
--md-code-fg-color: #adbac7;
|
||||
|
||||
--md-accent-fg-color: #aaa;
|
||||
|
|
Loading…
Reference in a new issue