What is difference between static and dynamic array?
Answer / Ankit Tyagi
A static array has a fixed size that cannot be changed once declared, while a dynamic array can resize itself to accommodate more elements as needed. In a static array, all memory for storing elements must be allocated at once, which can lead to wasted space if the exact size is not known in advance. Dynamic arrays can automatically allocate and deallocate memory, but each resizing operation incurs additional overhead.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between tree and binary tree?
What is the complexity of bubble sort?
Explain what is the bucket size, when the overlapping and collision occur at same time?
State the advantages of using postfix notations?
How many times is merge sort called?
What is a minimum spanning tree?
What is the use of sorting?
What is a 2 dimensional array?
Which one is faster? A binary search of an orderd set of elements in an array or a sequential search of the elements.
What is the difference between b tree and binary search tree?
If you are given a choice to use either arraylist and linkedlist, which one would you use and why?
What is the difference between hashmap and linkedhashmap?