the.one.liner's blog

By the.one.liner, history, 7 months ago, In English

What would be the algorithm of solving the above problem with the help of Dfs and similar approach?

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

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

Well, you could do binary search by d and run DFS to find if it is reachable with such d.