Search⌘ K
AI Features

Partition Labels

Partition Labels divides a string into as many consecutive parts as possible so each letter appears in only one part, then returns the sizes of those parts.

Statement

You are given a string s. Your task is to divide the string into as many ...