parni
BAN USER
Questions (3)
Comments (1)
Reputation 85
- 3of 3 votes
AnswersYou have N toffee packets, each containing different number of toffees. The number of toffees contained in the ith packet is denoted by ci. You need to put these toffee packets in 5 boxes such that each box contains at least one toffee packet, and the maximum number of toffees in a box is minimum.
- parni in United States
You can only choose consecutive toffee packets to put in a box.| Report Duplicate | Flag | PURGE
Google - 1of 1 vote
AnswersThe difference between move and forward in C++
- parni in United States| Report Duplicate | Flag | PURGE
Google C++
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
sorting is not allowed since you can only choose consecutive toffee packet to put in a box.
- parni November 02, 2018