Home > Back-end >  [C] please have a look at the code, thank you
[C] please have a look at the code, thank you

Time:03-22


Is this a recursive: why did wrong, what to use? Wish elder people glad, thank you

CodePudding user response:

First, your care function return p; P unchanged, and in the execution of * solve (NNN) is p [0], so the recursive that part cannot be established,
Second, this is only the first four series more than a dozen in 32 bit integer, said even if recursive right, most are also behind the overflow later no use value,

CodePudding user response:

Can be converted to:
The return p + n - 1;
  • Related