Problems / Greedy / Partition Labels
#128 Medium Time O(n) Space O(1) Animated

Partition Labels

Partition string into as many parts as possible with unique characters.

LeetCode ↗
Approach: Greedy / Two Pointers
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps