Skip to content
Snippets Groups Projects
Commit b0c1d215 authored by Goik Martin's avatar Goik Martin
Browse files

Comment slightly re-written

parent 82e0bd13
No related branches found
No related tags found
No related merge requests found
......@@ -114,8 +114,9 @@ public class Arraymethods {
cArray[numCandidateLetters++] = candidateChar;
}
}
// cArray will contain the "real" palindrome candidate
// in index range [0, numCandidateLetters - 1]. So let's check it!
// cArray holds the "real" palindrome candidate with
// non-netters being stripped of having
// index range [0, numCandidateLetters - 1]. So let's check it!
//
for (int i = 0; i < numCandidateLetters / 2; i++) {
if (cArray[i] != cArray[numCandidateLetters - 1 - i]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment