Mention some advantages and disadvantages of Arrays.
Answer»
Advantages:
Multiple ELEMENTS of Array can be sorted at the same time.
Using the index, we can access any element in O(1) time.
Disadvantages:
You need to specify how many elements you're going to store in your array ahead of time and We can not INCREASE or decrease the size of the Array after creation.
You have to shift the other elements to FILL in or close GAPS, which takes worst-case O(n) time.