Special Datastructures Psuedocode Flashcards

1
Q

Collection methods

A
.addItem()
.getNext()
.resetNext() - always
.hasNext()
.isEmpty()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Stacks methods

A

.push()
.pop()
.isEmpty()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Queues methods

A

.enqueue()
.dequeue()
.isEmpty()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ArrayList methods

A
.add(d) //to end
.get(i)
.set(i,d)
.remove(i)
.isEmpty()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly