Skip to content

Commit 95aaac2

Browse files
authored
Update printMazePath.java
added time complexity of the code
1 parent a8b8ae7 commit 95aaac2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CodingBlocks Training/Day11/printMazePath.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package Lecture11;
22

3+
// complexity: O(2^mn)
4+
// where m is total rows, n is total columns, and from every cell you have 2 paths to explore
5+
36
public class printMazePath {
47

58
public static void main(String[] args) {

0 commit comments

Comments
 (0)