Ben needs to implement a data structure that can efficiently answer range queries (queries...
Sirionlabs, Inc technical mcq question, verified with a worked answer. Free to practise - no sign-up.
Ben needs to implement a data structure that can efficiently answer range queries (queries that ask for information about a range of elements, such as the sum or average of all elements within a given range). Which data structure would be best suited for his needs?
**MCQ
Show answer & explanation
Answer: A. A) Heap
Accurate technical and quantitative evaluation based on foundational principles.
Step-by-step Derivation:
Step 1: Formulate problem conditions.
Step 2: Apply logical deduction.
Step 3: Conclude correct option.