Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cse332-20sp
p2
Commits
b45745c3
Commit
b45745c3
authored
5 years ago
by
Kat Wang
Browse files
Options
Downloads
Patches
Plain Diff
Add restriction on iterator
parent
e573f966
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/datastructures/dictionaries/MoveToFrontList.java
+3
-1
3 additions, 1 deletion
src/datastructures/dictionaries/MoveToFrontList.java
with
3 additions
and
1 deletion
src/datastructures/dictionaries/MoveToFrontList.java
+
3
−
1
View file @
b45745c3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment