โ† Amazon questions

Maximized String Partitions

Filed under Amazon

Given a string S, partition it into as many substrings as possible such that each character appears in at most one substring. Return the length of each substring in the partition.

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 Amazon questions

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