Can we use different data type for storing childrens of a node ?
Data Type Problems in Trees
like, in this video we are using ArrayList for storing the child nodes so, can we use any other data types for storing the child nodes like linked list, stack etc. ?
@sandipjha762 Bro they are not data types they are data structures. And yes you can use any data structure you want but the main motive is to sort the things out.
is arrayList the best data structure for storing nodes ?
@sandipjha762 Yes it is, because the time complexity of getting and setting the element in arraylist is constant.