We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
It is better to write the if statement as "if(a[in - 1] == temp && a[in - 1] != -1) " otherwise, it could cause an incorrect result for nCopies.