Guest User

Untitled

a guest
Dec 14th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. reach(n,C,C',k)
  2. if k = 0:
  3. if C = C': // Shouldn't there be another check?
  4. return true
  5. else
  6. return false
  7. else
  8. foreach C'' of size n:
  9. if reach(n,C,C'',k-1) and reach(n,C'',C',k-1):
  10. return true
  11. else
  12. return false
Add Comment
Please, Sign In to add comment