From 32ccd8693480d787d81c73056e23a0b86cb14da0 Mon Sep 17 00:00:00 2001 From: Peter Petrek Date: Fri, 14 Jan 2022 02:12:14 +0100 Subject: [PATCH] memory --- sk1a/maze.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sk1a/maze.c b/sk1a/maze.c index f88bee7..31c6668 100644 --- a/sk1a/maze.c +++ b/sk1a/maze.c @@ -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++) {