Data Structures Flashcards

1
Q

Stack Insertion

A

Average: O(1)

Worst: O(1)

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

Array Space Complexity

A

O(n)

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

Binary Search Tree

Deletion

A

Average: O(log n)

Worst: O(n)

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

Queue Deletion

A

Average: O(1)

Worst: O(1)

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

Stack Space Complexity

A

O(n)

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

Array Access

A

Average: O(1)

Worst: O(1)

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

Array Deletion

A

Average: O(n)

Worst: O(n)

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

Stack Search

A

Average: O(n)

Worst: O(n)

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

Queue Space Complexity

A

O(n)

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

Array Insert

A

Average: O(n)

Worst: O(n)

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

Queue Search

A

Average: O(n)

Worst: O(n)

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

Stack Access

A

Average: O(n)

Worst: O(n)

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

Array Search

A

Average: O(n)

Worst: O(n)

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

Binary Search Tree

Insertion

A

Average: O(log n)

Worst: O(n)

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

Linked List Space Complexity

A

O(n)

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

Linked List Access

A

Average: O(n)

Worst: O(n)

17
Q

Linked List Search

A

Average: O(n)

Worst: O(n)

18
Q

Stack Deletion

A

Average: O(1)

Worst: O(1)

19
Q

Queue Access

A

Average: O(n)

Worst: O(n)

20
Q

Linked List Deletion

A

Average: O(1)

Worst: O(1)

21
Q

Queue Insertion

A

Average: O(1)

Worst: O(1)

22
Q

Binary Search Tree

Search

A

Average: O(log n)

Worst: O(n)

23
Q

Linked List Insertion

A

Average: O(1)

Worst: O(1)

24
Q

Binary Search Tree

Space Complexity

A

O(n)

25
Q

Binary Search Tree

Access

A

Average: O(log n)

Worst: O(n)