← All problemsSign in

Developer or Tester

It is high time now, IT companies are hiring in huge numbers. Now that they have hired they need to form teams each containing exactly 2 members. No two members in the team have the same age. In any team, older is given the position of a Developer (D) and younger is given the position of a Tester (T). They have sorted all the members to form a list according to their ages (such that youngest in th

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