Hopscotch Tree Game
CodeChefOpen on judge ↗
During the festival of Pongal, cousins of the family get together and have fun. During their celebration together, they start to play the game of Hopscotch, but with the structure of an undirected rooted tree. Say Hema is on the root node in an undirected tree. Every second, she jumps to a random child of the current node. Node 1 is always the root of the tree. Find the probability that Hema is
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