What is the definition of "All possible paths"?


#1

e.g. I don’t think the BFS solution can achieve the following answer:
[
[“hit”,“hot”,“dot”,“dog”,“cog”],
[“hit”,“hot”,“hog”,“dog”,“cog”]
]