Guest User

Untitled

a guest
Dec 16th, 2019
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. def finder(p1,p2, cnt):
  2. G.append(p1)
  3. if p1 == p2:
  4. return cnt
  5. print(p1,poss(p1,p2))
  6. if cnt > 3:
  7. return 0
  8. if p2 in poss(p1,p2):
  9. print("blah",cnt)
  10. return cnt
  11. else:
  12. for i in poss(p1,p2):
  13. if i not in G:
  14. finder(i,p2,cnt+1)
Add Comment
Please, Sign In to add comment