memory
This commit is contained in:
parent
e5853fa96c
commit
32ccd86934
@ -104,14 +104,14 @@ int solve_maze(char* maze, int size) {
|
||||
}
|
||||
|
||||
//cleanup redundant routes
|
||||
for (int i = size - 2; i >= 0; i--) {
|
||||
/*for (int i = size - 2; i >= 0; i--) {
|
||||
for (int j = size - 2; j >= 0; j--) {
|
||||
if (maze2d[i][j] == '*' && maze2d[i + 1][j] == '*' && maze2d[i + 1][j + 1] == '*' && maze2d[i][j + 1] == '*') {
|
||||
maze2d[i + 1][j + 1] = ' ';
|
||||
maze2d[i][j + 1] = ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
//serialize
|
||||
for (int i = 0; i < size; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user