You've organized a party, and your new robot is going to meet and greet the guests. However, you need to program your robot to specify in which order to greet the guests. Of course, guests who came earlier should be greeted before those who came later. If several guests came at the same time or together, however, you want to greet first the older guests to show them your respect. You want to use a min-heap in the program to determine which guest to greet next. What should be the comparison operator of the min-heap in this case?
Answers
Answered by
2
Answer:
Yes organisation gelreet
Similar questions
Math,
20 hours ago
Physics,
20 hours ago
Psychology,
20 hours ago
Math,
1 day ago
Math,
1 day ago
English,
8 months ago
India Languages,
8 months ago