Seating Arrangements
CodeChefOpen on judge ↗
In a large gathering, the attendees were divided into groups. Each group had a two-alphabet code where each alphabet is between 'A' and 'Z' inclusive. All the attendees were supposed to sit in the lexicographical order of their respective group, i.e. group 'AA' was supposed to sit before 'AB' and so on. Suppose there are 10 seats and there are two groups, 'AA' and 'AB' with 4 and 6 attendees in ea
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