So, only discussing coding section here:-
Q1. Magic Parent
A person X has M different flavor of candies(An array of size M was given with quantity of each candy of particular flavor) and there are N childrens, X has to distribute maximum number of candies among children and every child has the condition that it will only take candies of a particular flavor only ( it is also possible that child may not take any candy at all) and also the other children will get jealous if some children get maximum candies, you have to find the minimum jealously( maximum amount of candy given to a child/children ).
T.C:- N=7 M=5
Disribution of candies was like :- 2,3,3,4,4,3,3
Q2. Fashion Promo Something
There is a scheme in a shop that if you buy a group of 3 dress , you will get the dress with the least price totally free, So the prices of N number of dresses were given , you have to find the maximum discount(least price) you can get. You are free to make group of 3 dresses as you like and you have to buy all the dresses.
T.C:- Didn't looked as question was just too easy.
Do upvote if you want me to post question from another section as well !!
Link to other sections questions (Won't able to post so many images on LC )