79795142

Date: 2025-10-20 17:37:58
Score: 1
Natty:
Report link

continue only skips one iteration, but it runs multiple times.

On the first iteration, last = prev + j makes prev == last true, and then after that, it stays true because continue skips the rest of the loop iterations.

How do you get ab? It's the first iteration of a-b and the first iteration of b-c.

Since this is an exercise, I won't try to give a fix, but there are multiple other ways you can get what you want, which is to not have repeated characters when two ranges are combined.

Reasons:
  • Blacklisted phrase (1): How do you
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: clarkep