I have a problem with a C program, where a 2D array with mines is given (mines = array fields set to 1). I need to find the shortest path from (0,0) to (x-1,y-1), and you can move only in 4 directions (up, down, left, right).
Do you have any ideas, what the algorithm should look like to keep the program fairly simple?