When it is specified that one has to use "dynamic array" you are not supposed to use Linked List. Guess that is an assignment.

So better option is that one uses vector. Moreover one won't have to get bothered about methods and pointers of Linked List.