Advertisement
Davencode

es5

Jan 17th, 2022
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. ALGO(G,s,k,A)
  2. INIT(G)
  3. BFS(G,s)
  4. for each a in A do
  5. if c[a]=nero then
  6. if d[a]<=k then
  7. return false
  8. return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement