← All problemsSign in

Multiverse Queries

Cisco wants to evaluate the strengths of all the superhumans of parallel multiverse which he has discovered recently. Initially he has a structure of N nodes(celestial bodies) and all nodes(celestial bodies) have some threshold value . The threshold value of a node is given by the strength value of the strongest superhuman on that node. In order to simplify his assessment he performs K operations

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