mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
fix: missing ;
in matrix_chain_order.c
This commit is contained in:
parent
e278f5d74f
commit
b1a8da69a8
@ -55,7 +55,7 @@ int matrixChainOrder(int l,const int *p, int *s) {
|
|||||||
void printSolution(int l,int *s,int i,int j) {
|
void printSolution(int l,int *s,int i,int j) {
|
||||||
if(i == j) {
|
if(i == j) {
|
||||||
printf("A%d",i);
|
printf("A%d",i);
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
putchar('(');
|
putchar('(');
|
||||||
printSolution(l,s,i,s[i * l + j]);
|
printSolution(l,s,i,s[i * l + j]);
|
||||||
|
Loading…
Reference in New Issue
Block a user