-
Notifications
You must be signed in to change notification settings - Fork 254
2d iterator solution2 is buggy #10
Copy link
Copy link
Open
Description
List<List> testcase = new ArrayList<>();
testcase.add(new ArrayList() {{
add(1);
add(2);
}});
testcase.add(new ArrayList() {{
add(3);
}});
testcase.add(new ArrayList() {{
add(4);
add(5);
add(6);
}});
TwoDIterator2 t = new TwoDIterator2(testcase);
t.next();
t.next();
t.hasNext();//this one move the colIt to next List's begin, but next move need to remove previous one, you need to bak up that one.
t.remove();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels