Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

Welcome to All Test Answers

Category : Data Structures and Algorithms

Data Structures and Algorithms

Question
To represent a maze, we set the following array mg in which each element represents a block. 0 indicates the block is a path, and 1 indicates the block is a wall. int mg[M+1][N+1]={ /*M=10,N=10*/{1,1,1,1,1,1,1,1,1,1}, {1,0,0,1,0,0,0,1,0,1},{1,0,0,1,0,0,0,1,0,1}, {1,0,0,0,0,1,1,0,0,1}, {1,0,1,1,1,0,0,0,0,1}, {1,0,0,0,1,0,0,0,0,1}, {1,0,1,0,0,0,1,0,0,1}, ...
error: Content is protected !!