[1,2] data-structures, maze #323

Merged
IvanBoy merged 7 commits from osininyai/2026-rff_mp:osininyai into develop 2026-05-30 11:28:50 +00:00
9 changed files with 0 additions and 5 deletions
Showing only changes of commit 2163ccd0aa - Show all commits

View File

@ -5,7 +5,6 @@ import csv
import codecs
def insert(lisst,name,phone):
#global lisst
if len(lisst)==0:
entry={"name":name,"phone":phone,"next":None}
lisst.append(entry)
@ -32,13 +31,11 @@ def insert(lisst,name,phone):
return lisst
def find(lisst, name):
#global lisst
if len(lisst)>0:
if lisst[0]["name"]==name:
return lisst[0]["phone"]
elif lisst[0]["next"]!=None:
nexxt=lisst[0]["next"]
#print(nexxt)
while nexxt["next"]!=None:
if nexxt["name"]==name:
return nexxt["phone"]
@ -50,7 +47,6 @@ def find(lisst, name):
def delete(lisst,name):
#global lisst
if len(lisst)>0:
if lisst[0]["name"]==name:
if lisst[0]["next"]!=None:
@ -128,7 +124,6 @@ def Shell(names,phones):
return names,phones
def list_all(lisst):
#global lisst
names=[]
phones=[]
if len(lisst)>0:

View File

Can't render this file because it has a wrong number of fields in line 9.