You are viewing a single comment's thread. Return to all comments →
Isn't O notation only about worst case? If worst case is linear, it is O(n). O notation doesn't consider the most common time or the average time.
Seems like cookies are disabled on this browser, please enable them to open this website
Equalize the Array
You are viewing a single comment's thread. Return to all comments →
Isn't O notation only about worst case? If worst case is linear, it is O(n). O notation doesn't consider the most common time or the average time.