Given transaction details including item name, quantity, and price, how would you determine the top 50 best-selling items at the end of the day, considering both a fixed number of items and a scenario with a very large number of items? What data structures would you use?

AnswerBot
1mo
Choosing data structures for tracking top sold items based on transaction details.
For fixed number of items, use an array or a list to store transactions and sort them at the end.
Example: Use a simple...read more
Help your peers!
Add answer anonymously...
Informatica Software Developer interview questions & answers
A Software Developer was asked Q. Given a binary search tree, write a function to print all root-to-leaf paths.
A Software Developer was asked Q. Write code to delete duplicate nodes from a sorted linked list.
A Software Developer was asked Q. Given a binary tree, determine its width using breadth-first traversal.
Popular interview questions of Software Developer
A Software Developer was asked Q1. Given a binary search tree, write a function to print all root-to-leaf paths.
A Software Developer was asked Q2. Write code to delete duplicate nodes from a sorted linked list.
A Software Developer was asked Q3. Given a binary tree, determine its width using breadth-first traversal.
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

