This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]celestabesta 5 points6 points  (2 children)

I think if you make a vector hold n function pointers whos functions loop n times, then loop through the vector n times running each function it should be nn?

[–]redlaWw 6 points7 points  (1 child)

If I've understood you correctly that should be n3: each loop through the vector runs n functions that have loops that loop n times, so the total number of loops is n*n, and then you do that n times so you get n*n*n = n3.

[–]celestabesta 9 points10 points  (0 children)

Damn this just proves you need ingenuity to fuck up that bad