develop #1

Open
FirsovAV wants to merge 1141 commits from UNN/2026-rff_mp:develop into develop
2 changed files with 21 additions and 0 deletions
Showing only changes of commit 5d94d3f44e - Show all commits

1
MininaVD/docs/Laba1.doc Normal file
View File

@ -0,0 +1 @@
ECHO is on.

View File

@ -0,0 +1,20 @@
Linked List Phone Book:
def ll_insert(head, name, phone):
new_node = {'name': name, 'phone' : phone, 'next': None}
if head is None:
return new_node
if head['name'] == name:
head['phone'] = phone
return head
current = head
while current['next'] is not None:
if current['next']['name'] == name:
current['next']['phone'] = phone
return head
current = current['next']
current['next'] = new_node
return head