Recently I was learning about Prufer Code and got this problem. But I can't come up with an idea to solve it. Can anyone please provide some ideas to solve this?
Problem Link: UVa — 12956
Need Idea To Solve UVa 12956
Recently I was learning about Prufer Code and got this problem. But I can't come up with an idea to solve it. Can anyone please provide some ideas to solve this?
Problem Link: UVa — 12956