N TREE
#include <stdio.h> #include <stdlib.h> /* N tree implementasi Binary Tree */ typedef struct Node { char data; struct Node * nextchild; struct Node * nextsibling; }Node; Node * createtree(char a) { Node * news; news = (Node *) malloc(sizeof(Node)); news->data = a; news->nextchild = NULL; news->nextsibling = NULL; return news; } Node * telusuriparent(char a, Node ** tree) { Node * temp = (*tree); Node * child = NULL; while(temp->data != a && temp->nextchild != NULL) { //periksa anak child = temp->nextchild; while(child->data != a && child->nextsibling != NULL) { child = child->nextsibling; } if(child->data == a) { return temp; } temp = temp->nextchild; if(temp->data == a) return temp; } return temp; } void insertdata (char data,char parent,Node ** t...