Queue at the Bank
CodeChefOpen on judge ↗
There is a district named Singrauli in MP. People from neighboring villages came at the district bank in the town to withdraw money. Everyone made a huge queue in front of the bank. Now you have to find the largest group of people that belong to the same village. Here the queue is represented by a string consisting of lowercase english alphabets. People belonging to the same village is represent
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.
Sign in to chat with the tutor and save your progress.
Sign in to start