Share your repls and programming experiences

← Back to all posts
A nice O(n^2) loop
h
profolsen (0)

Here's a loop that has the control structure "for(int i = 0; i < n; i++)" but runs in O(n^2) time.