02.18 · Problem
Split the Parade Into Balanced Blocks
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
Item 38 of 94 · updated 2026-10-12