leetle

Daily challenge for 2025-08-22

234. Partition Labels

Write a function solve that partitions a string into as many parts as possible so that each letter appears in at most one part, and returns a list of the sizes of these parts.

Example:
Input: s = 'ababcbacadefegdehijhklij'
Output: [9,7,8]

Run this challenge interactively in Python or JavaScript when the app loads.