Interfaces of Interest Flashcards

1
Q

What are the main operations in the List interface?

A
get(i)
set(i,x)
add(i,x)
remove(i)
size()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the main operations of the SortedSet interface?

A

add(x)
remove(x)
find(x)
size()

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

What are the main operations of the Stack interface?

A

push(x)
pop()
size()

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

What are the main operations of the (FIFO) Queue interface?

A

enqueue(x)
dequeue()
size()

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

What are the main operations of the Priority Queue interface?

A

add(x)
remove()/deleteMin()
size()

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

What are the main operations of the Deque interface?

A
addFirst(x)
removeFirst()
addLast(x)
removeLast()
size()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the main operations of the USet interface?

A

add(x)
remove(x)
find(x)
size()

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