Quantcast
Channel: March 2015 – Program Creek
Viewing all articles
Browse latest Browse all 6

LeetCode – Self Crossing (Java)

$
0
0
Analysis This problem can be easily solved if the three self crossing cases are summarized well. Here are the three self crossing cases. There are no other self crossing situations based on the restrictions of counter-clockwise. Java Solution Writing the solution is straightforward once the 3 self crossing cases are identified. public boolean isSelfCrossing(int[] x) ... Read more

Viewing all articles
Browse latest Browse all 6

Trending Articles