Adi and internships
CodeChefOpen on judge ↗
Adi received a lot of research internships offers because of his incredibly high CGPA. But when he finally joined he was disappointed to find that the task was menial. He wants to spend more time trying out new weird hairstyles so he asks you to solve it. Adi will receive a stream of integers and he can be asked the median of all the integers anytime. ###Input: First line contains integer $q$ w
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