android lock password combinations

前端 未结 4 574
我寻月下人不归
我寻月下人不归 2020-12-04 19:07

I just came across with this interesting question from my colleague. I\'m trying now, but meanwhile I thought I could share it here.

With the password grid shown in

4条回答
  •  情话喂你
    2020-12-04 19:15

    Summary

    The full combinations of 4 to 9 distinctive numbers, minus the combinations which include invalid "jump"s.

    The Long Version

    The rule for Android 3x3 password grid:

    • one point for once

    • cannot "jump" over a point

    enter image description here

    The author of the original post used Mathematica to generate all 985824 combinations.

    enter image description here

    Because there is no "jump", several pairs of consecutive points are invalid.

    enter image description here

    enter image description here

    Delete all invalid combinations to reach the result.

    enter image description here

    enter image description here

    The combinations for 4-to-9-point paths are respectively 1624, 7152, 26016, 72912, 140704, 140704.

    enter image description here

    The Original Post In Chinese

    The reference is from guokr, a site alike Stack Exchange Skeptics in the form of blogs.

提交回复
热议问题