โ† Walmart questions

Max length repeated non-overlapping substring

Filed under Walmart

Find the length of the longest substring in a string of 'A's and 'B's that appears at least twice without overlapping.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Walmart questions

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