Code
The highlighted line runs next. The pill shows the live values in the running call.
Cost
Work done so far, and how the two solutions compare
The strings
Underlined letters occur in t; green window = covers t
The highlighted line runs next. The pill shows the live values in the running call.
Work done so far, and how the two solutions compare
Underlined letters occur in t; green window = covers t
Keyboard: ← → step, Space play or pause. s is 1 to 14 letters and t is 1 to 6; matching is case-sensitive. The Java sliding window compares Integer counts with equals(), because == on two Integer objects compares references.