Intuition
Very simple graph problem. The idea is to traverse the coordinates and keep them in a set. If a new coordinate is in the set, return True.
Implementation
Visual
Review 1
Easy problem, but the implementation above is kind of ugly and does not translate well to other problems of this type such as Walking robot simulation. Do this instead: