Initial commit

This commit is contained in:
Never Gude 2026-04-30 16:08:36 +02:00
commit a1ddfdb7c0
14 changed files with 599 additions and 0 deletions

View 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