Initial commit
This commit is contained in:
commit
a1ddfdb7c0
14 changed files with 599 additions and 0 deletions
41
exercise_2/HAB02-A3-Template.TXT
Normal file
41
exercise_2/HAB02-A3-Template.TXT
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Gefordert: kommentiertes WHILE-Programm
|
||||
# Sie können weitere Hilfsfunktionen verwenden!
|
||||
# Namen:
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
########## HILFSFUNKTIONEN ##########
|
||||
|
||||
def binLength(n): # binLength(n: int) -> int:
|
||||
# ...
|
||||
return # ...
|
||||
|
||||
def binTestBit(n, i): # binTestBit(n: int, i: int) -> int:
|
||||
# ...
|
||||
return # ...
|
||||
|
||||
|
||||
|
||||
########## HAUPTFUNKTIONEN ########## (Namen und Signatur nicht ändern!)
|
||||
|
||||
def ListCreate(): # ListCreate() -> int:
|
||||
# ...
|
||||
return # Ausgabe ist Integer, KEINE LISTE
|
||||
|
||||
def ListGetLength(l): # ListGetLength(l: int) -> int:
|
||||
# ...
|
||||
return # Parameter und Ausgabe sind Integer, KEINE LISTEN
|
||||
|
||||
def ListGetElement(l, i): # ListGetElement(l: int, i: int) -> int:
|
||||
# ...
|
||||
return # Parameter und Ausgabe sind Integer, KEINE LISTEN
|
||||
|
||||
def ListAppendElement(l, e): # ListAppendElement(l: int, e: int) -> int:
|
||||
# ...
|
||||
return # Parameter und Ausgabe sind Integer, KEINE LISTEN
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue