Prüfer Codes:

For every labelled tree there is exactly one unique string of numbers, this is called the Prüfer code of that tree. This program reverses that process and finds the unique tree for any given string of numbers. Enter a Prüfer code below and see for yourself! (click to hide this message)

Error: Enter a number with no 0's and each digit lower than the length of the number + 2.