Practice
/

Partition Labels

Partition Labels

Given a string, partition it into as many parts as possible so that each letter appears in at most one part, and return a list of the sizes of these parts.

Premium Content

Create a free account, then unlock this problem and the entire premium catalog with a one-time CodeSnatch Premium purchase.

Already have an account with premium access? Sign in to continue.