All the elements in an array are stored contiguously in memory (as a single block). Elements of linked list may be scattered in memory (that’s why need a pointer to access the next element).

Next: Size  …

Pages: 1 2 3 4 5 6 7 8 9 10 11

One Response

  1. why we can not use binary search in linked list even it is sorted,what is main reason behind this fact?

Leave a Reply

Your email address will not be published. Required fields are marked *