mac_n_cheese_pog's blog

By mac_n_cheese_pog, history, 3 years ago, In English

im trying to learn bfs and there are so many implementation.i dont know the general bfs implementation.can someone give?

  • Vote: I like it
  • -32
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it +3 Vote: I do not like it

use Competitive Programmer's Handbook. BFS section is given on page 119.

»
3 years ago, # |
  Vote: I like it +4 Vote: I do not like it