arrow_back Back to Challenges

#763 Partition Labels

Medium Acceptance 0%
description

Problem Description

You are given a string `s`. We want to partition the string into as many parts as possible so that each letter appears in at most one part. Return a list of integers representing the size of these parts.

checklist Constraints

See problem description for detailed constraints.

science Examples

Case #1

In: # See problem description for input format
Out: # Expected output

Mastery Tags

Greedy Hash Table Strings Two Pointers

Hiring Companies

Amazon Apple
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude