LeetCode

Android Unlock Patterns

Click here for an explanation.