โ† Amazon questions

Design a data structure for top N trending products

Filed under Amazon

The question

Given a product ID and sales, design a custom data structure to display the top N trending products by sales and include a function to update the sales value.

No write-up yet. Related questions below have one.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.