79828841

Date: 2025-11-24 15:53:22
Score: 5.5
Natty:
Report link

@smallpepperz Thank you! That clarifies it. I guess my final question would be how this statement would look for each check of the two if conditions:

if (i - j - 1 < new_str.length && new_str[j] != new_str[i - j - 1])

Would it be, check #1:

if (8-0-1 < 8 && a != ?)

check #2:

if (8-1-1 < 8 && b != ?)

check #3

if (8-2-1 < 8 && c != ?)

And what would "new_str[i - j - 1]" be in each of these 3 iterations?

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @smallpepperz
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Stanislav Matveyevich