When do you use a sparse array?

Q & ACategory: Data StructureWhen do you use a sparse array?
Admin Staff asked 4 years ago

When do you use a sparse array?
a) When there are unique elements in the array
b) When the array has more occurrence of zero elements
c) When the data type of elements differ
d) When elements are sorted

1 Answers
Admin Staff answered 4 years ago

b) When the array has more occurrence of zero elements