Ad
  • Custom User Avatar

    That seems fantastically inefficient indeed: other than going for a quadratic approach, why would you count how many times you found overlapping? Just return false, can't you?

  • Custom User Avatar

    Paste your code here using proper markdown and mark your post as having spoiler content if you want someone else to take a look at it.

  • Custom User Avatar

    Infinite loop or inefficient algorithm.