V
vikramban9
OFFICIAL
03 Jun 2026, 15:16
Why does my solution TLE on the last test case?
Work with character counts or indices rather than building new strings in the loop; string concatenation inside loops is what usually causes TLE here.