79829159

Date: 2025-11-24 22:30:05
Score: 4.5
Natty:
Report link

@kikon

Final question. And once again, very grateful for walking me through this.

I think I understand everything except for this condition i - j - 1 < new_str.length as part of that double condition if statement**.** You explained the role of

i - j - 1 < new_str.length

as follows:

How does i - j - 1 < new_str.length ignore all of the positions of the initial 6 character string, and by ignoring those those positions, such as

'*bcddc?'

does that mean that b is now index 0, c is index 1, and so forth?

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