Big O of Data Structures Flashcards

1
Q

What is the Big O of accessing data in an array?

A

O( 1 )

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

What is the Big O of searching for data for an array?

A

O( n )

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

What is the Big O of Inserting into an array?

A

O( n )

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

What is the Big O of Deletion in an array?

A

O( n )

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

What is the Big O of accessing data in an stack?

A

O( n )

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

What is the Big O of searching for data for an stack?

A

O( n )

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

What is the Big O of Inserting into an stack?

A

O( 1 )

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

What is the Big O of Deletion in an stack?

A

O( 1 )

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

What is the Big O of accessing data in an queue?

A

O( n )

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

What is the Big O of searching for data for an queue?

A

O( n )

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

What is the Big O of Inserting into an queue?

A

O( 1 )

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

What is the Big O of Deletion in an queue?

A

O( 1 )

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