First Challenge of Krypton
CodeChefOpen on judge ↗
"The story of my family is one of triumph and sacrifice" Seg-El, grandfather of Kal-El (Superman) needs to redeem his family's honour and save Krypton from the impending chaos. He is provided a tree of N nodes, where ith of it has value Ai associated with it. He is provided Q queries as well. In each query, a value X, denoting the node number will be provided. At the beginning of each query,
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