Code
The highlighted line runs next. The pill shows the live values in the running call.
Variables
The data structures the code is building
The string
Bars = each letter from its first to its last copy
Split the lowercase string s into as many parts as possible so that each letter appears in at most one part. Return the sizes of the parts, in order.
The highlighted line runs next. The pill shows the live values in the running call.
The data structures the code is building
Bars = each letter from its first to its last copy
n = len(s), m = distinct letters. The highlighted row is the solution being traced.
Keyboard: ← → step, Space play or pause. Lowercase letters only; drawings use at most 24 letters.