Utkarsh and Placement tests
Utkarsh is currently sitting for placements. He has applied to three companies named $A, B$, and $C$. You know Utkarsh's order of preference among these $3$ companies, given to you as characters `first`, `second`, and `third` respectively (where `first` is the company he prefers most). You also know that Utkarsh has received offers from exactly two of these three companies, given you as characte
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