← All problemsSign in

The Boring lecture

There's a class in BDIT where there are $T$ group of students. In each group sitting students are sitting one behind the other. Now there are two types of student good and bad denoted by $G$ and $B$ respectively in a string. Every minute every bad student throws a paper-ball at the next student. Formally speaking bad student corresponds to the character with index $i$ in the string throw a pape

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start