โ† American Express questions

Length of longest substring with even character counts

Filed under American Express

The question

Given a string S of length N, find the length of the longest substring where each element occurs an even number of times.

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

Related American Express questions

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