diff --git a/dynamic_programming/matrix_chain_order.c b/dynamic_programming/matrix_chain_order.c index 76c29bf1..d0ee8cac 100644 --- a/dynamic_programming/matrix_chain_order.c +++ b/dynamic_programming/matrix_chain_order.c @@ -55,7 +55,7 @@ int matrixChainOrder(int l,const int *p, int *s) { void printSolution(int l,int *s,int i,int j) { if(i == j) { printf("A%d",i); - return + return; } putchar('('); printSolution(l,s,i,s[i * l + j]);