So, the thing is I'm not really good at Javascript (I only know some C programming) & i want to implement a tree structure in which the node contains 2 arrays inside an array.
I could help you by giving structures in C:
struct IndexArray {
void *DataArray;
void *ChildsArray;
}
struct Node {
struct IndexArray *ContainerArray;
}
In short words the node contains an array & each element of this array contains 2 sub arrays.
I searched for tree implementations in javascript & i found many examples but i couldn't find an implementation similar to this one.
Array(Array(),Array())?var node = Array(Array(), Array())orvar node = [[],[]]var node = new node();node.IndexArray[i]gives access to elementiofnode.IndexArraynode.IndexArray[i].dataArray[j]gives access to elementjof dataArray of element i of indexArray. & similarlynode.indexArray[i].childArray[j]@guest271314 @xtu