when one is just adding new elements to the pool and element size is small then dynamic array wud b better since u dnt hv 2 keep pointers as pointers wud hv consumed space ,so just keep reallocating the array...and when one is removing and adding elements with good frequency den linked list wud b a preferred option...
Linked List v/s Dynamic Array
when one is just adding new elements to the pool and element size is small then dynamic array wud b better since u dnt hv 2 keep pointers as pointers wud hv consumed space ,so just keep reallocating the array...and when one is removing and adding elements with good frequency den linked list wud b a preferred option...