manu_nem_3859's blog

By manu_nem_3859, history, 11 months ago, In English,
  • Vote: I like it
  • -6
  • Vote: I do not like it

11 months ago, # |
  Vote: I like it 0 Vote: I do not like it

My code . It is a simple bfs but you want to have lenght divides by 3. I have vertices v,state (for my code it is 3*v+state vertice) i search shortest path from s to v which whave the same remainder as state.