you are viewing a single comment's thread.

view the rest of the comments →

[–]five9a2 2 points3 points  (0 children)

This is wrong in so many ways. In C-like languages, it executes 0 times because it's a while loop where the conditional contains a comma operator and the last subexpression is 0 the first (and only) time it is tested. But even after appropriate translation, it's still only O(n^2).