← All problemsSign in

Blood Groups

Anushka is a doctor working in a hospital. There is an ongoing blood donation camp in the hospital and **two groups** of people, one with blood group **A** and the other with blood group **B** have lined up in front of the donation counter. Anushka has decided to make sure all the people with blood A are standing next to each other. Currently, everyone is standing in random order. Help Anushka f

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