From 5eb29c4c3c4fef89ccde5086bf2474a8663efa3e Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Thu, 2 Jun 2022 22:44:35 -0400 Subject: [PATCH] Added docstring for clear() --- hash_map_oa.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hash_map_oa.py b/hash_map_oa.py index 4311f77..f9b32a2 100644 --- a/hash_map_oa.py +++ b/hash_map_oa.py @@ -224,9 +224,7 @@ class HashMap: index = (initial_index + quadratic_factor**2) % self._capacity def clear(self) -> None: - """ - TODO: Write this implementation - """ + """Clear the contents of the hash map without changing its capacity""" self._buckets = DynamicArray() self._size = 0