ecco la funzione per la profondità

codice:
typedef struct cella* alby;
      int profondita (alby root)
      {
        // Livello parte da 0
        // Albero vuoto = -1
        if (root == NULL)
          return -1;
        int ls = profondita(root->sx);
        int ld = profondita(root->dx);
        return ls > ld ? 1 + ls : 1 + ld;
      }