/Buy-maximum-toys-possible-

Amit wants to buy some toys for his sister. He has X rupees in his pocket. But he is confused to buy which toy and seeking your help. Given an array consisting of cost of toys. Find the maximum number of toys he can buy with the amount X. Note: He can buy only 1 quantity of a particular toy.

Buy-maximum-toys-possible-

Amit wants to buy some toys for his sister. He has X rupees in his pocket. But he is confused to buy which toy and seeking your help. Given an array consisting of cost of toys. Find the maximum number of toys he can buy with the amount X. Note: He can buy only 1 quantity of a particular toy.