السلام عليكم اخواني انا من محبين الخوارزميات ومسائلها فمن خلال التصفح وجدت سؤال وحيرني وبصراحة عجزت عن تحليلة والتوصل للكود تاعة ...
الفكرة من السؤال اذا في مجال تساعدوني...
الي هي عملية فك العملة والنص بالانجليزي من المصدر...
A famouse computer science problem is the coin min. problem.Gives a set of coin values (ex. 1,5,10,25,50 or 2,3,8,25,40 ) and particular price,find the fewest coins that make that particular value. For example, gives coin values of 2,3,8,25,40, the fewest of 50 is 2 (25 and 25 ).
One possible solution is the greedy solution: To find the fewest coins,assume you use as many as possible of the most expensive coin, and then as many as possible of the next most expensive coin, and so on and so far..
write thats what this problem is about by writting a pseudo code and analyze it. Convert psedo code to C++ cod...