Greedy Algorithm Flashcards
1
Q
What the difference between sets and lists
A
Sets are like lists, except sets can’t have duplicate
2
Q
What is the big O for greedy algorithm?
A
O(n^2)
What the difference between sets and lists
Sets are like lists, except sets can’t have duplicate
What is the big O for greedy algorithm?
O(n^2)