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

What is variable size arrays?and why we use it?

1012


Why using cookie to store session info is a better idea than just using session info in the request?

927


What is Storage Structures and File Structures? Can you show their relation? What are the examples of each? Thanks

2534


What are the issues that hamper the efficiency in sorting a file?

998


What is the best complexity of bubble sort?

906


Is a hashmap a dictionary?

866


What is selection in an algorithm?

868


What is mean by sorting?

894


What is an algorithm in coding?

858


How does a hashmap work?

918


What is the difference between Array and Arraylist?

1071


Explain what are the major data structures used in the hierarchical data model?

993


Why do we use dynamic arrays?

856


What is link list in data structure?

894


Differentiate file structure from storage structure?

958