Laura and her QUERIES On Tree
Logan: "Someone will come along" Charles: "Someone has come along" After much speculation, Logan has decided to escort Laura to a place in North Dakota called "Eden". But Laura is in playful mood right now, and wants Logan to play with her an interesting game. She gives Logan a tree with N nodes and Q queries. Each query will contain 5 integers R A B X and Y. R denotes the root node of the tr
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