← Merilytics questions

Cumulative sum and Longest substring without repeating characters

Filed under Merilytics

The question

Return the cumulative prefix sum of an array (e.g., [1, 2, 3] to [1, 3, 6]) and find the length of the longest substring without repeating characters.

No write-up yet. Related questions below have one.

Collected from public candidate posts and coding forums. Updated Nov 2026.