mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
Add Go codes to docs, including
the chapter of stack and queue, the chapter of tree.
This commit is contained in:
@@ -520,7 +520,7 @@ $$
|
||||
```python title="space_complexity_types.py"
|
||||
""" 线性阶(递归实现) """
|
||||
def linearRecur(n):
|
||||
print("递归 n = ", n)
|
||||
print("递归 n =", n)
|
||||
if n == 1: return
|
||||
linearRecur(n - 1)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user