← All problemsSign in

Saviour Rahul

Rahul loves two things:- 1. Playing cricket. 2. Being in the starting 11. Rahul has $N$ abilities. Rahul wants to learn $M$ abilities to have a better career. Virat, the team captain wants Rahul in the team without losing his captaincy. You are Ravi, the team coach and hence Rahul approaches you to help him improve. You cannot turn down Rahul (you have to teach him at least one skill) and

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