Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
prm2
Commits
ad5685cf
Commit
ad5685cf
authored
Apr 29, 2021
by
Martin Mareš
Browse files
Rekurze: Překlep
parent
e7fdf75b
Changes
1
Hide whitespace changes
Inline
Side-by-side
07-rekurze/gen-01.py
View file @
ad5685cf
...
...
@@ -14,7 +14,7 @@ def gen01(n, p=[]):
gen01
(
n
-
1
,
p
+
[
1
])
### V předchozím řešení se v každém volání funkce kopíruje seznam až n prvků,
### takže i vnitřní vrcholy stromu rekurze mají line
a
rní složitost. Toho se můžeme
### takže i vnitřní vrcholy stromu rekurze mají line
á
rní složitost. Toho se můžeme
### zbavit, když prefix místo v argumentu funkce předáváme v proměnné sdílené
### všemi instancemi funkce.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment