Skip to main content
Used code tags and fixed punctuation
Source Link
Graipher
  • 41.1k
  • 7
  • 69
  • 133

It will fail in thisthe case 8, -19, 5,8, -19, 5, -4, 20. The -4, 20; the startstartIndex and endIndexendIndex will not update until 20, but the start should be 5;5.

It will fail in this case 8, -19, 5, -4, 20; the start and endIndex will not update until 20, but the start should be 5;

It will fail in the case 8, -19, 5, -4, 20. The startIndex and endIndex will not update until 20, but the start should be 5.

Source Link

It will fail in this case 8, -19, 5, -4, 20; the start and endIndex will not update until 20, but the start should be 5;