Assign Cookies problem

Assign cookies problem is a popular coding interview question which is mostly solved using greedy algorithm. Here, you will be given a list of children/siblings and a list of cookies with their sizes. Your goal is to maximize the number of children/siblings you can content with your cookies and output the number. If you want to know how to solve this problem, this article is for you.

Table of contents:

Problem StatementGreedy Algorithm ApproachExamine few examplesSolving the ProblemTime and...
 •  0 comments  •  flag
Share on Twitter
Published on January 25, 2023 09:38
No comments have been added yet.