Is it possible to use the BFS to solve the problem?


  • 0
    C

    Hi,

    I know using the dfs to solve this questions is pretty straight forward, is it possible to use the bfs to solve the problem?

    Thanks!


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.