Special Datastructures Psuedocode Flashcards
1
Q
Collection methods
A
.addItem() .getNext() .resetNext() - always .hasNext() .isEmpty()
2
Q
Stacks methods
A
.push()
.pop()
.isEmpty()
3
Q
Queues methods
A
.enqueue()
.dequeue()
.isEmpty()
4
Q
ArrayList methods
A
.add(d) //to end .get(i) .set(i,d) .remove(i) .isEmpty()