Partition Labels — Greedy

Cut a row of letter-tagged parcels into the most consecutive sections so each letter stays in one, and report the section sizes.

Greedy · Medium

More in Greedy

All algorithm problems