Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why it is difficult to store linked list as an array?

Answer Posted / codex

Its not difficult if you need to copy items in linked list to an array you should traverse the list starting first element and copy each value you pass by to an array.

if you are asking why do we use a linked list rather than array then it's because an array needs to have a fixed size but in a linked list you can add as much items as you can.but If you really need to use an array you can use an arraylist with resize feature.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define disjoint set adt?

871


How does a selection sort work for an array?

850


Why we need cursor implementation of linked lists?

938


What is stable sort example?

830


Explain in brief a linked list.

907


What is a queue in data structure?

933


Which collection class is thread safe?

793


What are the different data structures?

864


State the advantages of using postfix notations?

1003


Differentiate between iterator and listiterator.

956


How to get the index of an array element?

992


What is array in data structure with example?

886


What is raid (redundant array of inexpensive disks)? Explain its level?

868


What are the disadvantages of linear list?

860


What are the different types of hash functions?

888