Intro to LinkedList

Mam said array cant grow dynamically but linkedlist ca then what is the difference between arraylist and linkedlist.
excepty in array list we can randomly access memory but in linked list we cant.

ArrayList stores elements in a dynamic array while LinkedList stores the elements in the form of a doubly linked list internally. Basically, most of the functions are equivalent in both of them except that ArrayList insert at a specific position or deletion operations are expensive compared to LinkedList correspondents.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.