Construct longest string without three consecutive same characters
Filed under American Express
The question
Given the maximum occurrences of characters 'a', 'b', and 'c', build the largest possible string containing only these characters such that no three consecutive characters are the same.
No write-up yet. Related questions below have one.
Related American Express questions
Collected from public candidate posts and coding forums. Updated Nov 2026.