Data Structures and Complexity Analysis Flashcards

1
Q

What is the time complexity for an unsorted array

A

Linear

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

What is the time complexity for finding an element of array the the index is known

A

Constant

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