← EY questions
CodingReported in a candidate post, Jul 2025

Partition a string so each letter appears in one part

Filed under EY

The question

Partition a string into as many parts as possible so that each letter appears in at most one part, and return the sizes of the parts. For example, 'ababcbacadefegdehijhklij' gives 9, 7, 8.

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

Related EY questions

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