r/badcode • • Dec 20 '16

c Is point inside rectangle? Now O(n^2).

Post image
333 Upvotes

72 comments sorted by

View all comments

19

u/ojessen Dec 20 '16

That's either incredibly stupid, or deliberate.

7

u/tias Dec 20 '16

Hanlon's razor.