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...


Which is better array or linked list?



Which is better array or linked list?..

Answer / Sujeet Kumar

The choice between an array and a linked list depends on the specific use case. Arrays provide constant-time O(1) access to elements at any index, but they have a fixed size, which can lead to wasteful memory usage when adding or removing elements. Linked lists allow for dynamic resizing of the data structure, making them more flexible in terms of adding and deleting elements, but accessing an element requires traversal, leading to slower average-case performance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is nsmutablearray?

1 Answers  


why do tree always takes o(log n) time?

2 Answers   TCS,


What is sorting problem?

1 Answers  


Why we use linked list?

1 Answers  


How do you sort an arraylist?

1 Answers  


List out the basic operations that can be performed on a stack?

1 Answers  


What is array traversing?

1 Answers  


What is linked list with example?

1 Answers  


How does a dynamic array work?

1 Answers  


What are different methods of collision resolution in hashing.

1 Answers  


How do you determine if a binary tree is height balanced?

1 Answers  


When would you use a hashmap?

1 Answers  


Categories