Array
1578. Minimum Time to Make Rope Colorful
Remove balloons so no two adjacent share a colour, minimising total removal time (neededTime[i] per balloon). From each run of same-coloured balloons you keep one and remove the rest — and keeping…
Loading…