Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
def step_up1():
|
||||
"""Straightforward implementation: keep track of how many level we
|
||||
need to ascend, and stop when this count is zero."""
|
||||
deficit = 1
|
||||
while deficit > 0:
|
||||
if step():
|
||||
deficit -= 1
|
||||
else:
|
||||
deficit += 1
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
def step_up2():
|
||||
"No numbers."
|
||||
while not step():
|
||||
step_up2() # undo the fall
|
||||
Loading…
Add table
Add a link
Reference in a new issue