The greedy algorithm

The greedy algorithm

May 31, 2021

Greedy Algorithms:
A way to program.
This is an HTML page that I coded last year, it is an algorithm that will take a fictif sum of money and will decompose it to and return the quantity of banknotes and coins that will be returned.
Here is the English version:https://codepen.io/henry-letellier/pen/YzyVgQq
Here is the French Version: https://codepen.io/henry-letellier/pen/GRpWWoY
However, if the entered amount exceeds: 1000000000000 euros the program will start lagging and probably slow down your computer due to the heavy sums that are being carried out.

Anyway, happy playing.

PS: for the french version there is a hidden functionality, will you find it? (tell me in the comments if you have)

image

Gefällt dir dieser Beitrag?

Kaufe Hanra einen tea

Mehr von Hanra