1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Maze

Discussion in 'C' started by wvueagle, Sep 11, 2006.

  1. wvueagle

    wvueagle New Member

    Joined:
    Sep 11, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Ok so I know lots of people have posted on this but I am too because I am stuck and not really sure what to do. I have a problem to solve...it is the "MAZE" problem. Given a maze of 1's and 0's with 2 random 0's being on the outside "wall" and then 1's and 0's on the inside I have to make a path. Must start in upper left corner and go clockwise to find first 0, this is entrance, then go through maze where 0's are path and as each 0 is visited, in an attempt to find path, an X is placed there. If a path is found to the other boundry 0 great! I know recrusion and the stack can be used but not sure how?!? Not very up to speed on C, yea has to be done in C. Any help would be great!!
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    What type of help you are looking at?
     

Share This Page