DIY: Partition Labels
Solve the interview question "Partition Labels" in this lesson.
Problem statement
You are given a string, s
, of lowercase English letters. We want to partition this string into as many parts as possible such that each letter appears in at ...