Greedy Algorithm Flashcards

1
Q

What the difference between sets and lists

A

Sets are like lists, except sets can’t have duplicate

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

What is the big O for greedy algorithm?

A

O(n^2)

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