FINISH 2
исправлены ошибки в написании, которые мешали запуску кода
This commit is contained in:
parent
52a5aa8fc6
commit
e677d750f7
|
|
@ -51,7 +51,7 @@ def ll_list_all(head):
|
||||||
entries.sort(key=lambda x: x[0])
|
entries.sort(key=lambda x: x[0])
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
def _hash(name, bucket_count):
|
def _hash(name, bucket_count):
|
||||||
h = 0
|
h = 0
|
||||||
for ch in name:
|
for ch in name:
|
||||||
h = (h * 31 + ord(ch)) % bucket_count
|
h = (h * 31 + ord(ch)) % bucket_count
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user