Skip to content

Re test#13

Open
cutenti wants to merge 2 commits intomainfrom
reTest
Open

Re test#13
cutenti wants to merge 2 commits intomainfrom
reTest

Conversation

@cutenti
Copy link
Owner

@cutenti cutenti commented Dec 20, 2025

No description provided.

Copy link

@Godrik0 Godrik0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • -3 балла за put
    Итого: 22/25

def put(self, key, value):
index = self._hash(key)
table = self.hash_table[index]
if key not in table:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

table -- это список кортежей, а key -- строка, поэтому проверка key not in table всегда будет True, из-за чего не работает обновление по ключу, метод просто будет добавлять новый кортеж.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants