effect-tree
    Preparing search index...
    • Compute the previous Prüfer code from the given code with wrap-around.

      For example, the previous code of 1,1,1 (first code for 5 nodes) will be 4,4 (last code for 4 nodes), and the previous code of 4,4 will be 4,3.

      Parameters

      • a: number[]

      Returns number[]