diff --git a/src/datastructures/dictionaries/ChainingHashTable.java b/src/datastructures/dictionaries/ChainingHashTable.java index 1123bd54e3cb91397a0b9f7b4f5f39370f548e02..bc566dad55f6c8cf5bfc76cbc8777320dce22d0a 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; diff --git a/src/datastructures/dictionaries/MoveToFrontList.java b/src/datastructures/dictionaries/MoveToFrontList.java index 59ea9b6f23cbb2dc08b436a976867d536ffcb528..04e509e21d57badd57900c77b698bdcb02a5f75c 100644 --- a/src/datastructures/dictionaries/MoveToFrontList.java +++ b/src/datastructures/dictionaries/MoveToFrontList.java @@ -16,7 +16,9 @@ import cse332.interfaces.misc.DeletelessDictionary; * 4. You need to implement an iterator. The iterator SHOULD NOT move * elements to the front. The iterator should return elements in * the order they are stored in the list, starting with the first - * element in the list. + * element in the list. When implementing your iterator, you should + * NOT copy every item to another dictionary/list and return that + * dictionary/list's iterator. */ public class MoveToFrontList<K, V> extends DeletelessDictionary<K, V> { @Override