Skip to content

Commit 81e5fe7

Browse files
authored
Update MatrixChainMultiplication.java
1 parent 5bf3ddb commit 81e5fe7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

DynamicProgramming/MatrixChainMultiplication/MatrixChainMultiplication.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,8 @@ public int matrixChain(int dims[]){
127127

128128
}
129129

130-
130+
/*
131+
Time Complexity - O(n^3)
132+
Number of subproblems - n^2
133+
Time to solve each subproblem - n
134+
*/

0 commit comments

Comments
 (0)