Function find parent index of tree

find parent index of tree

Format:

find parent index of tree

Input:

list tree -
number child_index -
number index -

Output:

number - None

Properties that reference this function:

find parent index of tree = find parent index of tree (find parent)
find parent index of [ node (x, index, right), rest ] = i (found parent left)
find parent index of [ node (x, left, index), rest ] = i (found parent right)

Conditional properties that reference this function:

  • if the following are true:
    • not (left = val)
    • not (right = val)

    then find parent index of [ node (el, left, right), remain ] = find parent index of remain

    (link)


Comments

Please log in to add comments