Skip to content
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

Open
nemethyd opened this issue Sep 27, 2021 · 1 comment
Open

CountTriangles missing line #4

nemethyd opened this issue Sep 27, 2021 · 1 comment

Comments

@nemethyd
Copy link

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++

@vvaldovic79
Copy link

vvaldovic79 commented Mar 5, 2024

How could i run this projects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants