Available question text
Given a string of balloon colors and a removal cost per balloon, remove balloons so no two adjacent colors are equal while minimizing total removal time. The core challenge is to process runs of equal-colored balloons and, using a greedy linear scan, remove all but the highest-cost balloon in each run (n up to 1e5).
Related questions
Continue with questions that share topics or the same question type.