← All problemsSign in

KALYANAM

Rohit is the King of Kankavali. One day he wants to get married, so his left-hand Tanny has arranged Swayamvaram. There will be N Girls in Palace for Swayamvaram. The ith girl has A[i] age. While the king was busy to choose his Dream wife, Tanny is playing a Game with Q queries. Help Tanny with this game. There will be 2 types of queries : - Type 1: X aged girl will be added at the end. - Typ

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