From e573f96654ba6ccc4d75382b02ac62209b8f49cd Mon Sep 17 00:00:00 2001 From: Siyu Wang <siyukw@cs.washington.edu> Date: Tue, 8 Oct 2019 11:42:06 -0700 Subject: [PATCH] Add restrictions on iterator --- src/datastructures/dictionaries/ChainingHashTable.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/datastructures/dictionaries/ChainingHashTable.java b/src/datastructures/dictionaries/ChainingHashTable.java index 1123bd5..bc566da 100644 --- a/src/datastructures/dictionaries/ChainingHashTable.java +++ b/src/datastructures/dictionaries/ChainingHashTable.java @@ -21,6 +21,9 @@ import cse332.interfaces.misc.Dictionary; * 6. We suggest you hard code some prime numbers. You can use this * list: http://primes.utm.edu/lists/small/100000.txt * NOTE: Do NOT copy the whole list! + * 7. When implementing your iterator, you should NOT copy every item to another + * dictionary/list and return that dictionary/list's iterator. + */ public class ChainingHashTable<K, V> extends DeletelessDictionary<K, V> { private Supplier<Dictionary<K, V>> newChain; -- GitLab