Why is it difficult to store linked list in an array?

Answers were Sorted based on User's Feedback



Why is it difficult to store linked list in an array?..

Answer / deepti

because in linklist we can store as many elements as we
want because size does not matter .but in case of array if
we define size suppose 20 we can store only 20 elements .

Is This Answer Correct ?    20 Yes 2 No

Why is it difficult to store linked list in an array?..

Answer / maria

Because of defragmentation, when node should be deleted.

Is This Answer Correct ?    15 Yes 2 No

Why is it difficult to store linked list in an array?..

Answer / sandy

because it grows dynamically. it can get extra node from
avail(available) list whereever array not having any avail
list......

Is This Answer Correct ?    6 Yes 0 No

Why is it difficult to store linked list in an array?..

Answer / murali

Because array can not grow dynamically

Is This Answer Correct ?    10 Yes 6 No

Why is it difficult to store linked list in an array?..

Answer / truong

Because size of linked list is usually very large. So it is difficult to store data in a linked list in a continuously memory as an array.

Is This Answer Correct ?    1 Yes 3 No

Why is it difficult to store linked list in an array?..

Answer /

array can grow dynamically...........

but it is a waste of memory to set them to grow dynamically

Is This Answer Correct ?    2 Yes 14 No

Post New Answer

More C++ General Interview Questions

How the compilers arranges the various sections in the executable image?

1 Answers  


How to avoid changing constant values?

2 Answers   Symphony,


What causes a runtime error c++?

0 Answers  


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

0 Answers  


What are the basic data types used in c++?

0 Answers  


How long does it take to get good at leetcode?

0 Answers  


What is an undefined behavior and sequence points

0 Answers  


Explain about Virtual Function in C++?

0 Answers  


What do you mean by vtable and vptr in c++?

0 Answers  


You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so

1 Answers  


How do you traverse a btree in backward in-order?

0 Answers  


What does scope resolution operator do?

0 Answers  


Categories