2 ms·
That's only for cases of N over some value. An O(N^2) algorithm over a list of 10 is not going to break anything. I didn't mention not being able to reason out
by boyter 13y ago
That's only for cases of N over some value. An O(N^2) algorithm over a list of 10 is not going to break anything.
I didn't mention not being able to reason out the complexity, only saying its O(N^2) off the top of your head when presented with some method.