solulubeta
Sign in
Story Problems / Strings
02.18 · Problem

Split the Parade Into Balanced Blocks

Easy Greedy counter Pro

This problem is part of solulu Pro

A parade is a string of L (left-turning) and R (right-turning) floats. Split it into the maximum number of continuous blocks, where each block has the same number of L's and R's. Return the maximum number of blocks.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 38 of 94 · updated 2026-10-12