[1][2] Labs #338

Merged
VladimirGub merged 32 commits from skorohodovsa/2026-rff_mp:main into develop 2026-05-30 11:56:43 +00:00
Showing only changes of commit 88bcf8a761 - Show all commits

View File

@ -12,7 +12,7 @@ def create_linked_list(data: list[dict]) -> dict:
for value in data[1:]:
current['next'] = create_node(**value)
current = current['next']
return base
@ -20,8 +20,15 @@ def ll_insert():
pass
def ll_find():
pass
def ll_find(head: dict, name: str) -> str | None:
if head is None:
raise ValueError("Словарь пустой!")
current = head
while current['next'] is not None:
if current['name'] == name:
return current['name']
return None
def ll_delete():