Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. How many passwords combinations can we find of length 3?
  2.  
  3. ```
  4. * * *
  5.  
  6. * * *
  7.  
  8. * * *
  9. ```
  10.  
  11. examples:
  12. * `[0,0], [0,0], [0,0]`
  13. * `[2,1], [1,1], [0,1]`
  14.  
  15. ---------------------------------
  16.  
  17. ### Constraint 1: all the combinations must be "adjacent"
  18.  
  19. Where "adjacent" means they're either up, down, left or right.
  20.  
  21.  
  22. examples:
  23. * `[0,0], [0,1], [1,1]`
  24.  
  25. ```
  26. 1----2 *
  27. |
  28. * 3 *
  29.  
  30. * * *
  31. ```
  32.  
  33.  
  34. * `[2,1], [1,1], [0,1]`
  35.  
  36. ```
  37. * 3 *
  38. |
  39. * 2 *
  40. |
  41. * 1 *
  42. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement