In input we have length and width of maze, and the maze that looks like
A..#
##.#
#B.#
####
Where "#" - is wall, A- start point, B - end point. In output we should to see a length of shortest route in maze. I was reading a lot of examples of codes, but i'm not understanding it, because in java I saw one example only, and it has Queue, I'm started learning java not a long time ago and I'm don't know about it. Can you show me example without Queue? Thanks a lot :)
If BFS can't working without Queque, can you show me example of DFS algorithm?