• + 0 comments

    I'm pretty sure my solution isn't the intended solution, but in C I managed to solve this by 1) using the ray-crossing algorithm, and 2) severely optimizing the logic that happens for each pair of point and edge to not use any "ifs" (beyond the relevant one for the "for" loop) and minimize number of operations per loop.