-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CountTriangles missing line #4
Comments
How could i run this projects? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think in this part of code
else{
// note: need to minus "1"
// because the rightEnd is not included
numTriangle = numTriangle + (rightEnd - leftEnd - 1);
leftEnd++; // decrease the Caterpillar
}
after leftEnd++ a line is missing:
something like: if (leftEnd==rightEnd) rightEnd++
The text was updated successfully, but these errors were encountered: