Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

mac_n_cheese_pog's blog

By mac_n_cheese_pog, history, 5 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?
»
5 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

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

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