LeetCode
Self Crossing
Click
here
for an explanation.