Bahubali
CodeChefOpen on judge ↗
Bahubali wants to save his mother 'Devasena' who was prisoned in the kingdom of 'Bhallala Deva'. He prepared his army of S soldier to wage a war. but in order to reach her , Bahubali has to pass N levels. Kattappa said Bahubali that at each level he will get few flags which he has to carry along. The flags can may be of Bahubali's kingdom or Bhallala Deva's kingdom. Devasena doesnt know Bahubali
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