Skip to main content

Command Palette

Search for a command to run...

maze_path

Published
1 min readView as Markdown
public class MazePaths {

    public static void printMazePaths(int sr, int sc, int dr, int dc, String path) {

    }

    public static void main(String[] args) {
        int n = 3, m = 3;
        System.out.println("All paths in " + n + "x" + m + " maze:");
        printMazePaths(0, 0, n - 1, m - 1, "");
    }
}

More from this blog

Amit singh's blog

235 posts