ciao a tutti,

qualcuno mi puo postare il codice per visitare un albero in ampiezza?

questa è l'implementazione dell'albero:

Codice PHP:
typedef int DATA;

struct node {
   
DATA        d;
   
struct node *left;
   
struct node *right;
};

typedef struct node NODE;
typedef NODE *BTREE
grazie!!!