Village Tribe
CodeChefOpen on judge ↗
Problem description. There is a village in which lives a number of tribes. Different Kind of tribe is represented by a different color and same kind of tribe is represented by same color . But there is a problem that no two tribes of same color can live adjacent to each other and they get destroyed immediately, and new tribes joins to form a straight line.In one operation all such adjacent tribes
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