Problem 2900 · Easy

Longest Unequal Adjacent Groups Subsequence I

Take the first word of each run of equal groups; the number of runs is the longest unequal-adjacent subsequence.

Open the interactive visualisation