about summary refs log tree commit diff stats
path: root/algorithms
diff options
context:
space:
mode:
Diffstat (limited to 'algorithms')
-rw-r--r--algorithms/java/DFS.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/algorithms/java/DFS.java b/algorithms/java/DFS.java
index 6b46ca6..ff4567d 100644
--- a/algorithms/java/DFS.java
+++ b/algorithms/java/DFS.java
@@ -55,13 +55,13 @@ public class DFS {
 
     public static void main(String[] args) {
         char[][] maze = {
-            {'.', '#', '.', '#', '.'},
-            {'.', '.', '.', '.', '.'},
-            {'.', '#', '.', '.', '$'},
-            {'.', '.', '.', '#', '.'},
-            {'.', '.', '.', '.', '#'},
-            {'.', '#', '#', '.', '.'},
-            {'.', '.', '.', '.', '.'},
+            {'.', '#', '.', '#', '.', '.', '#', '.'},
+            {'.', '.', '.', '.', '.', '.', '.', '.'},
+            {'.', '#', '.', '.', '#', '.', '.', '$'},
+            {'.', '.', '.', '#', '.', '#', '.', '.'},
+            {'.', '.', '.', '.', '.', '.', '.', '#'},
+            {'.', '#', '#', '.', '.', '.', '#', '.'},
+            {'.', '.', '.', '.', '.', '.', '.', '.'},
         };
 
         boolean[][] visited = new boolean[maze.length][maze[0].length];