Big O Flashcards
1
Q
Red
A
O(log n)
Excellent performance (green -> yellow -> orange -> red)
2
Q
Blue
A
O(n!)
Horrible performance (green -> yellow -> orange -> red)
3
Q
Purple
A
O(n log n)
Poor performance (green -> yellow -> orange -> red)
4
Q
Orange
A
O(2^n)
Horrible performance (green -> yellow -> orange -> red)
5
Q
Teal
A
O(n^2)
Horrible performance (green -> yellow -> orange -> red)
6
Q
Green
A
O(n)
Fair performance (green -> yellow -> orange -> red)
7
Q
Big O Ordering
A
O(1) (dark green) -> O(log n) (light green) -> O(n) (yellow) -> O(n log n) (orange) -> O(n^2) (red) -> O(2^n) (red) -> O(n!)
dark green -> light green -> yellow -> orange -> red