Two in one
CodeChefOpen on judge ↗
Rahul has two boxes $A$ and $B$.Box $A$ contain $N$ different colour balls and box $B$ contain $M$ different colour balls. Rahul find it very hard to manage two boxes, So he decided to put all the balls in one box. If a ball contain in both the boxes $A$ and $B$ so he will put only once in the box. (Colour of the ball is represented by an integer). ### Input - First line will contain $T$, number
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