I am looking for a place where I can get start with implementation of N-child tree . Please ping if you know some resources for it as GFG is also implementing it with a different approach
I am not getting the relevant content for implementing the N-child tree
hello @nitinchoudhary260
its no differnt then binary tree.
use this structure to represent each node->
struct Node{
int data;
vector<Node*> children;
}
where data is the value of current node.
and children is a vector that stores address of all the pointers
Okk thanks for the info