remove print statements from sieve, update gitignore, minor fix to test utils

This commit is contained in:
Arthur Lu
2025-03-04 06:24:13 +00:00
committed by root
parent 32ac22806c
commit 839e1b8bd7
3 changed files with 6 additions and 6 deletions

View File

@@ -18,13 +18,13 @@ class SieveCache(Cache):
self.hand = None
def print_cache_state(self):
print("Current cache state:")
#print("Current cache state:")
node = self.head
if not node:
print("Cache is empty.")
#print("Cache is empty.")
return
for _ in range(len(self.cache)):
print(f"Key: {node.key}, Value: {node.value}, Visited: {node.visited}")
#print(f"Key: {node.key}, Value: {node.value}, Visited: {node.visited}")
node = node.next
if node == self.head:
break