Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
Sets and Maps
Grade Level
Computer Science
HSCS.154 Sets and Maps
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
A report needs fast lookup by product ID during the day and an end-of-day list of products sorted by ID. Which design is best?
A
Use only a queue because queues sort keys
B
Use a stack and search from the top for every lookup
C
Use only a set of product descriptions
D
Use a map for product lookup and sort the map keys for the report
Submit Answer