Smart Solution to Avoid Collision
CodeChefOpen on judge ↗
There are two sections A and B in a college. Dr. Sahu is teaching in section B and Dr. Bharadwaj in section A. Today Dr. Bharadwaj announces that he is going to leave the college. Next day it turns out that Dr. Sahu is going to teach both the sections, so he wants both sections to have the same experiments and in the same order in everyone’s notebook for his convenience, so he asks the CR to find
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