for i = 0 to size(arr) for o = i + 1 to size(arr) do stuff here
What\'s the worst-time complexity of this? It\'s not N^2, because the seco
Think of it like you are working with a n x n matrix. You are approximately working on half of the elements in the matrix, but O(n^2/2) is the same as O(n^2).