You are in a maze(like a labyrinth), and you open your eyes so you don't know your position. The maze has walls and you can move only in up, right, left and down directions. You can escape the maze when you find a ladder.
The following API is given: bool TryMove(direction) - returns true when you don't hit a wall; bool HasLadder() - return true if you found the ladder. Write a method bool Explore() that returns true if you can escape the maze, false otherwise. Also, provide test cases. A Good Explanation & Pseudo-code, Algorithmic discussion needed..Object Oriented is Also Welcome Thanks & Regards Shahsank -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
